zabbix-server启动失败处理方式_[shawn@zbx-server ~]$ systemctl status zabbix-serv

[root@ncayu101 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 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 [=] 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.


![在这里插入图片描述](https://img-blog.csdnimg.cn/a8479efb0e61440cb601cd1b4961171d.png#pic_center)  
 `看提示中提到SElinux,检查发现确实没有关闭SELinux`



[root@ncayu101 data]# getenforce
Enforcing
[root@ncayu101 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。



[root@ncayu101 data]# getenforce
Enforcing

临时关闭 SELinux

[root@ncayu101 data]# setenforce 0
[root@ncayu101 data]#
[root@ncayu101 data]#
[root@ncayu101 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


我已经修改好了


![在这里插入图片描述](https://img-blog.csdnimg.cn/b879ccfe49644ebfa45c0338d9f7c192.png#pic_center)


* c.修改完成后,按下键盘Esc键,执行命令:wq,保存并退出文件。
* d.重启ECS实例。





**自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。**

**深知大多数Linux运维工程师,想要提升技能,往往是自己摸索成长或者是报班学习,但对于培训机构动则几千的学费,着实压力不小。自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!**

**因此收集整理了一份《2024年Linux运维全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。**
![img](https://img-blog.csdnimg.cn/img_convert/0cbbd7e0af38d9fb18c9057c4b596601.png)
![img](https://img-blog.csdnimg.cn/img_convert/3587c88bfb41684378218b7420be34df.png)
![img](https://img-blog.csdnimg.cn/img_convert/1d3de695908d65e95150728514c764bc.png)
![img](https://img-blog.csdnimg.cn/img_convert/97d879e0933fa2d97249d1ced0a7717a.png)
![img](https://img-blog.csdnimg.cn/img_convert/7ae4270ea7be41f0b0fb019ffa9cd9bc.png)

**既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上Linux运维知识点,真正体系化!**

**由于文件比较大,这里只是将部分目录大纲截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且后续会持续更新**

**如果你觉得这些内容对你有帮助,可以添加VX:vip1024b (备注Linux运维获取)**
![img](https://img-blog.csdnimg.cn/img_convert/de92fcf6b20acc2a4c8274fd9c53d875.jpeg)



### 最后的话

最近很多小伙伴找我要Linux学习资料,于是我翻箱倒柜,整理了一些优质资源,涵盖视频、电子书、PPT等共享给大家!

### 资料预览

给大家整理的视频资料:

![](https://img-blog.csdnimg.cn/img_convert/c3054940fd1b9d8cbee3e6fee988249f.png)

给大家整理的电子书资料:

  

![](https://img-blog.csdnimg.cn/img_convert/2f5aa3b013f349f1d6fcf4a971729055.png)



**如果本文对你有帮助,欢迎点赞、收藏、转发给朋友,让我有持续创作的动力!**


**一个人可以走的很快,但一群人才能走的更远。不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎扫码加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!**
![img](https://img-blog.csdnimg.cn/img_convert/42cde6be6fe0aef041f3c2d964c0304b.jpeg)


**一个人可以走的很快,但一群人才能走的更远。不论你是正从事IT行业的老鸟或是对IT行业感兴趣的新人,都欢迎扫码加入我们的的圈子(技术交流、学习资源、职场吐槽、大厂内推、面试辅导),让我们一起学习成长!**
[外链图片转存中...(img-VeqI7coO-1712870595432)]

  • 23
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值