Error when starting keepalived
view log
tail -fn 200 /var/log/messages
SECURITY VIOLATION – scripts are being executed but script_security not enabled
In the global_defs configuration add: enable_script_security
global_defs { router_id lb-master enable_script_security }
The error “default user does not exist” is reported for kept..
WARNING – default user ‘keepalived_ script’ for script execution does not exist – please create.
Solution: add the user or group running the health check script to the configuration file
global_defs { router_id k8s #Add script_user root enable_script_security }
The following error occurred when starting nginx:
open() "/run/nginx.pid" failed (2: No such file or directory)
[emerg] bind() to 0.0.0.0:80 failed (98: Address already in use)
The general reason is that the nginx port is occupied
Solution 1
ps -ef|grep nginx kill pad
Solution 2
Switch to nginx SBIN directory
-- Stop sudo ./nginx -s stop -- Start ./nginx
Similar Posts:
- [Solved] Nginx can’t listen to the problem of virtual VIP: 99: cannot assign requested address
- [Solved] Nginx Log Error: open() “/opt/Nginx/nginx/nginx.pid” failed (2: No such file or directory)
- CentOS starts nginx and prompts nginx: [emergency] still could not bind ()
- Nginx Failed to Starup Error: [emerg] mkdir() “/var/tmp/nginx/client” failed (2: No such file or directory)
- Nginx+PHP FastCGI sent in stderr: “Primary script unknown” while reading response head…
- nginx Server Start Error: nginx: [emerg] open() “/var/run/nginx/nginx.pid” failed (Linux Restart)
- Nginx Error when installing the startup service failed to start a high performance web server and a reverse proxy serve
- [Solved] Nginx restart error: nginx: [error] open() “/run/nginx.pid” failed (2: No such file or directory)
- Nginx Error: nginx: [emerg] “server” directive is not allowed here in
- Nginx normal user startup configuration error: && springboot-swagger & Unable to infer base url