In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article introduces how to add ipv6 support to the lnmp server of wdcp panel. The content is very detailed. Interested friends can use it for reference. I hope it will be helpful to you.
First, add ipv6 module to nginx
Execute in the SSH window
/ www/wdlinux/nginx/sbin/nginx-V
The return contains the following characters
Configure arguments:-user=www-- group=www-- prefix=/www/wdlinux/nginx-1.0.12-- with-http_stub_status_module-- with-http_ssl_module
Note that the ipv6 module of nginx is not compiled by default, so we need to recompile nginx and add an ipv6 module to it
Do not rule out that future versions will compile ipv6 by default. If you have "--with-ipv6", the ipv6 module has been added. Please check step 2 directly.
Enter the nginx installation directory
Cd / root/lanmp/nginx-1.0.12
Carry out
/ configure-- user=www-- group=www-- prefix=/www/wdlinux/nginx-1.0.12-- with-http_stub_status_module-- with-http_ssl_module-- with-ipv6
Return the correct information, then enter
Make
After compilation, a nginx execution file will be generated in the objs directory. First back up the old nginx file, execute: mv / www/wdlinux/nginx-1.0.12/sbin/nginx / www/wdlinux/nginx-1.0.12/sbin/nginx.old, and then transfer the nginx cp under the new objs to sbin, and execute: cp objs/nginx / www/wdlinux/nginx-1.0.12/sbin/nginx
Can be executed
/ www/wdlinux/nginx/sbin/nginx-t
Return
Nginx: the configuration file / www/wdlinux/nginx-1.0.14/conf/nginx.conf syntax is ok
Nginx: configuration file / www/wdlinux/nginx-1.0.14/conf/nginx.conf test is successful
It indicates that nginx has been compiled successfully.
Executive execution
/ www/wdlinux/nginx/sbin/nginx-V
The return contains the following characters
Configure arguments:-user=www-- group=www-- prefix=/www/wdlinux/nginx-1.0.14-- with-http_stub_status_module-- with-http_ssl_module-- with-ipv6
It indicates that the ipv6 module has been added successfully
Carry out
Make upgrade
Upgrade program
Configure nginx to support listening for access requests sent through ipv6
Put all the * .conf files in / www/wdlinux/nginx-1.0.12/conf/vhost
Listen 80
Change to
Listen [::]: 80
Make it listen to all ipv4 and ipv6 addresses of the machine.
Execute here
/ www/wdlinux/nginx/sbin/nginx-t
If you return
Nginx: the configuration file / www/wdlinux/nginx-1.0.12/conf/nginx.conf syntax is ok
Nginx: configuration file / www/wdlinux/nginx-1.0.12/conf/nginx.conf test is successful
Indicates that the nginx configuration is correct.
Restart nginx, execute first
Killall nginx
Re-execution
/ www/wdlinux/nginx-1.0.12/sbin/nginx
3. Add an AAAA record for the domain name. After it takes effect, you can access the website through ipv6. If the domain name service provider does not support AAAA resolution, DNSPOD is recommended. It is free and easy to use.
Or directly use http://[ipv6]/ to access the default website on the host
Note: 1. Make sure the host has ipv6,ifconfig for viewing.
2. For other host environments, please modify them as appropriate.
3. If you do not want to monitor all ip in step 2, please modify
Listen [::]: 80
For
Listen ipv4:80
Listen [ipv6]: 80
If you find it complicated to add an ipv6 module above, we can also support ipv6 with one click through a little official nginx upgrade script.
Download the one-click upgrade script and execute
Wget http://down.wdlinux.cn/in/nginx_up.sh
Then open it.
Nginx_up.sh
Find
. / configure-user=www-group=www-prefix=/www/wdlinux/nginx-$ver-with-http_stub_status_module-with-http_ssl_module
In about 15 lines, add after that
-- with-ipv6
Become
/ configure-- user=www-- group=www-- prefix=/www/wdlinux/nginx-$ver-- with-http_stub_status_module-- with-http_ssl_module-- with-ipv6
Save, exit
Carry out
Sh nginx_up.sh
The default upgrade is 1.0.14. If you want to specify a version, you can add the version number to the background of the execution script.
If the added version number is currently in use, only the ipv6 module will be added
For example: execution
Sh nginx_up.sh 1.0.12
The effect is exactly the same as step one above.
On the wdcp panel of the lnmp server to add ipv6 support is how to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.