Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Zabbix deployment (1)

2025-01-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Server deployment

Back up the original yum

[root@ns1 ~]# find /etc/yum.repos.d/ -name '*.repo' -exec mv {} {}.back \;

Yum source

[root@ns1 ~]# vim /etc/yum.repos.d/aliyun.repo [aliyun]name=centos6baseurl=https://mirrors.aliyun.com/centos/6/os/x86_64/enabled=1gpgkey=https://mirrors.aliyun.com/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6gpgcheck=1[epel]name=Extra Packages for Enterprise Linux 6 - $basearchbaseurl=http://mirrors.aliyun.com/epel/6/$basearch http://mirrors.aliyuncs.com/epel/6/$basearchfailovermethod=priorityenabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

Install front-end web

[root@ns1 ~]yum -y install httpd php php-mysql mysql-server [root@ns1 ~]service httpd start

Modify the database configuration file and change the encoding to utf8

[root@ns1 ~]vim /etc/my.cnf[mysqld]default-character-set=utf8[root@ns1 ~]service mysqld start

Add boot up auto-start

[root@ns1 ~]chkconfig httpd on[root@ns1 ~]chkconfig mysqld on

Install zabbix server

[root@ns1 ~]#yum -y install zabbix22-server

initialize the database

[root@ns1 ~]# mysql -uroot

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report