The following error is reported when starting zabbix-server:
29171:20180714:084911.367 cannot start alert manager service: Cannot bind socket to "/var/run/zabbix/zabbix_server_alerter.sock": [13] Permission denied.
29142:20180714:084911.368 One child process died (PID:29171,exitcode/signal:1). Exiting ...
29225:20180714:084923.611 cannot start preprocessing service: Cannot bind socket to "/var/run/zabbix/zabbix_server_preprocessing.sock": [13] Permission denied.
29213:20180714:084923.613 server #18 started [poller #2]
29195:20180714:084923.614 One child process died (PID:29225,exitcode/signal:1). Exiting ...
29195:20180714:084925.615 syncing history data...
29195:20180714:084925.615 syncing history data done
29195:20180714:084925.615 syncing trend data...
29195:20180714:084925.615 syncing trend data done
29195:20180714:084925.615 Zabbix Server stopped. Zabbix 3.4.10 (revision 81503).
The above is only pasted part of the error log.
The above reason is because SELINUX starts
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: disabled
Policy MLS status: enabled
Policy deny_unknown status: allowed
Max kernel policy version: 28
The solution is as follows:
vim /etc/selinux/config
# 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=disabled
# SELINUXTYPE= can take one of three two values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted
Modify the SELINUX=disabled
configuration file and close it permanently.
setenforce 0
: Temporarily close SELINUX.
Read More:
- Flask Startup Error: s.bind(server_address)PermissionError: [Errno 13] Permission denied
- zabbix-Get value from agent failed: cannot connect to [[127.0.0.1]:10050]: [111] Connection refused
- [Solved] Zabbix Error: Cannot parse list of active checks
- socket java.net.BindException: bind failed: EACCES (Permission denied)
- [Solved] zabbix Error: Cannot perform request: error:141A318A:SSL routines:tls_process_ske_dhe:dh key too small
- [Solved] Redis startup error Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
- [Solved] error when starting dev server:Error: listen EACCES: permission denied 0.0.0.0:80 at Server.set
- [Solved] Vscode Connect to the remote server error: permission denied (public key)
- [Solved] Redis Error: Creating Server TCP listening socket *:6379: bind: No error
- [Solved] Docker startup container error: permission denied””: unknown.
- [Solved] Redis Error: creating server tcp listening socket 127.0.0.1:6379: bind No error
- [Solved] Docker Error: got permission denied while trying to connect to the docker daemon socket at…
- [Solved] Android7 8 Jack server SSL error: Jack server failed to (re)start, try ‘jack-diagnose’ or see Jack server log
- [Solved] Windows Nginx Startup Error: bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket
- Nginx Container Error: nginx: [emerg] mkdir() “/var/cache/nginx/client_temp“ failed (13: Permission denied)
- [Solved] Nacos Start Error: failed to req API:127.0.0.1:8848/nacos/v1/ns/service/list. code:503 msg: server is DOWN now
- [Solved] rabbitmq Start service rabbitmq-server restart Error
- OpenSSL: error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failur
- [Solved] appium Original error: Could not proxy command to the remote server. Original error: socket hang up
- [Solved] Git Clone Error: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version