CentOS6.4 install and deploy zabbix
I. Deployment Environment
System: CentOS 6.4x64 minimal installation
Server: 192.168.3.28
Client: 192.168.3.29
Ii. Installation of basic software packages
Install the basic software package on the server. The environment here uses yum for installation. If you use the source code for installation, you can.
[root@zabbix-server~]
#yum-yinstallwgetvimtreegccgcc-c++autoconfhttpdphpmysqlmysql-serverphp-mysqlhttpd-manualmod_sslmod_perlmod_auth_mysqlphp-gdphp-xmlphp-mbstringphp-ldapphp-pearphp-xmlrpcphp-bcmathmysql-connector-odbcmysql-devellibdbi-dbd-mysqlnet-snmpnet-snmp-develcurl-devel
Start httpd and mysql and set it to boot automatically
[root@zabbix-server~]
#servicehttpdstart
[root@zabbix-server~]
#servicemysqldstart
[root@zabbix-server~]
#chkconfighttpdon
[root@zabbix-server~]
#chkconfigmysqldon
Port 80 and port 3306 are allowed in iptables.
[root@zabbix-server~]
#iptables-IINPUT-ptcp-mmultiport--destination-port80,3306-jACCEPT
# View firewall results
[root@zabbix-server~]
#iptables-L-n
ChainINPUT(policyACCEPT)
targetprotopt
source
destination
ACCEPTtcp--0.0.0.0
/0
0.0.0.0
/0
multiportdports80,3306
ACCEPTall--0.0.0.0
/0
0.0.0.0
/0
stateRELATED,ESTABLISHED
ACCEPTicmp--0.0.0.0
/0
0.0.0.0
/0
ACCEPTall--0.0.0.0
/0
0.0.0.0
/0
ACCEPTtcp--0.0.0.0
/0
0.0.0.0
/0
stateNEWtcpdpt:22
REJECTall--0.0.0.0
/0
0.0.0.0
/0
reject-withicmp-host-prohibited
ChainFORWARD(policyACCEPT)
targetprotopt
source
destination
REJECTall--0.0.0.0
/0
0.0.0.0
/0
reject-withicmp-host-prohibited
ChainOUTPUT(policyACCEPT)
targetprotopt
source
destination