./configure --prefix=/usr/local/zabbix --enable-server --enable-agent --with-mysql --enable-ipv6 --with-net-snmp --with-libcurl --with-libxml2
configure: error: Invalid Net-SNMP directory - unable to find net-snmp-config
yum install -y net-snmp-devel
configure: error: Unable to use libevent (libevent check failed)
yum install libevent-devel -y
<VirtualHost *:80>
ServerAdmin shenyi@com.cn
DocumentRoot "/var/www/html/tp5/public"
ServerName localhost
<Directory "/var/www/html/tp5/public">
Options None
AllowOverride All
Require all granted
</Directory>
ProxyRequests Off
ProxyPassMatch ^/(.*\.php)$ fcgi://127.0.0.1:9000/var/www/html/tp5/public/$1
</VirtualHost>
[workspace]
comment = Work Directory
valid users = root
path = /www/wwwroot
writable = yes
create mask = 0755
force create mode = 0755
directory mask = 0755
force directory mode = 0755
cp ./misc/init.d/tru64/* /etc/init.d/
chmod 775 /etc/init.d/zabbix_*
service zabbix_server start
chkconfig --add zabbix_agentd
chkconfig --add zabbix_server
chkconfig --level 345 zabbix_server on
chkconfig --level 345 zabbix_agentd on
如无法添加成功:修改启动脚本使其支持 redhat 的 chkconfig,分别在两个脚本的 #!/bin/sh 后加入如下两行注释,注意要行前要加“#” 哦
# chkconfig: - 95 95
# description: Zabbix Server
timedatectl set-timezone Asia/Shanghai