current location:Home > Technical Articles > Operation and Maintenance > Nginx

  • How to troubleshoot 500 and 502 errors in the php+nginx service
    How to troubleshoot 500 and 502 errors in the php+nginx service
    Overview: When a 500 or 502 error occurs during access to an online service, urgent processing is required to troubleshoot the problem. What should be done? You can locate the problem by analyzing some error logs or tracking the php-fpm process. The error_log of nginxerror_lognginx is defined in the nginx configuration file as server{listen80;server_namelocalhost;root/var/www;access_log/users/jiao/logs/default.access.log;error_log/users/jiao/logs/default.
    Nginx 1527 2023-05-22 09:25:14
  • Analysis of Nginx installation examples in Linux
    Analysis of Nginx installation examples in Linux
    Using the system binary source method to install sudoapt-getinstallnginx on the ubuntu/debian system or sudoyuminstallnginx on the redhat/centos system is the simplest and fastest way, but it is not the best way. Let's talk about this main problem below. Advantages: All installation binary dependencies have been taken care of. You don’t have to worry about compatibility issues. The nginx connection configuration is available out of the box. There is no need to deal with user permissions. This has been written for you. You don’t have to worry about nginx bug maintenance and upgrade issues. You can directly get the latest The system is easy to uninstall and can be easily maintained with just one command. The day's logs are automatically truncated and compressed.
    Nginx 1281 2023-05-22 08:46:05
  • Analysis of nginx server configuration examples under ubuntu
    Analysis of nginx server configuration examples under ubuntu
    Detailed explanation of nginx server configuration under ubuntu 1. Installation of nginx server sudoapt-getinstallnginx2. Startup of nginx server sudo/etc/init.d/nginxstart3. Multiple domain names correspond to different backend servers in the /etc/nginx/sites-enabled/ directory Delete the default configuration file and create a new configuration file corresponding to the domain name, such as test.youlunshidai.com# Multiple nodejs nodes can be configured through upstreamnodejs__upstream for load balancing upstreamnodejs__u
    Nginx 952 2023-05-22 08:16:38
  • How to optimize the configuration of Nginx service
    How to optimize the configuration of Nginx service
    1. For the specific configuration of expires cache module, please refer to the official document [root@cairuiconf]#catnginx.conf|egrep-v"#|^$"usernginx;worker_processes1;events{worker_connections1024;}http{includemime.types;default_typeapplication/octet-stream ;sendfileon;keepalive_timeout65;server{listen80;serve
    Nginx 1574 2023-05-21 22:55:10
  • What is the meaning of nginx.conf global configuration
    What is the meaning of nginx.conf global configuration
    usernobody; defines the user who runs the nginx service, and can also add groups, such as usernobodynobody; worker_processes1; defines the number of nginx sub-processes, that is, the number of processes that provide services. It is recommended that this value be consistent with the number of service cpu cores. In addition to defining numbers, it can also be defined as auto, which means to let the system automatically adjust. error_loglogs/error.log; defines the path of the error log, which can be a relative path (relative to the prefix path) or an absolute path. This configuration can be defined here, or it can be defined in http, server, location error_
    Nginx 1393 2023-05-21 22:43:06
  • How to use Nginx to deploy flask application in centos
    How to use Nginx to deploy flask application in centos
    Environment preparation python package installation tool pip: sudoapt-getinstallpipvirtualenv: In order to avoid conflicts between the system environment and the application environment, use a virtual environment to install application dependencies. virtualenv can create an independent development environment for each python application. Installation method: sudopipinstallvirtualenv The virtual environment uses the flask project address: /usr/local/flasky. You only need to run the command under the project address: virtualenvvenv. By convention, "venv" is generally used as the name of the virtual environment, so that we create a virtual environment file.
    Nginx 1084 2023-05-21 22:13:04
  • How Nginx implements polling algorithm
    How Nginx implements polling algorithm
    Simple polling algorithm This algorithm is relatively simple. For example, you have three servers. The first server is 192.168.1.1, the second server is 192.168.1.2, and the third server is 192.168.1.3. After the first request comes, the first server is accessed by default. , the second request comes to access the second station, the third request comes to access the third station, the fourth request comes to access the first station, and so on. The following is a simple algorithm implemented by my code: publicclasssimplepolling{/***key is ip*/publicstaticlistipservice=newlinkedlist();static{ipservice.
    Nginx 1544 2023-05-21 21:43:13
  • How to limit concurrent IP access between nginx and apache
    How to limit concurrent IP access between nginx and apache
    nginxnginx limits the number of concurrent IPs, which also means limiting the number of simultaneous connections to the server from the same IP. 1. Add the limit_zone variable and can only use vi/usr/local/nginx/conf/nginx.conflimit_zoneone$binary_remote_addr10m in http; 2. Add the limit_conn variable It can be used in http, server, location. I only limit one site, so add it to the server vi/usr/local/nginx/conf/host/gaojinbo.com.conflimi
    Nginx 1405 2023-05-21 20:04:09
  • How to configure nginx virtual host based on port
    How to configure nginx virtual host based on port
    1. Create website directories and files: [root@localhostdata]#tree/data/data└──wwwroot├──www.1.com_8080│└──index.html└──www.1.com_8081└──index .html 2. Modify nginx.conf: [root@localhostnginx]#vim/usr/local/nginx/conf/nginx.confworker_processes1;events{worker_connections1024;}http{includ
    Nginx 1038 2023-05-21 19:55:04
  • How to solve a large number of http 400 errors in the Linux server nginx access log
    How to solve a large number of http 400 errors in the Linux server nginx access log
    The error record in the server is similar to this: 124.65.133.242––[27/oct/2014:14:30:51+0800]"-"4000"-""-"124.65.133.242––[27/oct/ 2014:14:31:45+0800]“-”4000“-”“-”124.65.133.242––[27/oct/2014:14:31:45+0800]“-”4000“-”“-” 124.65.133.242––[27/oct/2014:14:31:45+0800] “-” 4000 “-” “-” checkpoint after analysis nginx
    Nginx 2663 2023-05-21 19:28:04
  • Nginx Chinese domain name configuration example analysis
    Nginx Chinese domain name configuration example analysis
    nginx Chinese domain name configuration nginx virtual host is bound to a Chinese domain name, such as linuxeye.China, and the browser cannot jump. Why? Because the core of the operating system is composed of English, and the resolution of the dns server is also exchanged by English codes, so the dns server does not support direct Chinese domain name resolution. All Chinese domain name resolutions need to be converted into punycode codes, and then used by dns Parse punycode code. In fact, all current browsers perfectly support Chinese domain names, but the browser software actively adds Chinese domain name automatic transcoding, and there is no need to re-install the Chinese domain name transcoding control to complete the entire process. The Chinese domain name can be converted into punycode encoding, online transcoding place
    Nginx 914 2023-05-21 19:16:04
  • How to use Nginx as reverse proxy for Tomcat server
    How to use Nginx as reverse proxy for Tomcat server
    1) Of course you need to download the software you want to use. Go to the nginx official website for the next one. http://nginx.org/en/download.html can be found here. The version I am using now is 1.1.7, but basically all future versions are compatible, and what we are using does not involve too low-level aspects, so there should be no changes. Here, since mine is Windows, of course I download the Windows version. After downloading, you need to start it first. Enter the nginx folder and start nginx directly. For example, after downloading it, I put it in d:\software\developertools\server\nginx-1.1.7 and directly cmd
    Nginx 1774 2023-05-21 19:01:04
  • How to deploy and run CentOS7 Docker Nginx
    How to deploy and run CentOS7 Docker Nginx
    1. Resource preparation dockerfile file#"ported"byadammillerfrom#https://github.com/fedora-cloud/fedora-dockerfiles##originallywrittenforfedora-dockerfilesby#scollierfromcentos:centos7maintainerthecentosprojectrunyum-yupdate;yumcleanallrunyum-yinstallepel-relea
    Nginx 1291 2023-05-21 18:19:06
  • How to configure nginx to use ssl module to support HTTPS access
    How to configure nginx to use ssl module to support HTTPS access
    Background: WeChat applet was used in project development, but the server configuration URL must be https, so the ssl module of nginx needs to be configured to support https access. In other words, to make a website with a domain name of dmsdbj.com, it requires https:/ /dmsdbj.com to visit. The English name of ssl is securesocketlayer, secure socket layer. SSL is a kind of digital certificate. It uses the SSL protocol to establish a secure channel between the browser and the webserver, and the data information is securely transmitted between the client and the server. Prerequisite: 1. Configuring the SSL module first requires a ca certificate. The ca certificate can Manually
    Nginx 2177 2023-05-21 18:10:06
  • How to use cPanel to configure Nginx reverse proxy in CentOS 7
    How to use cPanel to configure Nginx reverse proxy in CentOS 7
    cPanel is currently the most powerful, easiest to use, and most popular virtual host control system in the world. Many foreign hosts use this control panel. First, we need to install the EPEL library to start this process. Step 1: Install the EPEL library root@server1[/usr]#yum-yinstallepel-releaseLoadedplugins:fastestmirror,tsflags,universal-hooksLoadingmirrorspeedsfromcachedhostfile*EA4:66.23.237.210*base:mirror
    Nginx 1435 2023-05-21 17:43:36

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!