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:
-
- Nginx signal control example analysis
- Introduction to nginx nginx is a high-performance http and reverse proxy server, and also an imap/pop3/smtp proxy server. nginx is developed by the Russian rambler.ru site, and official tests have shown that nginx can support 50,000 concurrent users. nginx official website: This article mainly explains how to control nginx after it is running so that it can be stopped or restarted. //Start and stop nginx Current directory: /usr/local/bin/nginx Start: ./sbin/nginx Stop: kill-intmaster host process number nginx semaphore nginx mainly controls nginx through semaphores, the main process
- Nginx 942 2023-05-28 12:28:27
-
- How to use docker to build a php+nginx+swoole+mysql+redis environment
- 1. Create dockerimage with swoole-redis-pdo_mysql-gd extension1. Create dockerfile file vimdockerfile2. Write fromphp:7.1-fpmrunapt-getupdate&&apt-getinstall-y\libfreetype6-dev\libjpeg62-turbo-dev\libpng- in the dockerfile file dev\&&docker-php-ext-install-j$(nproc)iconv\&
- Nginx 1557 2023-05-28 11:23:49
-
- How to configure Nginx official Yum source in CentOS
- Since there is no nginx we want in the yum source, we need to create a "/etc/yum.repos.d/nginx.repo" file, which is actually adding a new yum source. [root@localhost~]#vim/etc/yum.repos.d/nginx.repo Then copy the following content into it: [nginx]name=nginxrepobaseurl=http://nginx.org/packages/centos/$releasever/ $basearch/gpgcheck=0enabled=1 then save "/etc
- Nginx 1977 2023-05-28 08:44:04
-
- Nginx performance optimization methods
- Linux System Parameter Optimization Some of the configurations mentioned below require a newer Linux (2.6 or above) kernel to support them. The author uses CentOS7.4, kernel version 3.10. If it does not meet the needs, it is best to upgrade accordingly. After all, patching is a thankless task. For system-level tuning, we usually just modify the file descriptor limit, buffer queue length, and number of temporary ports. File descriptor limit Since each TCP connection occupies a file descriptor, once the file descriptor is exhausted, a new connection will return an error such as "Toomanyopenfiles". In order to improve performance, we need to modify it: 1 .System level restrictions
- Nginx 1270 2023-05-28 08:01:51
-
- How to solve nginx prompt 500 Internal Server Error
- In the case of high concurrent connections, nginx is a good alternative to the apache server. nginx can also be used as a layer 7 load balancing server. According to the test results, nginx0.6.31+php5.2.6 (fastcgi) can withstand more than 30,000 concurrent connections, which is equivalent to 10 times that of apache in the same environment. But many people will get 500 errors when using nginx. According to my usage, a large part of the reason is that the file open handle is too small. Use this command under Linux to increase the file handle opened by the process. ulimit-shn51200 only uses 1000 by default. When the number of links is small, it cannot be seen. Use this processing.
- Nginx 2979 2023-05-27 23:27:36
-
- How to install and configure Nginx on Ubuntu
- Ubuntu install nginxcd from the official source~wgethttp://nginx.org/keys/nginx_signing.keysudoapt-keyaddnginx_signing.keysudonano/etc/apt/sources.list#Add the following two sentences debhttp://nginx.org/packages/ubuntu/precisenginxdeb -srchttp://nginx.org/packages/ubuntu/precisenginxsudoapt-getupdatesud
- Nginx 2082 2023-05-27 22:52:09
-
- How to use Nginx to implement URL redirection
- 1. Summarize the old saying: if you look for the top, you will get the middle; if you look for the middle, you will get the bottom. Therefore, we might as well set our goals higher and work hard to get better returns. 2. Use Nginx to implement URL redirection 2.1 Usage scenarios When we share a website address every day, we often have such an effect. The same URL is the same when opened in a computer browser, but when opened in a mobile phone browser , it will show another effect that is more suitable for mobile phone display. Usually, there are two ways to achieve this effect: First, use adaptive H5 page implementation to automatically adjust the page layout according to the window width. 2. Use Nginx to jump to different pages according to different terminals. Open the computer and jump to the PC side for use.
- Nginx 2757 2023-05-27 22:16:20
-
- How to implement status statistics in nginx
- Basic introduction to ngx_http_stub_status_module: This module provides a simple page that displays the current basic status statistics of Nginx, such as the number of active connections, number of request processing, request delay, etc., which can be enabled through setting instructions. ngx_http_status_module: This module provides a more comprehensive status information page, including nginx's basic status statistics, current connection details, each upstream status information, server status information, etc. Can be enabled via the settings command. ngx_http_upstream_module: This module provides some functions for monitoring upstream
- Nginx 1476 2023-05-27 21:30:22
-
- How to configure second-level domain name in nginx
- My vps has three services, namely: blog service built by wordpress, running on port 8000, accessed via http://fangyuanxiaozhan.com: git service built by 8000gogs, running on port 10080, accessed via http:// fangyuanxiaozhan.com:10080 The network disk service built by nextcloud runs on port 8080. The access method is http://fangyuanxiaozhan.com:10080. My needs: 1. When accessing the blog service, directly enter http://fangyuanxiaozhan.com
- Nginx 2041 2023-05-27 17:37:29
-
- How to integrate Redmine and SVN into Nginx in Linux system
- redmine: It is a web-based project management software developed in ruby. It is a cross-platform project management system developed based on the ror framework. It is a rising star in project management systems. It is said to be derived from the ror version of basecamp. It supports a variety of databases. In addition to roughly the same functions as dotproject, there are many more It has its own unique functions, such as providing wiki, news station, time tracking, feed aggregation, exporting pdf, etc. It can also integrate other version management systems and bug tracking systems, such as svn, cvs, td, etc. The configuration function is powerful and convenient, and custom properties and update notifications are also very practical. Next we deploy redmine+svn project management
- Nginx 1753 2023-05-27 17:13:54
-
- How to build jsdelivr mirror station with nginx
- To create a jsdelivr mirror site, first, you need to have a server with nginx installed. It is recommended to use the Matomo image of Tencent Cloud lightweight server, which integrates the latest stable version of nginx, php, mariadb, Matomo and other server software. Save the following nginx configuration as jsdelivr.conf, and then upload it to your nginx site configuration directory, usually /etc/nginx/include or /etc/nginx/http.d. To use the Matomo image mentioned above, please upload it to /usr/local/lighthouse/softwares/nginx/conf/
- Nginx 1529 2023-05-27 13:15:08
-
- How to dynamically generate configuration through nginx+confd in docker
- When we have more and more projects, manually going to the server to modify the nginx configuration is very troublesome and may go wrong. We can implement a solution through nginx+confd+configuration center to avoid errors and reduce cumbersome processes. First, go directly to the dockerfileFROMnginx:1.21.6 of nginx+confd#Copy the confd binary executable file https://github.com/kelseyhightower/confd/releases/tag/v0.16.0COPY./confd-0.16.0-linux-amd64 /usr/local/bin/con
- Nginx 1833 2023-05-27 13:04:24
-
- How to start and shut down nginx command in Linux
- 1 Enter the installation directory whereisnginx\ 2. Enter the path: cd/usr/local/nginx/sbin 3 Start the nginx command: ./nginx appears below and the startup is successful 4 Check the status of nginx ps-ef|grepnginx If master appears, the startup is successful 5. Close the nginx command kill-98725 (the one above the process number) to close nginx\ 6. Stop the nginx command: ./nginx-sstop 7. Restart the nginx command: ./nginx-sreload
- Nginx 13046 2023-05-27 12:29:31
-
- How to use Nginx Plus's online activity monitoring function
- nginxplus now launches a real-time activity monitoring interface to provide keyload and performance monitoring. Through the simple restfuljson interface, it is easy to connect real-time monitoring statistics (statstolivedashboards) and third-party monitoring tools. Ping details for nginxplus: Online activity monitoring – jsonfeed To enable this status prompt in nginxplus, simply add status handling in the server configuration: Copy the code The code is as follows: location=/status{allow192.168.0.0/16; #permitaccessfromloca
- Nginx 869 2023-05-27 09:31:34
-
- What is the method to solve nginx pointing to local path and 500 error?
- A vite+vue3 project that I want to deploy to the server. The files after the project is built are all in the dist directory. Copy this directory to the server, and then configure it in nginx, as follows: server{listen3571;server_namelocalhost;location/{root/root/xxxx/dist/;try_files$uri$ uri//index.html;}} In this way, you can access this vue project through the server's public IP + port 3571. If you want to access through the domain name, you can configure it like this: server{listen80;serve
- Nginx 1434 2023-05-27 09:22:12