
-
All
-
web3.0
-
Mac OS
-
Linux Operation and Maintenance
-
Apache
-
Nginx
-
CentOS
-
Docker
-
LVS
-
vagrant
-
debian
-
zabbix
-
kubernetes
-
ssh
-
fabric
-
-
Backend Development
-
Mac OS
-
Linux Operation and Maintenance
-
Apache
-
Nginx
-
CentOS
-
Docker
-
LVS
-
vagrant
-
debian
-
zabbix
-
kubernetes
-
ssh
-
fabric
-
-
Web Front-end
-
Mac OS
-
Linux Operation and Maintenance
-
Apache
-
Nginx
-
CentOS
-
Docker
-
LVS
-
vagrant
-
debian
-
zabbix
-
kubernetes
-
ssh
-
fabric
-
-
Database
-
Mac OS
-
Linux Operation and Maintenance
-
Apache
-
Nginx
-
CentOS
-
Docker
-
LVS
-
vagrant
-
debian
-
zabbix
-
kubernetes
-
ssh
-
fabric
-
-
Operation and Maintenance
-
Mac OS
-
Linux Operation and Maintenance
-
Apache
-
Nginx
-
CentOS
-
Docker
-
LVS
-
vagrant
-
debian
-
zabbix
-
kubernetes
-
ssh
-
fabric
-
-
Development Tools
-
Mac OS
-
Linux Operation and Maintenance
-
Apache
-
Nginx
-
CentOS
-
Docker
-
LVS
-
vagrant
-
debian
-
zabbix
-
kubernetes
-
ssh
-
fabric
-
-
PHP Framework
-
Mac OS
-
Linux Operation and Maintenance
-
Apache
-
Nginx
-
CentOS
-
Docker
-
LVS
-
vagrant
-
debian
-
zabbix
-
kubernetes
-
ssh
-
fabric
-
-
Common Problem
-
Mac OS
-
Linux Operation and Maintenance
-
Apache
-
Nginx
-
CentOS
-
Docker
-
LVS
-
vagrant
-
debian
-
zabbix
-
kubernetes
-
ssh
-
fabric
-
-
Other
-
Mac OS
-
Linux Operation and Maintenance
-
Apache
-
Nginx
-
CentOS
-
Docker
-
LVS
-
vagrant
-
debian
-
zabbix
-
kubernetes
-
ssh
-
fabric
-
-
Tech
-
Mac OS
-
Linux Operation and Maintenance
-
Apache
-
Nginx
-
CentOS
-
Docker
-
LVS
-
vagrant
-
debian
-
zabbix
-
kubernetes
-
ssh
-
fabric
-
-
CMS Tutorial
-
Mac OS
-
Linux Operation and Maintenance
-
Apache
-
Nginx
-
CentOS
-
Docker
-
LVS
-
vagrant
-
debian
-
zabbix
-
kubernetes
-
ssh
-
fabric
-
-
Java
-
Mac OS
-
Linux Operation and Maintenance
-
Apache
-
Nginx
-
CentOS
-
Docker
-
LVS
-
vagrant
-
debian
-
zabbix
-
kubernetes
-
ssh
-
fabric
-
-
System Tutorial
-
Mac OS
-
Linux Operation and Maintenance
-
Apache
-
Nginx
-
CentOS
-
Docker
-
LVS
-
vagrant
-
debian
-
zabbix
-
kubernetes
-
ssh
-
fabric
-
-
Computer Tutorials
-
Mac OS
-
Linux Operation and Maintenance
-
Apache
-
Nginx
-
CentOS
-
Docker
-
LVS
-
vagrant
-
debian
-
zabbix
-
kubernetes
-
ssh
-
fabric
-
-
Hardware Tutorial
-
Mac OS
-
Linux Operation and Maintenance
-
Apache
-
Nginx
-
CentOS
-
Docker
-
LVS
-
vagrant
-
debian
-
zabbix
-
kubernetes
-
ssh
-
fabric
-
-
Mobile Tutorial
-
Mac OS
-
Linux Operation and Maintenance
-
Apache
-
Nginx
-
CentOS
-
Docker
-
LVS
-
vagrant
-
debian
-
zabbix
-
kubernetes
-
ssh
-
fabric
-
-
Software Tutorial
-
Mac OS
-
Linux Operation and Maintenance
-
Apache
-
Nginx
-
CentOS
-
Docker
-
LVS
-
vagrant
-
debian
-
zabbix
-
kubernetes
-
ssh
-
fabric
-
-
Mobile Game Tutorial
-
Mac OS
-
Linux Operation and Maintenance
-
Apache
-
Nginx
-
CentOS
-
Docker
-
LVS
-
vagrant
-
debian
-
zabbix
-
kubernetes
-
ssh
-
fabric
-

