In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
First, check whether the existing nginx supports ipv6
You need to execute the following command to see if the existing nginx supports ipv6, if there is-- with-ipv6 in the parameter, it does, if not, it does not, and the nginx needs to be recompiled.
# the nginx path here is based on your actual nginx startup file path / usr/local/nginx-1.14.0/sbin/nginx-V
Second, recompile nginx to support ipv6
1. Download the corresponding nginx installation package
2. Extract the installation package of nginx
3. Enter the unzipped installation file of nginx, execute the. / configure command first, add the parameters obtained by / usr/local/nginx-1.14.0/sbin/nginx-V above, and then add the-- with-ipv6 parameter, and execute
4. Execute the make command. Never execute the make install command, otherwise the original nginx will be overwritten.
5. Back up the nginx execution file under 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, go to the objs folder under the installation folder
Cd objs
7. After stopping the original nginx service and overwriting the original nginx execution file, start the nginx service:
Sudo / usr/local/nginx-1.14.0/sbin/nginx-s stopsudo cp nginx / usr/local/nginx-1.14.0/sbin/nginxsudo / usr/local/nginx-1.14.0/sbin/nginx
Add:
Monitor both IPV4 and IPV6
Server {.... listen [:]: 80th.}
Only listen to IPV6
Server {.... listen [::]: 80 default ipv6only=on;...}
Listen to the specified IPV6 address
Server {.... listen [3608:f0f0:3002:31::1]: 80th.}
The above is the whole content of this article, I hope it will be helpful to your study, and I also hope that you will support it.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.