当前位置:网站首页>ZABBIX offline installation
ZABBIX offline installation
2022-06-11 01:05:00 【CheerTan】
zabbix Offline installation
1 close selinux
vi /etc/selinux/config # take SELINUX = enforcing Change it to SELINUX = disabled Restart is required after setting to take effect
setenforce 0 # Temporary closure order
getenforce # testing selinux Whether to shut down disabled The closed position
2 Turn off firewall
firewall-cmd --state # View firewall status Show... When off not running Turn on the display running
systemctl stop firewalld.service Turn off firewall temporarily
systemctl disable firewalld.service prohibit firewall Boot up
3 Upload zabbix Offline package Upload offline package to /usr/local/zabbix-rpm Catalog
mkdir -p /usr/local/zabbix-rpm
4 install
cd /usr/local/zabbix-rpm/
yum clean all ; yum localinstall –y --skip-broken ./*
5 Start database Add to boot up
systemctl start mariadb.service
systemctl enable mariadb.service
6 Initialize database
mysql_secure_installation

7 Create the initial database ( Set the password here to [email protected])
mysql -uroot -p
mysqladmin -u root password [email protected] # Set up the database root password ( The password can be changed by yourself )
mysql -u root -p #root User login database
show databases;
CREATE DATABASE zabbix character set utf8 collate utf8_bin; # establish zabbix database ( Chinese encoding format )
GRANT all ON zabbix.* TO ‘zabbix’@‘%’ IDENTIFIED BY ‘[email protected]’; # grant zabbix user zabbix All permissions of the database
flush privileges; # Refresh the permissions
quit # Exit database
Be careful : To guarantee zabbix Users can also log into the database , If you can't log in locally , The solution is as follows :
mysql -u root -p # Use root Account login database ;
select user,host,password from mysql.user; # There is an empty user name occupied, resulting in local unable to log in, remote login
drop user ‘’@localhost; # Delete empty users

8 Import initial database
zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix
Check whether the database is imported successfully
9 edit httpd
vim /etc/httpd/conf/httpd.conf
add to :ServerName www.zabbixyk.com # Change to host name
DirectoryIndex index.html index.php # Add home page support format

10 To configure zabbix_server
vim /etc/zabbix/zabbix_server.conf # Configure database user and password

grep -n ‘^’[a-Z] /etc/zabbix/zabbix_server.conf # Confirm the database user and password

11 To configure zabbix front end php
vim /etc/php.ini
max_execution_time = 300
memory_limit = 128M // Default
post_max_size = 16M
upload_max_filesize = 2M // Default
max_input_time = 300
max_input_vars = 10000
always_populate_raw_post_data = -1
grep -n ‘^’[a-Z] /etc/php.ini // Easy to check
12 To configure zabbix The time zone
vim /etc/httpd/conf.d/zabbix.conf Change the time zone
Change the time zone php_value date.timezone Asia/Shanghai

13 start-up zabbix-server , zabbix-agent ,httpd service And set the power on self starting
systemctl restart zabbix-server zabbix-agent httpd // start-up
systemctl enable zabbix-server zabbix-agent httpd // Add power on self start

systemctl status httpd # Check the status
ps aux|grep mysql // see mysql process

systemctl status zabbix-server // Check the status
netstat -anpt | grep zabbix // Monitor in 10051 On port , If the monitoring fails , It can be restarted zabbix-server Try the service

more /var/log/zabbix/zabbix_server.log // Check the day






边栏推荐
- cosine 相似度计算总结
- Introduction and basic construction of kubernetes
- Using solrj to add, delete, modify, and query Solr is too simple
- Logback log framework
- 【ROS入门教程】---- 03 ROS工作空间与功能包
- How to ensure the sequence of messages, that messages are not lost or consumed repeatedly
- 阻塞隊列 — DelayedWorkQueue源碼分析
- table_exists_action=append和table_exists_action=truncate
- Alicloud configures SLB (load balancing) instances
- DeepStream系列之鱼眼相机测试
猜你喜欢

Team management | how to improve the thinking skills of technical leaders?

lucene思维导图,让搜索引擎不再难懂

Random points in non overlapping rectangles

MySQL

【NVIDIA驱动的顽固问题】---- /dev/sdax:clean,xxx/xxx files,xxx/xxx blocks ---- 最全解决方法

DevOps到底是什么意思?

Using solrj to add, delete, modify, and query Solr is too simple

Pirate OJ 448 luck draw

非重叠矩形中的随机点
![[persistent problems of NVIDIA driver] - - /dev/sdax:clean, xxx/xxx files, xxx/xxx blocks - the most complete solution](/img/0e/8c79f7c77f61dfa9a155ab33b77081.png)
[persistent problems of NVIDIA driver] - - /dev/sdax:clean, xxx/xxx files, xxx/xxx blocks - the most complete solution
随机推荐
DevOps到底是什么意思?
集线器、交换机与路由器有什么区别?
Introduction and basic construction of kubernetes
A simple understanding of B tree
Can I buy annuity insurance? Is annuity insurance safe?
Deep copy and shallow copy in golang
Datatemplate in WPF
Network Engineer required course firewall security zone and basic operation of security policy
[论文阅读] BoostMIS: Boosting Medical Image Semi-supervised Learning with Adaptive Pseudo Labeling
BlindWaterMar报错No module named cv2
[persistent problems of NVIDIA driver] - - /dev/sdax:clean, xxx/xxx files, xxx/xxx blocks - the most complete solution
About log traffic monitoring and early warning small project | flag log monitoring script
Controltemplate in WPF
About log traffic monitoring and early warning small project | database management tool: migrate
如何保证消息的顺序性、消息不丢失、不被重复消费
The principle and source code interpretation of executor thread pool in concurrent programming
Blend for visual studio overview
DeepStream系列之鱼眼相机测试
ViewPager和底部无线循环的小圆点
MESI cache consistency protocol for concurrent programming