How to make VIM support Nginx .conf file syntax highlighting function
Manually modify the syntax file for downloading the nginx configuration file: nginx.vimwgethttp://www.vim.org/scripts/download_script.php?src_id=14376-onginx.vimCopy the file to the /usr/share/vim/vim74/syntax directory (It can also be a single-user directory ~/.vim/syntax/). Modify vim/usr/share/vim/vim74/filetype.vim to add aubufread,bufnewfile/etc/nginx/*,/usr/local/n
May 15, 2023 pm 12:10 PM
How to optimize the Linux kernel of high-concurrency nginx server
The code is as follows: #controlstheuseoftcpsyncookies# means turning on reuse. Allow time-waitsockets to be reused for new TCP connections. The default is 0, which means closed; net.ipv4.tcp_syncookies=1 #A Boolean flag that controls the behavior of the kernel when there are many connection requests. If enabled, the kernel will proactively send rst packets if the service is overloaded. net.ipv4.tcp_abort_on_overflow=1#Indicates that the system maintains the maximum number of time_wait at the same time. If this number is exceeded, time_wait will be cleared immediately and a warning message will be printed.
May 15, 2023 pm 12:10 PM
How to configure nginx two-way verification of ssl
1. Install nginx briefly 2. Use openssl to implement the certificate center. Since openssl is used to set up a private certificate center, it is necessary to ensure that the following fields are the same in the certificate center's certificate, server certificate, and client certificate countrynamestateorprovincenamelocalitynameorganizationnameorganizationalunitname Edit the certificate center configuration file vim/ etc/pki/tls/openssl.cnf[ca_default]dir=/etc/pki/cacerts=$dir/certs#wherethe
May 15, 2023 am 11:58 AM
How to implement Nginx request compression
1. Introduction to request compression, which compresses the server's results through Nginx and then sends them to the client to reduce network transmission pressure and improve transmission efficiency. The two common request methods are: gzip and brotli (Google). The efficiency of brotli is higher, which will be explained in detail later. Requesting compression is divided into: dynamic compression and static compression. Dynamic compression will cause the sendfile inside Nginx to fail. For some unchanged content, static compression can be used to improve request efficiency. For compression of request results, both the client and the server need to support the compression protocol. The server compresses the results and the client decompresses the data. The compression will occupy some performance efficiency on the server side. This
May 15, 2023 am 11:55 AM
How to implement Django+Nginx+uWSGI scheduled tasks
Summary: Before Nginx and uWSGI were configured, I used apscheduler to set up scheduled tasks in url.py alone, and used pythonmanage.pyrunserver, which ran normally; but after uWSGI was configured, the entrance changed from manage.py to uwsgi.py, which required users to The apscheduler scheduled task of url.py can be loaded only after access, and the same scheduled task will be started repeatedly according to the number of user visits. Using uWSGI's cron Method 1: Migrate the apscheduler scheduled task of url.py to uwgsi.py Method 2: Using uWSGI's cronuWSGI's cro
May 15, 2023 am 11:34 AM
How to use nginx simulation for canary publishing
Canary release/grayscale release The focus of canary release is: trial and error. The origin of the canary release itself is a tragic story of the beautiful creatures of nature in the development of human industry. The canary uses its life to try and make mistakes for the safety of the miners. A small cost is used to exchange for overall security. In the practice of continuous deployment, the canary is traffic control. A very small amount of traffic, such as one percent or one tenth, is used to verify whether a certain version is normal. If it is abnormal, its function will be achieved at the lowest cost and the risk will be reduced. If it is normal, you can gradually increase the weight until it reaches 100%, and switch all traffic to the new version smoothly. Grayscale publishing is generally a similar concept. Gray is a transition between black and white.
May 15, 2023 am 11:25 AM
How to determine whether php is apache or nginx
Detecting ApacheApache is widely used and is the most popular web server among Linux and Unix servers. If your PHP code is running on an Apache server, you can use the following code to detect it: if(strpos($_SERVER['SERVER_SOFTWARE'],'Apache')!==false){echo "ThisserverisrunningApache.";}else{ echo"Thisserverisnotrunni
May 15, 2023 am 10:58 AM
Nginx installation example analysis
1. Install gcc (usually comes with centos7, you can install it again after step 6 fails) yuminstallgccgcc-c++2. Install pcreyuminstall-ypcrepcre-devel3. Install zlibyuminstall-yzlibzlib-devel4. Install opensslyuminstall-yopensslopenssl-devel5. Download and unzip nginx (then enter the nginx directory) wget6. Compile nginx (load common modules such as ssl)./configure--prefix=/usr/local/ng
May 15, 2023 am 10:52 AM
Example analysis of Nginx anti-hotlink and service optimization configuration
Method 1 to hide the nginx version number and view the version number: curl command You can use the command curl-Ihttp://192.168.80.130 in CentOS to display the response message header information. curl-Ihttp://192.168.80.130Method 2: View on the webpage 1.#Switch to the html directory, drag an image into cd/usr/local/nginx/html2.#View on the webpage http://192.168.59.118 /game.png Hidden version information Method 1: Modify the configuration file 1.# Modify the configuration file vim/usr/local/nginx/conf/ngin
May 15, 2023 am 10:31 AM
How Nginx merges request connections and accelerates website access
Little knowledge: When we browse the web, there is an important factor that affects the browsing speed, which is the number of concurrent browsers. In simple terms, the number of concurrency refers to the number of simultaneous tasks when browsing a web page. Of course, the browser's limit on the number of concurrent requests is for the same domain name. There is a certain limit on the number of requests under the same domain name at the same time. Requests that exceed the limit will be blocked. First, let’s take a look at the number of concurrent connections of each browser: Let’s list what considerations the browser may have in making this decision. Due to limitations of the TCP protocol, the PC side only has 65536 ports available for sending connections to the outside, and the operating system also has half-open connections. Limit to protect the operating system's tcpip protocol stack resources from being quickly exhausted, so the browser does not
May 15, 2023 am 10:16 AM
How to install and configure Nginx server
When installing ubuntu, sudoapt-getinstallnginx starts sudo/etc/init.d/nginxstart#Start through the startup file under init.d. sudoservicenginxstart#Start the configuration file location /etc/nginx/nginx.conf through ubuntu's service manager. Compile and install 1. Prerequisites (1).gccapt-getinstallgcc (2).pcre(perlcompatibleregularexpression)apt-getinstalllibpcre3libpcre3-d
May 15, 2023 am 09:49 AM
How to install and deploy Nginx server SSL certificate in Windows environment
The contents of the Nginx server certificate compressed package certificate compressed folder are as follows (the domain name of baidu.com is used as an example here): baidu.com_bundle.crt certificate file baidu.com_bundle.pem certificate file (this file can be ignored) baidu.com.key Copy the private key file baidu.com.csrCSR file, certificate file and private key file. Copy the obtained baidu.com_bundle.crt certificate file and baidu.com.key private key file from the local directory to the conf directory under the Nginx root directory and modify it. nginx.conf configuration edit in the Nginx root directory
May 15, 2023 am 09:37 AM
How Nginx solves the problem of WebApi cross-domain secondary requests and Vue single page
1. Introduction Since the project is separated from the front and back ends, the api interface and the web front end are deployed in different sites, so in the previous article, the webapiajax cross-domain request solution (cors implementation) uses cross-domain processing instead of jsonp. But after a period of time, I discovered a very strange problem. Every time the front end initiates a request, through the browser's developer tools, I can see that there are two requests for the same URL under the network. The method of the first request is options, the method of the second request is the real get or post, and the first request returns no data, and the second request returns normal data. 2. Reason for the first options
May 15, 2023 am 09:28 AM
How to improve the security and performance of Nginx
It mainly shows how to configure x-frame-options, x-xss-protection, x-content-type-options, strict-transport-security, https and other security configurations in nginx. nginx.conf is configured as follows #Do not display the nginx version number in the error page or server header server_tokensoff; #Do not allow the page to be displayed from the frame or iframe, this can avoid clickjacking #http://en.wikipedia.org/wiki /clickjacking#if
May 15, 2023 am 09:19 AM
Hot tools Tags

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

vc9-vc14 (32+64 bit) runtime library collection (link below)
Download the collection of runtime libraries required for phpStudy installation

VC9 32-bit
VC9 32-bit phpstudy integrated installation environment runtime library

PHP programmer toolbox full version
Programmer Toolbox v1.0 PHP Integrated Environment

VC11 32-bit
VC11 32-bit phpstudy integrated installation environment runtime library

SublimeText3 Chinese version
Chinese version, very easy to use
