1.環(huán)境如下
2.服務(wù)器的IP:10.100.1.84; lnmp都分別都安裝在/usr/local/目錄下
3.centos7.4 php5.5 mysql5.6.14二進(jìn)制 nginx1.13.9 zabbix3.4.6(lnmp基礎(chǔ)環(huán)境)
4. 注【創(chuàng)建各項用戶】【yum安裝各種依賴】【解壓各項包】【make && make install】【修改各個應(yīng)用配置文件蛇耀,例如:端口安裝路徑等..】【應(yīng)用添加到系統(tǒng)服務(wù)&&設(shè)置開機(jī)自動啟動】
5. nginx 解壓强岸,(yum安裝依賴)./configure –prefix=/usr/local/nginx –with-http_ssl_module –with-http_spdy_module –with-http_stub_status_module –with-pcre?make && make install 6. php 解壓 (yum安裝依賴),./configure –prefix=/usr/local/php-5.5.0alpha1 –with-config-file-path=/usr/local/php-5.5.0alpha1/etc –with-bz2 –with-curl –enable-ftp –enable-sockets –disable-ipv6 –with-gd –with-jpeg-dir=/usr/local –with-png-dir=/usr/local –with-freetype-dir=/usr/local –enable-gd-native-ttf –with-iconv-dir=/usr/local –enable-mbstring –enable-calendar –with-gettext –with-libxml-dir=/usr/local –with-zlib –with-pdo-mysql=mysqlnd –with-mysqli=mysqlnd –with-mysql=mysqlnd –enable-dom –enable-xml –enable-fpm –with-libdir=lib64 –enable-bcmath?make && make install
7. mysql 解壓琢岩,(yum安裝依賴) yum install –y autoconf automake imake libxml2-devel\expat-devel cmake gcc gcc-c++ libaio libaio-devel bzr bison libtool ncurses5-devel (二進(jìn)制直接啟動)./scripts/mysql_install_db –user=mysql –defaults-file=/etc/my.cnf 【mysqlsock文件在/tmp下】 \/\/ make && make install
8. zabbix 解壓 (yum安裝依賴 yum install net-snmp-devel libxml2-devel libcurl-devel mysql-devel) ./configure –prefix=/usr/local/zabbix-3.4.6 –enable-server –enable-agent –with-mysql –with-net-snmp –with-libcurl –with-libxml2 \/\/ make && make install 初始化數(shù)據(jù)庫zabbix的三個.sql文件,修改zabbix_server.conf配置文件,修改nginx和php文件伯诬。
9.啟動各項應(yīng)用,tail -f 日志巫财。驗證是否啟動盗似。
10.[Error]zabbix安裝首頁,ldap [warning~~] 重新編譯zabbix平项,ldap模塊赫舒。報錯修改一個參數(shù)悍及。OK
11.配DNS。zabbix登錄網(wǎng)址:http://ops.4000669696.com/?【各個監(jiān)控項待添加接癌、待添加模板】