In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Zabbix2.4 deployment
Preparation before installation
1. Configure the local yum source
2. Yum-y install ntpdate # installation time synchronization
3. Echo'* / 1 * / usr/sbin/ntpdate ntp1.aliyun.com & > / dev/null' > > / var/spool/cron/root # configure scheduled tasks, updating time every 1 minute, ntp1.aliyun.com Ali time server
4. Service crond restart # restart the scheduled task
5. Echo '192.168.0.10 www.zabbix-server' > > / etc/hosts # set hostname resolution
2. Configure zabbix network yum source
1. Rpm-ivh http://mirrors.aliyun.com/zabbix/zabbix/3.0/rhel/6/x86_64/zabbix-release-3.0-1.el6.noarch.rpm # configure zabbix network yum source
2 、 vim / etc/yum.repos.d/zabbix.repo
[zabbix]
Name=Zabbix Official Repository-$basearch
Baseurl= http://mirrors.aliyun.com/zabbix/zabbix/2.4/rhel/6/$basearch/
# modified to Ali's yum source, defaulting to official yum source (abroad)
Enabled=1
Gpgcheck=1
Gpgkey= file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
[zabbix-non-supported]
Name=Zabbix Official Repository non-supported-$basearch
Baseurl= http://mirrors.aliyun.com/zabbix/non-supported/rhel/6/$basearch
# modified to Ali's yum source
Enabled=1
Gpgkey= file:///etc/pki/rpm-gpg/RPM-GPG-KEY-ZABBIX
Gpgcheck=1
Third, install zabbix
Yum-y install httpd # install web server
Yum-y install mysql mysql-server # installation database
# install related dependency packages (download address: http://rpmfind.net/linux/rpm2html)
Rpm-ivh php-mbstring-5.3.3-49.el6.x86_64.rpm
Rpm-ivh php-bcmath-5.3.3-49.el6.x86_64.rpm
Rpm-ivh php-common-5.3.3-49.el6.x86_64.rpm
Rpm-ivh php-common-5.3.3-26.el6.x86_64.rpm-force
# install zabbix
Yum install zabbix zabbix-server zabbix-server-mysql zabbix-get zabbix-web zabbix-web-mysql zabbix-agent zabbix-sender
4. Configure the zabbix environment
Mysql configuration:
Chkconfig-- add mysqld # set Boot self-boot
Chkconfig mysqld on # enable runlevel
Service mysqld start # start the database
Mysqladmin-uroot password 123.com # set the database administrator password
Mysql-uroot-p # enter the database
Create database zabbix character set utf8; # create the database and set the character set
Grant all on zabbix.* to "zabuser" @ "192.168.0.10" identified by '123.com'
# authorized users
Import data into mysql (must be imported sequentially)
Cd / usr/share/doc/zabbix-server-mysql-2.4.8/create
Mysql-uroot-p123.com zabbix < schema.sql
Mysql-uroot-p123.com zabbix < p_w_picpaths.sql
Mysql-uroot-p123.com zabbix < data.sql
5. Initialize zabbix configuration:
Vim / etc/zabbix/zabbix_server.conf # modify the main configuration file
# Note: to execute the configuration below, you only need to change the configuration file.
DBHost=192.168.0.10 # Database address
DBName=zabbix # name of the database where the zabbix data is stored
DBUser=zabuser # user name to connect to the database
DBPassword=123.com # password required for the user to connect to the database
Port number of the DBPort=3306 # database
Vim / etc/php.ini
[Date]
Date.timezone = Asia/Shanghai # change the time zone
Service httpd start # launch httpd
Service zabbix-server # launch zabbix
Netstat-napt | grep 10051 # zabbix listens to port 10051 by default
VI. Webside configuration
/ etc/httpd/conf.d/zabbix.conf # web configuration file for zabbix
# enter in the browser
Http://192.168.0.10/zabbix # enters the web configuration side of zabbix
Follow the prompts to complete the web configuration (full graphical interface)
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.