Zabbix安装配置(CentOS7.3)
2017-11-08 08:42
537 查看
1. 最小安装CentOS7
2. 开启网卡sed -i "s/ONBOOT=no/ONBOOT=yes/" /etc/sysconfig/network-scripts/ifcfg-ens33
3. 重启网络服务systemctl restart network
4. 安装vimyum -y install vim
5. 安装epel仓库yum -y install epel-release
6. 更新系统yum -y update
[root@test ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core)
7. 设置主机名 echo "test.zeng.com" > /etc/hostname
8. 关闭SELINUXsetenforce 0
sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/sysconfig/selinux
9. 关闭firewalld(仅测试环境)systemctl stop firewalld
systtemctl disable firewalld
10. 重启系统reboot
11. yum -y install wget
12. 下载与安装zabbix和mysql仓库wget http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
yum localinstall zabbix-release-3.4-2.el7.noarch.rpm
yum localinstall mysql57-community-release-el7-11.noarch.rpm
13. 安装LAMPyum -y install php mysql-server
14. 启动mysqld服务systemctl start mysqld; systemctl enable mysqld
15. 找到mysql默认root密码grep password /var/log/mysqld.log
16. mysql安全初始化mysql_secure_installation
17. 安装Zabbixyum -y install zabbix-server-mysql zabbix-web-mysql
18. 导入zabbix数据库cd /usr/share/doc/zabbix-server-mysql-3.4.1/
gzip -d create.sql.gzmysql -u root -p
create database zabbix character set utf8 collate utf8_bin; # 创建zabbix数据库
grant all privileges on zabbix.* to zabbix@localhost identified by 'redhat' with grant option; # 赋权限
use zabbix;source create.sql; # 导数据
flush privileges; exit;
19. 设置php时区vim /etc/php.inidate.timezone = Asia/Shanghai
20. 启动httpd服务systemctl start httpd; systemctl enable httpd
21. 修改zabbix_server配置文件
vim /etc/zabbix/zabbix_server.conf
DBPassword=redhat # 只需取消此行注释,并输入zabbix数据库密码
22. 启动zabbix服务
systemctl start zabbix-server; systemctl enable zabbix-server
23. 查看监听端口
netstat -antupl
24. 将页面语言设置为中文后,图形显示会有乱码,此时需为zabbix web更换中文字体。
25. 找到字体存放目录
find / -name fonts
cd /usr/share/zabbix/fonts
26. 在C:\Windows\Fonts目录下找到喜欢的字体,如微软雅黑(简体中文),拷贝到 /usr/share/zabbix/fonts
27. 重命名字体
cp graphfont.ttf graphfont.ttf.bak
cp MSYHBD.TTC graphfont.ttf
28. 重启zabbix服务
systemctl restart zabbix-server
29. 访问zabbix web http://127.0.0.1/zabbix
默认用户名: Admin
默认密码: zabbix
2. 开启网卡sed -i "s/ONBOOT=no/ONBOOT=yes/" /etc/sysconfig/network-scripts/ifcfg-ens33
3. 重启网络服务systemctl restart network
4. 安装vimyum -y install vim
5. 安装epel仓库yum -y install epel-release
6. 更新系统yum -y update
[root@test ~]# cat /etc/redhat-release CentOS Linux release 7.4.1708 (Core)
7. 设置主机名 echo "test.zeng.com" > /etc/hostname
8. 关闭SELINUXsetenforce 0
sed -i "s/SELINUX=enforcing/SELINUX=disabled/g" /etc/sysconfig/selinux
9. 关闭firewalld(仅测试环境)systemctl stop firewalld
systtemctl disable firewalld
10. 重启系统reboot
11. yum -y install wget
12. 下载与安装zabbix和mysql仓库wget http://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
yum localinstall zabbix-release-3.4-2.el7.noarch.rpm
yum localinstall mysql57-community-release-el7-11.noarch.rpm
13. 安装LAMPyum -y install php mysql-server
14. 启动mysqld服务systemctl start mysqld; systemctl enable mysqld
15. 找到mysql默认root密码grep password /var/log/mysqld.log
16. mysql安全初始化mysql_secure_installation
17. 安装Zabbixyum -y install zabbix-server-mysql zabbix-web-mysql
18. 导入zabbix数据库cd /usr/share/doc/zabbix-server-mysql-3.4.1/
gzip -d create.sql.gzmysql -u root -p
create database zabbix character set utf8 collate utf8_bin; # 创建zabbix数据库
grant all privileges on zabbix.* to zabbix@localhost identified by 'redhat' with grant option; # 赋权限
use zabbix;source create.sql; # 导数据
flush privileges; exit;
19. 设置php时区vim /etc/php.inidate.timezone = Asia/Shanghai
20. 启动httpd服务systemctl start httpd; systemctl enable httpd
21. 修改zabbix_server配置文件
vim /etc/zabbix/zabbix_server.conf
DBPassword=redhat # 只需取消此行注释,并输入zabbix数据库密码
22. 启动zabbix服务
systemctl start zabbix-server; systemctl enable zabbix-server
23. 查看监听端口
netstat -antupl
24. 将页面语言设置为中文后,图形显示会有乱码,此时需为zabbix web更换中文字体。
25. 找到字体存放目录
find / -name fonts
cd /usr/share/zabbix/fonts
26. 在C:\Windows\Fonts目录下找到喜欢的字体,如微软雅黑(简体中文),拷贝到 /usr/share/zabbix/fonts
27. 重命名字体
cp graphfont.ttf graphfont.ttf.bak
cp MSYHBD.TTC graphfont.ttf
28. 重启zabbix服务
systemctl restart zabbix-server
29. 访问zabbix web http://127.0.0.1/zabbix
默认用户名: Admin
默认密码: zabbix
相关文章推荐
- Zabbix安装配置(CentOS7.3)
- centos7.3 zabbix3.2 安装server端
- 阿里云服务器配置开发环境第四章:Centos7.3安装Maven以及环境配置
- centos6.4yum安装和配置zabbix_server
- Centos7_zabbix安装配置
- CentOS 6.4下Zabbix的安装配置
- centos6.5安装配置zabbix3.0.3
- Linux安装zabbix--CentOS7.3
- Centos7.3安装和配置Mysql5.7
- Centos7.3安装Zabbix3.2(Yum详细步骤)
- Centos7下安装及配置Zabbix3.0
- 集中化监控工具zabbix的安装配置(centos7)
- centos7.3安装与配置SVN
- CentOS7.3 安装及配置jdk1.8
- CentOS 7.3 中安装 JDK 及环境变量配置
- 阿里云服务器配置开发环境第七章:Centos7.3安装nginx以及环境配置
- centos 7.3安装配置Python3.61
- 腾讯云centOS7.3,xampp建站集成软件包,配置安装ssl
- 我的linux之路[第六篇] 在CentOS7.3中安装配置Apache2.4+Subversion1.9.5版本库
- centos 7.3 安装 nginx 及简单配置