中文字幕理论片,69视频免费在线观看,亚洲成人app,国产1级毛片,刘涛最大尺度戏视频,欧美亚洲美女视频,2021韩国美女仙女屋vip视频

打開(kāi)APP
userphoto
未登錄

開(kāi)通VIP,暢享免費(fèi)電子書(shū)等14項(xiàng)超值服

開(kāi)通VIP
zabbix 4.04 安裝文檔 - 基于CentOS 7.6

 1    安裝前準(zhǔn)備:

1.1   安裝JDK

卸載openjdk

# rpm -qa | grep java# yum remove java-1.8.0-openjdk# yum remove java-1.8.0-openjdk-headless

安裝JDK包

# rpm -ivh jdk-8u191-linux-x64.rpm

 

1.2   安裝依賴包

# yum install -y net-snmp net-snmp-devel OpenIPMI-devel libssh2-devel openldap-devel openldap-clients libxml2-devel libcurl-devel gcc msyql-devel libevent-devel php-mysql php-gd php-mbstring php-bcmath libjpeg-devel freetype-devel libpng-devel php-xml keyutils-libs-devel krb5-devel libcom_err-devel libkadm5 libselinux-devel libsepol-devel openssl-devel pcre-devel zlib-devel以下3個(gè)包在DVD1中沒(méi)有包含,如果配置的是本地yum源,需要單獨(dú)安裝# yum install -y libevent-devel-2.0.21-4.el7.x86_64.rpm# yum install -y libssh2-devel-1.4.3-12.el7.x86_64.rpm# yum install -y OpenIPMI-devel-2.0.23-2.el7.x86_64.rpm安裝完依賴包以后可以使用以下命令檢查是否都安裝成功# rpm -qa net-snmp net-snmp-devel OpenIPMI-devel libssh2-devel openldap-devel openldap-clients libxml2-devel libcurl-devel gcc msyql-devel libevent-devel php-mysql php-gd php-mbstring php-bcmath libjpeg-devel freetype-devel libpng-devel php-xml keyutils-libs-devel krb5-devel libcom_err-devel libkadm5 libselinux-devel libsepol-devel openssl-devel pcre-devel zlib-devel

 

1.3   安裝MySQL

詳見(jiàn)MySQL安裝文檔

 

1.4   安裝nginx

# tar -zxvf nginx-1.14.0.tar.gz -C /home# cd /home/nginx-1.14.0/# ./configure # make & make install

 

1.5   安裝PHP

# yum install -y php# yum install -y php-fpm-5.4.16-46.el7.x86_64.rpm

 

2    安裝服務(wù):

2.1   編譯安裝zabbix

# groupadd --system zabbix# useradd --system -g zabbix -d /usr/lib/zabbix -s /sbin/nologin zabbix# tar -zxvf zabbix-4.0.4.tar.gz -C /home# cd /home/zabbix-4.0.4/# ./configure --prefix=/usr/local/zabbix/ --enable-server  --enable-agent --with-mysql  --with-net-snmp --with-libcurl --with-libxml2 --with-ldap --with-ssh2 --with-openipmi --enable-java  --with-openssl# make install

 

2.2   創(chuàng)建數(shù)據(jù)庫(kù)

# mysql -uroot -p<password>mysql> create database zabbix character set utf8 collate utf8_bin;mysql> grant all privileges on zabbix.* to zabbix@"serverip" identified by '<password>';mysql> quit# cd /home/zabbix-4.0.4/database/mysql# mysql -uzabbix -p<password> zabbix < schema.sql# mysql -uzabbix -p<password> zabbix < images.sql# mysql -uzabbix -p<password> zabbix < data.sql

 

2.3   修改配置

# vim /usr/local/zabbix/etc/zabbix_server.confDBPassword=<password>

 

2.4   啟動(dòng)服務(wù)

# /usr/local/zabbix/sbin/zabbix_server -c /usr/local/zabbix/etc/zabbix_server.conf # /usr/local/zabbix/sbin/zabbix_agentd -c /usr/local/zabbix/etc/zabbix_agentd.conf # /usr/local/zabbix/sbin/zabbix_java/startup.sh 注:/usr/local/zabbix/sbin/zabbix_server: error while loading shared libraries: libmysqlclient.so.20: cannot open shared object file: No such file or directory報(bào)以上錯(cuò)誤的處理方案:# find / -name libmysqlclient.so.20/home/mysql/lib/libmysqlclient.so.20# echo "/home/mysql/lib" >> /etc/ld.so.conf# ldconfig然后重新啟動(dòng)服務(wù)

 

3    安裝前端:

3.1   配置nginx

# vim /usr/local/nginx/conf/nginx.confserver {         listen       80;         server_name  localhost;         proxy_buffer_size 128k;         proxy_buffers 32 32k;         client_header_buffer_size 64k;         large_client_header_buffers 8 128k;         access_log  /usr/local/nginx/logs/zabbix.access.log main;         error_log  /usr/local/nginx/logs/zabbix.error.log error;         location / {             root   html;             index  index.php index.htm;         }         error_page   500 502 503 504  /50x.html;         location = /50x.html {             root   html;         }         location ~ \.php$ {              fastcgi_buffer_size 128k;             fastcgi_buffers 32 32k;             fastcgi_pass   unix:/var/run/php-fpm/php-fpm.sock;             fastcgi_index  index.php;             fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;             include        fastcgi_params;             include        fastcgi.conf;         } } 

注:去掉上面 log_format 的注釋

 

3.2   配置PHP

# vim /etc/php.inimax_execution_time = 300 memory_limit = 128M post_max_size = 16M upload_max_filesize = 2M max_input_time = 300 date.timezone = Asia/Shanghai
# vim
/etc/php-fpm.d/www.conf
[www] listen
= 127.0.0.1:9000 listen = /var/run/php-fpm/php-fpm.sock listen.mode = 0666 user = nobody group = nobody pm = dynamic pm.max_children = 50 pm.start_servers = 5 pm.min_spare_servers = 5 pm.max_spare_servers = 35

 

3.3   復(fù)制靜態(tài)文件

# rm -rf /usr/local/nginx/html/*# cp -rf /home/zabbix-4.0.4/frontends/php/* /usr/local/nginx/html/# chown -R nobody.nobody /usr/local/nginx/html

注:監(jiān)控的圖形界面出現(xiàn)亂碼問(wèn)題的解決方案:將windows中的C:\Windows\Fonts下的中文字體替換到/usr/local/nginx/html/fonts下的DejaVuSans.ttf

 

3.4   配置前端

訪問(wèn)所部署服務(wù)的web地址

 

 

檢測(cè)依賴,缺少的模塊請(qǐng)安裝。DVD2中找到相應(yīng)的rpm包進(jìn)行安裝,重啟php-fpm(kill -USR2 php-fpm:master的pid

 

 

配置數(shù)據(jù)庫(kù)

 

 

配置服務(wù)器

 

 

 

 完成安裝。

默認(rèn)的用戶名:Admin,密碼:zabbix

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開(kāi)APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
CentOS 5 環(huán)境下Nginx + MySQL + PHP Web
LNMP環(huán)境搭建(linux+Nginx + Mysql + PHP)
教你編譯PHP7 (nginx+mysql+php7)
docker部署lnmp-wordpress的實(shí)現(xiàn)步驟
Linux三階段之九:期中架構(gòu)LNMP章節(jié)
zabbix監(jiān)控MogDB之采集prometheus數(shù)據(jù)
更多類似文章 >>
生活服務(wù)
熱點(diǎn)新聞
分享 收藏 導(dǎo)長(zhǎng)圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服