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 just a partial error log pasted.
The above reason is that SELinux starts
sestatus code>
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 code>
# 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 SELinux = disabled code> modify configuration file to close permanently.
setenforce 0 code>: temporarily shut down SELinux.
SELinux can also be set to allow ZABBIX access, which is not very troublesome, but SELinux can not be used basically. If you want to know, you can search for it by yourself. Here, I just want to make more statements.
Reproduced in: https://www.cnblogs.com/Cherry-Linux/p/9308490.html
Read More:
- Eureka server startup error: cannot execute request on any known server
- [mysql] “Failed to start MySQL Server” error resolution
- Resolution of internal server error problem in diango project
- ZABBIX agent failed to start
- /usr/sbin/zabbix_agentd: error while loading shared libraries: libcurl.so.4
- Error: the version of ZABBIX database does not match the current requirements
- Solution of server startup timeout in eclipse
- MariaDB startup error: Failed to start MariaDB database server
- Creating Server TCP listening socket 127.0.0.1:6379: bind: No error。。。 Solutions to problems encountered in startup
- Error in startup after the supervisor modifies the configuration file: error: cannot open an HTTP server: socket.error reported errno.eaddnotavail
- Windows redis startup error reported: Creating Server TCP listening socket 127.0.0.1:6379: bind: No error
- [Solved] Tomcat9 Startup Error: Failed creating Java ‘XXXX\Java\jdk1.8\jre\bin\server\jvm.dll‘.
- Resolve zuul the HTTP status 500 – internal server error error error displayed after startup
- Raspberry pie startup self startup opencv program script and error analysis
- The server just without updating PID file and can’t connect to local MySQL server through socket are solved
- AH01909: localhost:443:0 server certificate does NOT include an ID which matches the server name
- ACPI BIOS error resolution
- Could not publish server configuration for Tomcat v8.5 server at localhost
- Server Tomcat v7.0 server at localhost failed to start
- Server Tomcat v8.0 Server at localhost failed to start.