CentOS6.4 install and deploy zabbix

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.