Error: after modifying the configuration file, reload it, and then report an error. nginx: [error] invalid PID number “” in “/usr/local/var/run/nginx.pid”
Solution restart nginx
nginx -c /usr/local/etc/nginx/nginx.conf
nginx -s reload
View port occupancy
lsof -i:8080
Delete port 8080 process
kill -9:834
To install nginx on MAC, use nginx - V
to view the installation path
configure arguments: --prefix=/usr/local/Cellar/nginx/1.19.6 --sbin-path=/usr/local/Cellar/nginx/1.19.6/bin/nginx --conf-path=/usr/local/etc/nginx/nginx.conf
-- prefix =/usr/local/cellular/nginx/1.19.6
represents the installation path -- SBIN path
represents the executable path -- conf path
represents the configuration file path
Read More:
- Nginx Startup Error: “/var/run/nginx/nginx.pid” failed” [How to Solve]
- [Solved] nginx: [error] open() “/usr/local/nginx/nginx.pid” failed (2: No such file or directory)
- [Solved] Nginx Restart Error: /run/nginx.pid failed (2: No such file or directory)
- Nginx Error: nginx: [emerg] the “ssl“ parameter requires ngx_http_ssl_module in /project/api/nginx.conf:
- Nginx Error: Swap file “/etc/nginx/.nginx.conf.swp“ already exists
- Nginx Startup Error: Job for nginx.service failed because the control process exited with error code
- Restart and stop of nginx in Linux service
- nginx: [emerg] bind() to 0.0.0.0:80 failed (13: Permission denied)
- [Solved] Nginx Startup Error: directive is not allowed here in
- Solve the problem of 404 Not Found error in nginx accessing dynamic interface
- Nginx Error: [emerg] bind() to [::]:80 failed (98: Address already in use)
- [Solved] Nginx cannot access pictures on FTP Error: Whitelabel error page
- How to Fix No default.conf file in conf.d after Installing Nginx
- summary of configuration and deployment of uwsgi+nginx+flag in centos7 and why internal server error is prompted [official instructions]
- Common configuration methods of nginx
- Nginx realizes the same background service for portal and business
- Nginx Reverse Proxy 426 Error [How to Fix]
- [Solved] Error during installation of nginx: Make: * * * [build] error 2
- Nginx configuration 80 can be accessed by forcing jump 443 or not
- Nginx Error: SSL: error:140AB18F:SSL routines:SSL_CTX_use_certificate:ee key too small