centos7 安装 zibbix4.4.1 自测部署安装

yum install epel-release
wget http://rpms.famillecollet.com/enterprise/remi-release-7.rpm
rpm -Uvh remi-release-7.rpm

cd /etc/yum.repos.d/

vi mariadb.repo
[mariadb]
name = MariaDB
baseurl = http://mirrors.ustc.edu.cn/mariadb/yum/10.2/centos7-amd64
gpgkey=https://mirrors.ustc.edu.cn/mariadb/yum/RPM-GPG-KEY-MariaDB
gpgcheck=1

 

yum install mariadb-server mariadb

systemctl start mariadb //启动数据库
systemctl enable mariadb //设置开机自启

mysql_secure_installation


rpm -Uvh https://repo.zabbix.com/zabbix/4.4/rhel/7/x86_64/zabbix-release-4.4-1.el7.noarch.rpm

yum clean all
yum -y install epel-release

yum -y install zabbix-server-mysql zabbix-web-mysql zabbix-agent
yum clean all

mysql -uroot -p
create database zabbix character set utf8 collate utf8_bin;
grant all privileges on zabbix.* to zabbix@localhost identified by 'zabbix';


初始化和导入数据,输入数据库root的密码
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix


vi /etc/zabbix/zabbix_server.conf
DBPassword=password

vi /etc/php.ini
date.timezone = Asia/Shanghai

vi /etc/nginx/nginx.conf
注释掉默认的配置

#server {
# listen 80 default_server;
# listen [::]:80 default_server;
# server_name _;
# root /usr/share/nginx/html;

# # Load configuration files for the default server block.
# include /etc/nginx/default.d/*.conf;

# location / {
# }

# error_page 404 /404.html;
# location = /40x.html {
# }

# error_page 500 502 503 504 /50x.html;
# location = /50x.html {
# }
#}

 

启动zabbix服务器和代理进程,并使其在系统启动时启动:

# systemctl restart zabbix-server zabbix-agent nginx php-fpm
# systemctl enable zabbix-server zabbix-agent nginx php-fpm


连接到新安装的zabbix前端:http://server ip

点击“Next strp”

确认是否满足Zabbix的运行条件,如果不行,请修改,如果确认无误,点击“Next strp”

配置数据库,输入相关的账户和密码,点击“Next strp”

配置服务器的监听端口

再次确认信息无误后点击“Next strp”

将相关的配置文件保存一下,点击“Finish”完成配置。

这里的账户是Admin,密码是zabbix,(A必须大写!)

 

 

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

skydust1979

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值