1. Check whether the existing nginx supports ipv6 You need to execute the following command to check whether the existing nginx supports ipv6. If the parameter contains --with-ipv6, it supports it. If not, it does not support it and you need to recompile nginx. # The nginx path here is based on your actual nginx startup file path /usr/local/nginx-1.14.0/sbin/nginx -V 2. Recompile nginx to support ipv6 1. Download the corresponding nginx installation package; 2. Unzip the nginx installation package; 3. Enter the installation file after decompressing nginx, execute the ./configure command first, then add the parameters obtained from /usr/local/nginx-1.14.0/sbin/nginx -V above, and then add the --with-ipv6 parameter and execute; 4. Execute the make command, and never execute the make install command, otherwise the original nginx will be overwritten; 5. Back up the nginx executable file in the original path: sudo cp /usr/local/nginx-1.14.0/sbin/nginx /usr/local/nginx-1.14.0/sbin/nginx.old 6. After make, enter the objs folder under the installation folder; cd objs 7. Stop the original nginx service, overwrite the original nginx execution file, and start the nginx service: sudo /usr/local/nginx-1.14.0/sbin/nginx -s stop sudo cp nginx /usr/local/nginx-1.14.0/sbin/nginx sudo /usr/local/nginx-1.14.0/sbin/nginx Replenish: Monitor both IPV4 and IPV6 server { .... listen [::]:80; ... } Listen only to IPv6 server { .... listen [::]:80 default ipv6only=on; ... } Listen to the specified IPV6 address server { .... listen [3608:f0f0:3002:31::1]:80; ... } The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: How to find slow SQL statements in MySQL
>>: Implementation steps for building multi-page programs using Webpack
Basic syntax: <input type="hidden" na...
This article shares the MySQL installation and co...
This article example shares the specific code of ...
Table of contents 1. Code analysis 2. Source code...
<br />The page uses UTF8 encoding, and the h...
Preface The <router-link> tag is a great to...
[LeetCode] 185. Department Top Three Salaries The...
Scenario simulation: The operation and maintenanc...
Effect picture: Implementation code: <template...
Part of the code: Copy code The code is as follow...
Table of contents 1.Json string 1.1Json Syntax 1....
Contemporary web visual design has gone through th...
The Docker publishing method provides many conven...
1. Introduction I recently upgraded my blog and a...
1. Log in to MySQL database mysql -u root -p View...