1 Open yum rpm installation package, the package is stored automatically downloaded rpm
The next installation, if there is no network can make your own yum source
open a file
[root@localhost etc]# vim /etc/yum.conf
keepcache = 0 to keepcache = 1
Rpm package path storage: This path can modify their own path to storage
cacheDir = / var / cache / yum /
2 Turn off the firewall and selinux
2.1 selinux detection is turned off
[root @ localhost etc] # getenforce
Enforcing #Enforcing open state
2.1.1 Temporary Close
[root @ localhost ~] # setenforce 0 # SELinux be provided enforcing mode
2.1.2 permanently closed
: [root @ localhost ~] # vi / etc / selinux / config
will SELINUX = enforcing changed SELINUX = disabled
need to restart to take effect after setting
2.2 Review the default firewall status
[root @ localhost ~] # firewall -cmd --state
after the display is turned off not running # not running, the display is turned on after running
1.2.1 Stop firewall
[root@localhost ~]# systemctl stop firewalld.service
1.2.2 prohibited firewall boot
[root @ localhost ~] # systemctl disable firewalld.service
3.Zabbix3.4 installation
3.1 yum source is arranged zabbix
[root@localhost ~]# rpm -ivh http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm
3.2 zabbix installation package installed mysql, zabbxi-agent
[root@localhost ~]# yum install -y zabbix-server-mysql zabbix-web-mysql zabbix-agent
3.3 and set boot to start mysql, create a database instance, the authorization
[root @ localhost ~] # mysql -uroot -p # sign in the database, password 123
MariaDB [(none)]> Create Character Database ZABBIX UTF8 SET COLLATE utf8_bin; # create a database instance
Query the OK,. 1 Row affected (0.00 sec)
MariaDB [ . (none)]> grant all privileges on zabbix * to zabbix @ '%' identified by 'zabbix'; # authorized for all hosts to access the database instance zabbix, username / password: zabbix / zabbix
Query the OK, 0 rows affected (0.00 sec)
MariaDB [(none)]> Grant All privileges ON zabbix * to zabbix @ localhost IDENTIFIED by 'zabbix'; # authorizing localhost host name to access the database instance zabbix, username / password:. Zabbix / zabbix
The OK Query, 0 rows affected (0.00 sec)
MariaDB [(none)]> Grant All privileges ON * zabbix to [email protected] IDENTIFIED by 'zabbix';. # Localhost.localdomain authorized hosts to access the database instance zabbix, username / password: zabbix / zabbix
Query OK, 0 rows affected (0.00 sec)
The initial data import mode and
[Root @ localhost ~] #cd /usr/share/doc/zabbix-server-mysql-3.4.15/ # enter the directory create.sql.gz
[Root @ localhost zabbix-server-mysql-3.4.4] # zcat create.sql.gz | mysql -uroot -p123 zabbix # import accident mode
Zabbix enter the mysql database, there will be 140 tables, indicating successful data import
3.4 Start zabbix-server service
3.4.1 zabbix-server configuration file zabbix_server.conf
[@ localhost ZABBIX the root-Server-MySQL-3.4.4] # VI /etc/zabbix/zabbix_server.conf
DBHost # data = localhost hostname
DBName = zabbix # database instance
DBUser = zabbix # username
DBPassword = zabbix # Password
3.4.2 Start zabbix-server service
[root @ localhost zabbix-server- mysql-3.4.4] # systemctl start zabbix-server # start zabbix-server service
[root @ localhost zabbix-server- mysql-3.4.4] # systemctl enable zabbix-server # Set zabbix- server service boot from the start
3.5 Edit the Apache configuration file, eliminating the comment set the correct time zone
[root@localhost zabbix-server-mysql-3.4.4]# vi /etc/httpd/conf.d/zabbix.conf
php_value max_execution_time 300
php_value memory_limit 128M
php_value post_max_size 16M
php_value upload_max_filesize 2M
php_value max_input_time 300
php_value always_populate_raw_post_data -1
php_value date.timezone Asia/Shanghai
启动httpd服务 ,设置开机启动httpd服务
[root @ localhost ~] # systemctl start httpd # service httpd start
[root @ localhost ~] # systemctl enable httpd # Set boot httpd service
3. Start zabbix-agent and set the boot from the start
[root @ localhost ~] # systemctl start zabbix-agent # start zabbix-agent services
[root @ localhost ~] # systemctl enable zabbix-agent # Set zabbix-agent service boot from the start
4.Zabbix Web pages to install
4.1 input in the browser address http: // server ip / zabbix / setup.php, welcome screen appears, click Next;