当前位置:网站首页>zabbix-server启动失败处理方式
zabbix-server启动失败处理方式
2022-06-30 12:18:00 【老师好我是大白】
错误重现
[[email protected] data]# systemctl status zabbix-server
● zabbix-server.service - Zabbix Server
Loaded: loaded (/usr/lib/systemd/system/zabbix-server.service; enabled; vendor preset: disabled)
Active: activating (auto-restart) (Result: exit-code) since 四 2022-06-09 16:18:54 CST; 6s ago
Process: 34789 ExecStop=/bin/kill -SIGTERM $MAINPID (code=exited, status=1/FAILURE)
Process: 34768 ExecStart=/usr/sbin/zabbix_server -c $CONFFILE (code=exited, status=0/SUCCESS)
Main PID: 34770 (code=exited, status=0/SUCCESS)
6月 09 16:18:54 ncayu101 kill[34789]: -q, --queue <sig> use sigqueue(2) rather than kill(2)
6月 09 16:18:54 ncayu101 kill[34789]: -p, --pid print pids without signaling them
6月 09 16:18:54 ncayu101 kill[34789]: -l, --list [=<signal>] list signal names, or convert one to a name
6月 09 16:18:54 ncayu101 kill[34789]: -L, --table list signal names and numbers
6月 09 16:18:54 ncayu101 kill[34789]: -h, --help display this help and exit
6月 09 16:18:54 ncayu101 kill[34789]: -V, --version output version information and exit
6月 09 16:18:54 ncayu101 kill[34789]: For more details see kill(1).
6月 09 16:18:54 ncayu101 systemd[1]: zabbix-server.service: control process exited, code=exited status=1
6月 09 16:18:54 ncayu101 systemd[1]: Unit zabbix-server.service entered failed state.
6月 09 16:18:54 ncayu101 systemd[1]: zabbix-server.service failed.

看提示中提到SElinux,检查发现确实没有关闭SELinux
[[email protected] data]# getenforce
Enforcing
[[email protected] data]# sestatus
SELinux status: enabled
SELinuxfs mount: /sys/fs/selinux
SELinux root directory: /etc/selinux
Loaded policy name: targeted
Current mode: enforcing
Mode from config file: enforcing
Policy MLS status: enabled
Policy deny_unknown status: allowed
Max kernel policy version: 31
关闭SELinux
1.以root权限远程连接ECS实例。连接方式请参见连接方式概述。
2.运行命令getenforce,验证SELinux状态。
返回状态如果是enforcing,表明SELinux已开启。
3.选择临时关闭或者永久关闭SELinux。
执行命令setenforce 0临时关闭SELinux。
永久关闭SElinux。
[[email protected] data]# getenforce
Enforcing
# 临时关闭 SELinux
[[email protected] data]# setenforce 0
[[email protected] data]#
[[email protected] data]#
[[email protected] data]# getenforce
Permissive
- a.运行以下命令,编辑SELinux的config文件。
vim /etc/selinux/config - b.找到SELINUX=enforcing,按i进入编辑模式,将参数修改为SELINUX=disabled。
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
我已经修改好了

c.修改完成后,按下键盘Esc键,执行命令:wq,保存并退出文件。
d.重启ECS实例。
shutdown -r now
- e.重启后,运行命令getenforce,验证SELinux状态为disabled,表明SELinux已关闭。
启动zabbix
systemctl start zabbix-server zabbix-agent httpd rh-php72-php-fpm
# Linux中查看
curl http://192.168.70.133/zabbix/setup.php

在浏览器中查看

边栏推荐
- ffmpeg 杂项
- Lichuang EDA learning notes 10 common connector component identification and passive buzzer driving circuit
- Redis - problèmes de cache
- LeetCode_栈_中等_227.基本计算器 II(不含括号)
- Flinksql customizes udatf to implement topn
- 黑马笔记---List系列集合与泛型
- Vision based robot grasping: from object localization, object pose estimation to parallel gripper grasping estimation
- FlinkSQL自定义UDTF使用的四种方式
- rpm2rpm 打包步骤
- Why should offline stores do new retail?
猜你喜欢

Redis installation on Linux system
![[QNX Hypervisor 2.2用户手册]6.2.3 Guest与外部之间通信](/img/ca/9065325ce8882d95fb24c82fb62abc.png)
[QNX Hypervisor 2.2用户手册]6.2.3 Guest与外部之间通信

Sarsa notes
![[qnx hypervisor 2.2 user manual]6.2.3 communication between guest and external](/img/ca/9065325ce8882d95fb24c82fb62abc.png)
[qnx hypervisor 2.2 user manual]6.2.3 communication between guest and external

Android development interview real question advanced version (with answer analysis)

Basic interview questions for Software Test Engineers (required for fresh students and test dishes) the most basic interview questions
![[one day learning awk] array usage](/img/75/4333452142a3c7325e0712f3306985.png)
[one day learning awk] array usage

Redis的配置文件及新数据类型

Redis - problèmes de cache

Analysis of the whole process of common tilt data processing in SuperMap idesktop
随机推荐
90. (cesium chapter) cesium high level listening events
Visual studio configures QT and implements project packaging through NSIS
【300+精选大厂面试题持续分享】大数据运维尖刀面试题专栏(二)
Pinda general permission system (day 7~day 8)
MySql实现两个查询结果相除
Double dqn notes
Can the polardb MySQL fees for RDS MySQL data migration be transferred?
【一天学awk】内置变量的使用
【目标跟踪】|pytracking 配置 win 编译prroi_pool.pyd
【一天学awk】正则匹配
Four ways for flinksql to customize udtf
腾讯二面:@Bean 与 @Component 用在同一个类上,会怎么样?
JMeter之事务控制器
Flink SQL console, group not recognized_ Concat function?
黑马笔记---List系列集合与泛型
Tencent cloud Database Engineer competency certification was launched, and people from all walks of life talked about talent training problems
Commands for redis basic operations
Mysql中 begin..end使用遇到的坑
"Xiaodeng" user personal data management in operation and maintenance
【OpenGL】OpenGL Examples