http://www.linuxidc.com/Linux/2015-04/116060.htm
http://www.linuxidc.com/Linux/2015-04/116061.htm
http://www.cnblogs.com/zangdalei/p/5712987.html
httpd
./configure \
--prefix=/soft/httpd/httpdServer \
--with-included-apr \
--enable-so \
--enable-deflate=shared \
--enable-expires=shared \
--enable-rewrite=shared \
--with-pcre
http://blog.itpub.net/29773961/viewspace-1377290/
http://www.moke8.com/article-8432-1.html
php
http://www.jb51.net/LINUXjishu/268747.html
ll /soft/mysql/mysql5.6.33/lib/|grep libmysqlclient.so.18
echo "/soft/mysql/mysql5.6.33/lib/" >>/etc/ld.so.conf
ִ执行ldconfig使其生效
yum install -y libxml2-devel openssl openssl-devel bzip2 bzip2-devel libpng libpng-devel *jpeglib* freetype freetype-devel libmcrypt-devel libmcrypt libxslt-devel
./configure \
--prefix=/soft/php/php5.6 \
--with-mysql=/soft/mysql/mysql5.6.33/ \
--with-mysqli=mysqlnd \
--with-pdo-mysql=mysqlnd \
--with-apxs2=/soft/httpd/httpdServer/bin/apxs \
--with-iconv-dir=/usr/local/libiconv \
--with-freetype-dir \
--with-jpeg-dir \
--with-png-dir \
--with-zlib \
--with-libxml-dir=/usr \
--with-gettext \
--enable-xml \
--disable-rpath \
--enable-bcmath \
--enable-shmop \
--enable-sysvsem \
--enable-inline-optimization \
--with-curl \
--enable-mbregex \
--enable-fpm \
--enable-mbstring \
--with-gd \
--enable-gd-native-ttf \
--with-openssl \
--with-mhash \
--enable-pcntl \
--enable-sockets \
--with-xmlrpc \
--enable-soap \
--enable-short-tags \
--enable-static \
--with-xsl \
--with-fpm-user=dev \
--with-fpm-group=dev \
--enable-ftp \
--without-pear \
--enable-opcache=no
make && make install
cp php.ini-production /soft/php/php5.6/etc/php.ini
/soft/php/php5.6/sbin/php-fpm
./configure --prefix=/soft/zabbix/zabbix3.2 --enable-server --enable-agent --with-mysql=/soft/mysql/mysql5.6.33/bin/mysql_config --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2 --enable-java
make && make install
cp /soft/zabbix/zabbix-3.2.1/misc/init.d/fedora/core/zabbix_server /etc/rc.d/init.d/zabbix_server
cp /soft/zabbix/zabbix-3.2.1/misc/init.d/fedora/core/zabbix_agentd /etc/rc.d/init.d/zabbix_agentd
/soft/php/php5.6/bin/php -q /var/lib/zabbix/percona/scripts/ss_get_mysql_stats.php --host 127.0.0.1 --items gg
/soft/zabbix/zabbix3/bin/zabbix_get -s 172.168.1.19 -p 10050 -k "MySQL.Handler-commit"
/soft/zabbix/zabbix3/bin/zabbix_get -s 127.0.0.1 -p 10050 -k "MySQL.Threads-connected"
访问
http://172.16.1.24:90/zabbix
用户名与密码 admin zabbix
172.16.1.24
httpd 启动与关闭
cd /soft/httpd/httpdServer/bin
启动 ./apachectl start &
停止 ./apachectl stop &
zabbix server
cd /soft/zabbix/zabbix3.2/sbin
启动 ./zabbix_server
停止 ps aux|grep zabbix_server|awk '{print $2}'|xargs kill -9
zabbix agentd
cd /soft/zabbix/zabbix3.2/sbin
启动 ./zabbix_agentd
停止 ps aux|grep zabbix_agentd|awk '{print $2}'|xargs kill -9
zabbix java
cd /soft/zabbix/zabbix3.2/sbin/zabbix_java
启动 ./startup.sh
停止 ./shutdown.sh
其他机子
zabbix agentd
cd /soft/zabbix/zabbix3/sbin
启动 ./zabbix_agentd
停止 ps aux|grep zabbix_agentd|awk '{print $2}'|xargs kill -9
网友评论