当前位置:网站首页>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

在浏览器中查看

边栏推荐
- 时空预测2-GCN_LSTM
- Introduction to sub source code updating: mid May: uniques NFT module and nomination pool
- 药店管理系统
- Vision based robot grasping: from object localization, object pose estimation to parallel gripper grasping estimation
- Google refutes rumors and gives up tensorflow. It's still alive!
- SuperMap iclient3d for webgl loading TMS tiles
- ffmpeg 杂项
- Redis-緩存問題
- 项目中遇到一个有趣的事情
- JMeter's performance test process and performance test focus
猜你喜欢

Sarsa notes

黑马笔记---包装类,正则表达式,Arrays类

SuperMap iclient3d for webgl loading TMS tiles

Dqn notes

电机控制Clarke(α/β)等幅值变换推导

Visual studio configures QT and implements project packaging through NSIS

【一天学awk】内置变量的使用

问卷星问卷抓包分析
![[surprised] the download speed of Xunlei is not as fast as that of the virtual machine](/img/04/b0d23266b70c9ad6990a5203ef8ddf.png)
[surprised] the download speed of Xunlei is not as fast as that of the virtual machine

【OpenGL】OpenGL Examples
随机推荐
After the market value evaporated by 65billion yuan, the "mask king" made steady medical treatment and focused on condoms
[MySQL] MySQL installation and configuration
【MySQL】MySQL的安装与配置
Vision based robot grasping: from object localization, object pose estimation to parallel gripper grasping estimation
Inner join and outer join of MySQL tables
【300+精选大厂面试题持续分享】大数据运维尖刀面试题专栏(二)
Google refutes rumors and gives up tensorflow. It's still alive!
RDS MySQL数据迁移PolarDB MySQL费用可以转过去吗?
基于ThinkPHP5封装-tronapi-波场接口-源码无加密-可二开--附接口文档-作者详细指导-2022年6月30日08:45:27
解决numpy.core._exceptions.UFuncTypeError: ufunc ‘add‘ did not contain a loop with signature matchin问题
机器学习笔记 - 自相关和偏自相关简介
Docker安装Mysql8和sqlyong连接报错2058的解决方法[随笔记录]
Substrate 源码追新导读: Pallet Alliance 并入主线,
Commands for redis basic operations
dataworks 同步maxcomputer 到sqlserver ,汉字变乱码了,请问怎么解决
Charles break point modify request data & response data
Substrate 源码追新导读: 质押额度大幅度削减, RocksDB可以完全被Disable
Determining the subject area of data warehouse construction
时空预测2-GCN_LSTM
Redis cache problem