current location:Home > Technical Articles > Operation and Maintenance > Nginx
- Direction:
- All web3.0 Backend Development Web Front-end Database Operation and Maintenance Development Tools PHP Framework Daily Programming WeChat Applet Common Problem Other Tech CMS Tutorial Java System Tutorial Computer Tutorials Hardware Tutorial Mobile Tutorial Software Tutorial Mobile Game Tutorial
- Classify:
-
- How to restart nginx server
- Method to restart the nginx server: Enter the nginx executable directory sbin and enter the command ./nginx -s reload to restart the nginx server; find the current nginx process number, and then enter the command: kill -HUP process number to restart the nginx service.
- Nginx 16102 2019-11-02 09:18:29
-
- How to check whether nginx is started on windows
- There are many ways to check whether nginx is started on Windows, such as: Check the process method. If the nginx service is started, you can see its process in the task manager. Otherwise, it means that it has not started normally. Check the file method. After nginx is started, the nginx.pid file will be generated in the logs directory and will be automatically deleted after stopping.
- Nginx 52142 2019-11-01 15:08:41
-
- How to start nginx after installing nginx
- After installing nginx in Linux, use the sudo /usr/local/nginx/sbin/nginx command to start and execute the nginx server.
- Nginx 4833 2019-11-01 14:55:45
-
- How php and nginx communicate
- There are two communication methods between Nginx and PHP: unix socket and tcp socket. The unix socket needs to fill in the pid file address of php-fpm running in the nginx configuration file.
- Nginx 4209 2019-11-01 14:43:43
-
- How to monitor nginx log data in real time
- Nginx log data can be monitored in real time using ngxtop. ngxtop parses nginx access logs in real time and outputs the results (useful indicators of the nginx server) to the terminal. It can not only monitor access to Nginx logs in real time, but also troubleshoot and organize previous logs.
- Nginx 3781 2019-11-01 14:34:52
-
- How nginx does load balancing
- There are several ways for nginx to do load balancing: polling (default). Each request is assigned to different back-end servers one by one in chronological order. If the back-end server goes down, it can be automatically eliminated. Weight, specifies the polling probability, weight is proportional to the access ratio, and is used when the performance of the back-end server is uneven.
- Nginx 9450 2019-11-01 14:24:56
-
- How to add domain address to nginx
- Find the nginx configuration file nginx/nginx.conf, configure it directly in nginx.com, and use server_name to add a new domain name in the server module.
- Nginx 3482 2019-11-01 14:10:39
-
- How to check if nginx port is occupied
- If you confirm that the nginx port configuration is correct, find out the process currently occupying the port. Modern operating systems can query process information based on port numbers. Taking Linux as an example, you can use the lsof or netstat command to query the processes occupying the port.
- Nginx 15432 2019-11-01 13:33:17
-
- Does nginx require root to install?
- nginx requires root to install. In Linux, only root users can use ports below 1024. If you do not use root permissions to install, you can only change port 80 in the nginx.conf file to 1024 or above.
- Nginx 5771 2019-11-01 13:22:16
-
- What is the process name of nginx
- The process name of nginx is nginx: master. One nginx: master process will open several nginx: worker processes at the same time. Master process: It is also the parent process and is responsible for the management of worker processes.
- Nginx 5871 2019-11-01 13:10:11
-
- What nginx can do
- nginx can do reverse proxy, load balancing, HTTP server, and forward proxy. Reverse proxy should be the most common thing Nginx does. Load balancing is also a commonly used function of Nginx. Load balancing means to allocate execution to multiple operating units. Nginx itself is also a static resource server.
- Nginx 4303 2019-11-01 11:56:35
-
- How to use nginx load balancing database
- Using Nginx to configure mysql load balancing is similar to configuring tomcat, except that TOMCAT will no longer connect to the same database server, but to nginx, and nginx distributes requests to different database servers.
- Nginx 3588 2019-11-01 11:46:19
-
- Why use Nginx reverse proxy
- nginx reverse proxy can reduce the load on the upstream server. nginx has made great optimizations in this regard and can carry more connections, and idle connections will not occupy too much memory. Therefore, nginx as a reverse proxy can reduce the load on the upstream server.
- Nginx 4679 2019-11-01 11:34:09
-
- How to pass parameters in nginx reverse proxy
- nginx reverse proxy can be passed by adding request parameters to the url, but you need to use $request_uri, that is, proxy_pass $scheme://proxy_location$request_uri;
- Nginx 21444 2019-11-01 11:21:45
-
- How does nginx solve cross-domain issues?
- Use the reverse proxy function of Nginx to solve cross-domain problems. As a reverse proxy server, nginx forwards http requests to another or some servers. Cross-domain access can be achieved by mapping a local URL prefix to the web server to be accessed across domains.
- Nginx 13685 2019-11-01 11:06:41