首页 > 其他分享 >LNMP环境搭建Zabbix监控平台自动化安装脚本

LNMP环境搭建Zabbix监控平台自动化安装脚本

时间:2022-12-30 16:00:57浏览次数:38  
标签:enable -- zabbix LNMP etc Zabbix Install PREFIX 搭建

此脚本是LNMP环境搭建Zabbix监控平台自动化安装脚本,有需要朋友可以参考,脚本内容如下:

系统环境:CentOS 7.4

软件版本:

Nginx:1.16.1

Mysql:5.7.29

PHP:7.3.7

Zabbix:4.4.3

[root@localhost ~]# vim auto_install_lnmp_zabbix.sh

  1. #!/bin/bash
  2. #Date:2018-5-20 14:08:55
  3. #Author Blog:
  4. # https://www.yangxingzhen.com
  5. #Author WeChat:
  6. # 微信公众号:小柒博客
  7. #Author mirrors site:
  8. # https://mirrors.yangxingzhen.com
  9. #About the Author
  10. # BY:YangXingZhen
  11. # Mail:[email protected]
  12. #Auto Install LNMP Environment And Zabbix

  13. source /etc/rc.d/init.d/functions

  14. #Define Nginx path variables
  15. NGINX_URL=http://nginx.org/download
  16. NGINX_FILE=nginx-1.16.1.tar.gz
  17. NGINX_FILE_DIR=nginx-1.16.1
  18. NGINX_PREFIX=/usr/local/nginx

  19. #Define Boost path variables
  20. Boost_URL=https://mirrors.yangxingzhen.com/mysql
  21. Boost_File=boost_1_59_0.tar.gz

  22. #Define Mysql path variables
  23. MYSQL_URL=http://mirrors.163.com/mysql/Downloads/MySQL-5.7
  24. MYSQL_FILES=mysql-5.7.29.tar.gz
  25. MYSQL_FILES_DIR=mysql-5.7.29
  26. MYSQL_PREFIX=/usr/local/mysql
  27. MYSQL_DIR=/data/mysql
  28. MYSQL_USER=mysql

  29. #Define ZIP path variables
  30. ZIP_URL=https://nih.at/libzip
  31. ZIP_FILE=libzip-1.2.0.tar.gz
  32. ZIP_FILE_DIR=libzip-1.2.0

  33. #Define PHP path variables
  34. PHP_URL=http://mirrors.sohu.com/php
  35. PHP_FILE=php-7.3.7.tar.gz
  36. PHP_FILE_DIR=php-7.3.7
  37. PHP_PREFIX=/usr/local/php
  38. USER=www

  39. #Define Zabbix path variables
  40. ZABBIX_URL=http://mirrors.yangxingzhen.com/zabbix
  41. ZABBIX_FILES=zabbix-4.4.3.tar.gz
  42. ZABBIX_FILES_DIR=zabbix-4.4.3
  43. ZABBIX_PREFIX=/usr/local/zabbix

  44. functionInstall_Nginx(){
  45. #Install Nginx Soft
  46. if[!-d ${NGINX_PREFIX}];then
  47. yum -y install pcre pcre-devel openssl openssl-devel gcc gcc-c++ wget
  48. wget -c ${NGINX_URL}/${NGINX_FILE}
  49. tar zxf ${NGINX_FILE}
  50. cd ${NGINX_FILE_DIR}
  51. sed -i 's/1.16.1/ /;s/nginx\//nginx/' src/core/nginx.h
  52. useradd -s /sbin/nologin www
  53. ./configure --prefix=${NGINX_PREFIX} \
  54. --user=www \
  55. --group=www \
  56. --with-http_ssl_module \
  57. --with-http_stub_status_module
  58. if[ $?-eq 0];then
  59. make && make install
  60. action "NGINX Install Success..."/bin/true
  61. else
  62. action "NGINX Install Failed..."/bin/false
  63. exit1
  64. fi
  65. else
  66. echo -e "\033[32m Nginx has been installed \033[0m"
  67. fi
  68. }

  69. functionInstall_Mysql(){
  70. if[!-d ${MYSQL_PREFIX}];then
  71. #Install Package
  72. yum -y install ncurses-devel perl perl-devel cmake wget gcc gcc-c++ bison* autoconf openssl-devel openssl

  73. #Install Boost
  74. wget -c ${Boost_URL}/${Boost_File}
  75. tar zxf ${Boost_File}-C /usr/local/

  76. #Install MYSQL
  77. wget -c ${MYSQL_URL}/${MYSQL_FILES}
  78. tar zxf ${MYSQL_FILES}
  79. cd ${MYSQL_FILES_DIR}
  80. cmake .-DCMAKE_INSTALL_PREFIX=${MYSQL_PREFIX} \
  81. -DMYSQL_UNIX_ADDR=/tmp/mysql.sock \
  82. -DMYSQL_DATADIR=${MYSQL_DIR} \
  83. -DSYSCONFDIR=/etc \
  84. -DEXTRA_CHARSETS=all \
  85. -DDEFAULT_CHARSET=utf8 \
  86. -DDEFAULT_COLLATION=utf8_general_ci \
  87. -DWITH_MYISAM_STORAGE_ENGINE=1 \
  88. -DWITH_INNOBASE_STORAGE_ENGINE=1 \
  89. -DWITH_MEMORY_STORAGE_ENGINE=1 \
  90. -DWITH_PARTITION_STORAGE_ENGINE=1 \
  91. -DDOWNLOAD_BOOST=1 \
  92. -DWITH_BOOST=/usr/local/boost_1_59_0 \
  93. -DENABLED_LOCAL_INFILE=1 \
  94. -DMYSQL_TCP_PORT=3306 \
  95. -DWITH_READLINE=1 \
  96. -DMYSQL_USER=${MYSQL_USER} \
  97. -DWITH_SSL=yes
  98. if[ $?-eq 0];then
  99. make && make install
  100. action "The MYSQL Install Sussess..."/bin/true
  101. else
  102. action "The MYSQL Install Failed..."/bin/false
  103. exit1
  104. fi
  105. else
  106. echo -e "\033[31mThe MYSQL already Install...\033[0m"
  107. exit1
  108. fi
  109. }

  110. functionInstall_PHP(){
  111. #Install Libzip
  112. yum –y install wget gcc gcc-c++
  113. wget -c ${ZIP_URL}/${ZIP_FILE}
  114. tar zxf ${ZIP_FILE}
  115. cd ${ZIP_FILE_DIR}
  116. ./configure
  117. if[ $?-eq 0];then
  118. make && make install
  119. action "The Libzip Install Sussess..."/bin/true
  120. else
  121. action "The Libzip Install Failed..."/bin/false
  122. exit1
  123. fi

  124. cat >/etc/ld.so.conf <<EOF
  125. /usr/local/lib64
  126. /usr/local/lib
  127. /usr/lib
  128. /usr/lib64
  129. EOF
  130. ldconfig -v

  131. #Install PHP
  132. if[!-d ${PHP_PREFIX}];then
  133. #Install Package
  134. yum -y install epel-release
  135. yum -y install wget gcc gcc-c++ pcre pcre-devel openssl openssl-devel libxml2 libxml2-devel bzip2 bzip2-devel libcurl libcurl-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel gmp gmp-devel libmcrypt libmcrypt-devel readline readline-devel libxslt libxslt-devel cmake
  136. cd ~&& wget -c ${PHP_URL}/${PHP_FILE}
  137. tar zxf ${PHP_FILE}
  138. cd ${PHP_FILE_DIR}
  139. ./configure --prefix=${PHP_PREFIX} \
  140. --with-config-file-path=/etc \
  141. --enable-fpm \
  142. --with-fpm-user=${USER} \
  143. --with-fpm-group=${USER} \
  144. --enable-inline-optimization \
  145. --disable-debug \
  146. --disable-rpath \
  147. --enable-shared \
  148. --enable-soap \
  149. --with-libxml-dir \
  150. --with-xmlrpc \
  151. --with-openssl \
  152. --with-mhash \
  153. --with-pcre-regex \
  154. --with-sqlite3 \
  155. --with-zlib \
  156. --enable-bcmath \
  157. --with-iconv \
  158. --with-bz2 \
  159. --enable-calendar \
  160. --with-curl \
  161. --with-cdb \
  162. --enable-dom \
  163. --enable-exif \
  164. --enable-fileinfo \
  165. --enable-filter \
  166. --with-pcre-dir \
  167. --enable-ftp \
  168. --with-gd \
  169. --with-openssl-dir \
  170. --with-jpeg-dir \
  171. --with-png-dir \
  172. --with-zlib-dir \
  173. --with-freetype-dir \
  174. --enable-gd-jis-conv \
  175. --with-gettext \
  176. --with-gmp \
  177. --with-mhash \
  178. --enable-json \
  179. --enable-mbstring \
  180. --enable-mbregex \
  181. --enable-mbregex-backtrack \
  182. --with-onig \
  183. --enable-pdo \
  184. --with-mysqli=mysqlnd \
  185. --with-pdo-mysql=mysqlnd \
  186. --with-zlib-dir \
  187. --with-pdo-sqlite \
  188. --with-readline \
  189. --enable-session \
  190. --enable-shmop \
  191. --enable-simplexml \
  192. --enable-sockets \
  193. --enable-sysvmsg \
  194. --enable-sysvsem \
  195. --enable-sysvshm \
  196. --enable-wddx \
  197. --with-libxml-dir \
  198. --with-xsl \
  199. --enable-zip \
  200. --enable-mysqlnd-compression-support \
  201. --with-pear \
  202. --enable-opcache
  203. if[ $?-eq 0];then
  204. \cp /usr/local/lib/libzip/include/zipconf.h /usr/local/include/zipconf.h
  205. make && make install
  206. action "The PHP Install Sussess..."/bin/true
  207. else
  208. action "The PHP Install Failed..."/bin/false
  209. exit1
  210. fi
  211. else
  212. echo -e "\033[31mThe PHP already Install...\033[0m"
  213. exit1
  214. fi
  215. }

  216. function LNMP_Config(){
  217. #Nginx config
  218. useradd -s /sbin/nologin ${USER}>/dev/null2>&1
  219. ln -sf ${NGINX_PREFIX}/sbin/nginx /usr/sbin
  220. cat >${NGINX_PREFIX}/conf/nginx.conf <<EOF
  221. user ${USER} ${USER};
  222. worker_processes auto;
  223. pid logs/nginx.pid;
  224. events {
  225. use epoll;
  226. worker_connections 10240;
  227. multi_accept on;
  228. }
  229. http {
  230. include mime.types;
  231. default_type application/octet-stream;
  232. log_format main '\$remote_addr - \$remote_user [\$time_local] "\$request" '
  233. '\$status \$body_bytes_sent "\$http_referer" '
  234. '"\$http_user_agent" "\$http_x_forwarded_for"';
  235. access_log logs/access.log main;
  236. error_log logs/error.log warn;
  237. sendfile on;
  238. tcp_nopush on;
  239. keepalive_timeout 120;
  240. tcp_nodelay on;
  241. server_tokens off;
  242. gzip on;
  243. gzip_min_length 1k;
  244. gzip_buffers 464k;
  245. gzip_http_version 1.1;
  246. gzip_comp_level 4;
  247. gzip_types text/plain application/x-javascript text/css application/xml;
  248. gzip_vary on;
  249. client_max_body_size 10m;
  250. client_body_buffer_size 128k;
  251. proxy_connect_timeout 90;
  252. proxy_send_timeout 90;
  253. proxy_buffer_size 4k;
  254. proxy_buffers 432k;
  255. proxy_busy_buffers_size 64k;
  256. large_client_header_buffers 44k;
  257. client_header_buffer_size 4k;
  258. open_file_cache_valid 30s;
  259. open_file_cache_min_uses 1;
  260. server {
  261. listen 80;
  262. server_name localhost;
  263. location /{
  264. root html/zabbix;
  265. index index.php index.html index.htm;
  266. }
  267. location ~* \.php$ {
  268. root html/zabbix;
  269. fastcgi_connect_timeout 300s;
  270. fastcgi_send_timeout 300s;
  271. fastcgi_read_timeout 300s;
  272. fastcgi_buffer_size 64k;
  273. fastcgi_buffers 464k;
  274. fastcgi_busy_buffers_size 128k;
  275. fastcgi_temp_file_write_size 256k;
  276. fastcgi_pass 127.0.0.1:9000;
  277. fastcgi_index index.php;
  278. fastcgi_param SCRIPT_FILENAME \$document_root\$fastcgi_script_name;
  279. include fastcgi_params;
  280. }
  281. }
  282. }
  283. EOF

  284. #Config PHP
  285. \cp php.ini-production /etc/php.ini
  286. \cp ${PHP_PREFIX}/etc/php-fpm.conf.default ${PHP_PREFIX}/etc/php-fpm.conf
  287. \cp ${PHP_PREFIX}/etc/php-fpm.d/www.conf.default ${PHP_PREFIX}/etc/php-fpm.d/www.conf
  288. \cp sapi/fpm/php-fpm.service /usr/lib/systemd/system
  289. cat >/usr/local/php/etc/php-fpm.d/www.conf <<EOF
  290. [www]
  291. listen =0.0.0.0:9000
  292. listen.mode =0666
  293. user = www
  294. group= www
  295. pm =dynamic
  296. pm.max_children =128
  297. pm.start_servers =20
  298. pm.min_spare_servers =5
  299. pm.max_spare_servers =35
  300. pm.max_requests =10000
  301. rlimit_files =1024
  302. slowlog = log/\$pool.log.slow
  303. EOF

  304. #Mysql Config
  305. useradd -s /sbin/nlogin mysql >/dev/null2>&1
  306. mkdir -p ${MYSQL_DIR}
  307. chown -R ${MYSQL_USER}.${MYSQL_USER} ${MYSQL_DIR}
  308. cat >/etc/my.cnf <<EOF
  309. [mysqld]
  310. #数据存储目录
  311. datadir = ${MYSQL_DIR}
  312. #socket通信文件
  313. socket =/tmp/mysql.sock
  314. #使用mysql用户启动
  315. user = ${MYSQL_USER}
  316. #MYSQL服务运行的端口号
  317. port =3306
  318. #开启bin-log日志
  319. log-bin = mysql-bin
  320. #MYSQL服务ID号
  321. server-id =1
  322. #定义error错误文件
  323. log-error = ${MYSQL_DIR}/mysqld.log
  324. #PID文件路径
  325. pid-file = mysqld.pid
  326. sql_mode=NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES
  327. #设置字符集为utf8
  328. character-set-server = utf8
  329. [client]
  330. default-character-set= utf8
  331. port =3306
  332. socket =/tmp/mysql.sock
  333. [mysql]
  334. default-character-set= utf8
  335. EOF

  336. #Initialization Mysql
  337. /usr/local/mysql/bin/mysqld --initialize-insecure --user=mysql --basedir=/data/mysql/--basedir=/usr/local/mysql
  338. ln -sf ${MYSQL_PREFIX}/bin/* /usr/bin
  339. \cp ${MYSQL_PREFIX}/support-files/mysql.server /etc/init.d/mysqld
  340. chmod o+x /etc/init.d/mysqld

  341. #Config iptables(firewalld)、selinux
  342. SYS_VERSION=$(awk -F. '{print $1}' /etc/redhat-release |awk '{print $NF}')
  343. if [ ${SYSTEM_VERSION} -eq 6 ];then
  344. service iptables stop
  345. chkconfig iptables off
  346. sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
  347. setenforce 0
  348. else
  349. systemctl stop firewalld.service
  350. systemctl disable firewalld.service
  351. sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config
  352. setenforce 0
  353. fi

  354. #Start MYSQL、php-fpm、nginx and Add MySQL、php-fpm、nginx boot self start
  355. ${NGINX_PREFIX}/sbin/nginx
  356. systemctl start php-fpm
  357. /etc/init.d/mysqld start
  358. grep -qw "${NGINX_PREFIX}" /etc/rc.d/rc.local
  359. if [ $? -ne 0 ];then
  360. echo "${NGINX_PREFIX}/sbin/nginx" >>/etc/rc.d/rc.local
  361. chmod +x /etc/rc.d/rc.local
  362. fi
  363. systemctl enable php-fpm
  364. chkconfig --add mysqld
  365. chkconfig mysqld on
  366. chmod +x /etc/rc.d/rc.local
  367. }

  368. function Install_Zabbix_Server (){
  369. #Install Zabbix_Server
  370. if [ ! -d ${ZABBIX_PREFIX} ];then
  371. #Install Package
  372. yum -y install net-snmp net-snmp-devel perl-DBI curl curl-devel libevent libevent-devel wget gcc gcc-c++ pcre pcre-devel
  373. cd ${HOME} && wget -c ${ZABBIX_URL}/${ZABBIX_FILES}
  374. tar xf ${ZABBIX_FILES}
  375. cd ${ZABBIX_FILES_DIR}
  376. ./configure --prefix=${ZABBIX_PREFIX} --enable-server --enable-agent --with-mysql=/usr/local/mysql/bin/mysql_config --enable-ipv6 --with-net-snmp --with-libcurl
  377. if [ $? -eq 0 ];then
  378. make && make install
  379. echo -e "\033[32mThe Zabbix_Server Install sussess...\033[0m"
  380. else
  381. echo -e "\033[31mThe Zabbix_Server Install fail,Please check...\033[0m"
  382. exit 1
  383. fi
  384. else
  385. echo -e "\033[31mThe Zabbix_Server already Install...\033[0m"
  386. exit 1
  387. fi

  388. #Create Mysql
  389. mysql -e "create database zabbix charset=utf8;"
  390. mysql -e "grant all on zabbix.* to zabbix@'localhost' identified by 'www.yangxingzhen.com';"
  391. mysql -e "flush privileges"

  392. #Import the SQL file to the Zabbix Database
  393. cd database/mysql
  394. mysql -uzabbix -pwww.yangxingzhen.com 2>/dev/null zabbix < schema.sql
  395. mysql -uzabbix -pwww.yangxingzhen.com 2>/dev/null zabbix < images.sql
  396. mysql -uzabbix -pwww.yangxingzhen.com 2>/dev/null zabbix < data.sql

  397. #Copy File
  398. mkdir -p ${NGINX_PREFIX}/html/zabbix
  399. \cp -a ${HOME}/zabbix-4.4.3/frontends/php/* ${NGINX_PREFIX}/html/zabbix
  400. chown -R ${USER}.${USER} ${NGINX_PREFIX}/html/zabbix
  401. ln -sf /${MYSQL_PREFIX}/lib/libmysqlclient.so.20 /usr/lib64
  402. mkdir -p /var/lib/mysql
  403. ln -sf /tmp/mysql.sock /var/lib/mysql

  404. #Backup Configuration File
  405. \cp ${ZABBIX_PREFIX}/etc/zabbix_server.conf ${ZABBIX_PREFIX}/etc/zabbix_server.conf.bak
  406. \cp ${ZABBIX_PREFIX}/etc/zabbix_agentd.conf ${ZABBIX_PREFIX}/etc/zabbix_agentd.conf.bak
  407. ln -sf ${ZABBIX_PREFIX}/sbin/zabbix_* /usr/local/sbin/

  408. #Config Zabbix_Server File
  409. cat >${ZABBIX_PREFIX}/etc/zabbix_server.conf <<EOF
  410. LogFile=/tmp/zabbix_server.log
  411. PidFile=/tmp/zabbix_server.pid
  412. DBHost=localhost
  413. DBName=zabbix
  414. DBUser=zabbix
  415. DBPassword=www.yangxingzhen.com
  416. Timeout=30
  417. LogSlowQueries=3000
  418. EOF

  419. #Config Zabbix_Server File
  420. cat >${ZABBIX_PREFIX}/etc/zabbix_agentd.conf <<EOF
  421. LogFile=/tmp/zabbix_agentd.log
  422. Server=localhost
  423. ServerActive=localhost
  424. Hostname=localhost
  425. EnableRemoteCommands=1
  426. UnsafeUserParameters=1
  427. LogFileSize=10
  428. Timeout=30
  429. EOF

  430. #Configuring system services
  431. \cp ${HOME}/zabbix-4.4.3/misc/init.d/tru64/zabbix_* /etc/init.d/
  432. chmod o+x /etc/init.d/zabbix_*

  433. #Create zabbix user
  434. useradd -s /sbin/nologin zabbix >/dev/null 2>&1

  435. #PHP Config
  436. sed -i 's/post_max_size = 8M/post_max_size = 16M/' /etc/php.ini
  437. sed -i 's/max_execution_time = 30/max_execution_time = 300/' /etc/php.ini
  438. sed -i 's/max_input_time = 60/max_input_time = 300/' /etc/php.ini
  439. sed -i 's/;date.timezone =/date.timezone = Asia\/Shanghai/' /etc/php.ini
  440. sed -i 's/;always_populate_raw_post_data = -1/always_populate_raw_post_data = -1/' /etc/php.ini

  441. #Start Zabbix_Server And Zabbix_Agentd
  442. /etc/init.d/zabbix_server start
  443. /etc/init.d/zabbix_agentd start
  444. systemctl restart php-fpm

  445. #Configure power on self start
  446. grep -qw "/etc/init.d/zabbix_server" /etc/rc.d/rc.local
  447. if [ $? -ne 0 ];then
  448. echo "/etc/init.d/zabbix_server start" >>/etc/rc.d/rc.local
  449. chmod +x /etc/rc.d/rc.local
  450. fi

  451. grep -qw "/etc/init.d/zabbix_agentd" /etc/rc.d/rc.local
  452. if [ $? -ne 0 ];then
  453. echo "/etc/init.d/zabbix_agentd start" >>/etc/rc.d/rc.local
  454. chmod +x /etc/rc.d/rc.local
  455. fi
  456. }

  457. function Main (){
  458. Install_Nginx
  459. Install_Mysql
  460. Install_PHP
  461. LNMP_Config
  462. Install_Zabbix_Server
  463. }

  464. Main

脚本执行方式:

[root@localhost ~]# vim auto_install_lnmp_zabbix.sh

  • 输入编号:6766,直达文章
  • 输入m|M,直达目录列表

标签:enable,--,zabbix,LNMP,etc,Zabbix,Install,PREFIX,搭建
From: https://blog.51cto.com/u_12018693/5980591

相关文章

  • LAMP环境搭建WordPress自动化安装脚本
    此脚本是LAMP环境安装WordPress脚本,有需要朋友可以参考,脚本内容如下:系统环境:CentOS7.4软件版本:Apache:2.4.28Mysql:5.7.29PHP:7.3.7WordPress:5.4[root@localhost~]#vimauto......
  • Zabbix监控MongoDB性能状态
    Zabbix监控MongoDB性能的原理:通过echo"db.serverStatus()"|mongoadmin来查看mongodb的状态。Zabbix监控MongoDB性能,主要监控以下项目:-内存使用情况-连接数-锁-刷新......
  • 使用Docker Registry快速搭建私有镜像仓库
    1、Docker是什么?Docker是Docker.Lnc公司开源的一个基于LXC技术之上搭建的Container容器引擎,源代码托管在Github上,基于Go语言并遵从Apache2.0协议开源。Docker属于Linux容器......
  • Zabbix终端管理工具zabbix_manager
    说明Zabbix_manager是Zabbix终端管理工具,可以在linux终端实现管理Zabbix同时可以通过Zabbix_manager实现对Zabbix的一键初始化,一键导出报表(报表为excel)等功能。Zabbix_ma......
  • Windows下PHP开发环境搭建
    介绍几种快速搭建PHP本地开发环境的方式1.xampp2.phpstudy3.Laragon集成开发环境: https://laragon.org/docs/4.Wamp5.在子系统中安装Linux版本的lnmp环境(1.使用宝......
  • Zabbix与乐维监控对比分析(六)——图形图表篇
    前面我们详细介绍了乐维监控与Zabbix的架构与性能、Agent管理、自动发现、权限管理、对象管理、告警管理、可视化的对比分析,相信大家对二者的对比分析有了更加深入的了解,接......
  • 【Java框架型项目从入门到装逼】第七节 - 学生管理系统项目搭建
    本次的教程是打算用Spring,SpringMVC以及传统的jdbc技术来制作一个简单的增删改查项目,对用户信息进行增删改查,就这么简单。###1.新建项目首先,打开eclipse,新建一个web项目。......
  • Maven搭建SpringMvc+Spring+Hibernate框架
    假设你已经在Myeclipse上面创建好啦一个Maven项目,现在我们开始往pom.xml里面新增jar的配置。1.<projectxmlns="http://maven.apache.org/POM/4.0.0"xmlns:xsi="http://ww......
  • Centos7下Zabbix5.0部署
    系统简介:zabbix是一个企业级解决方案,支持实时监控数千台服务器,虚拟机和网络设备采集百万级监控指标。Zabbix的主要特点有:指标收集:从任何设备、系统、应用程序上进行......
  • zookeeper集群搭建中服务启动常见问题
    1、执行./zkServer.shstart后查看服务状态显示Itisprpbably isnotrunning.但是查看进程jps,zookeeper服务进程是正常启动的。解决办法:先停止zookeeper服务./zkServer.......