<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>VPS侦探 &#187; 服务器环境搭建</title>
	<atom:link href="http://www.vpser.net/category/build/feed" rel="self" type="application/rss+xml" />
	<link>http://www.vpser.net</link>
	<description>致力于VPS主机推荐、VPS管理维护、VPS优惠信息及VPS相关的信息共享平台</description>
	<lastBuildDate>Mon, 06 Feb 2012 01:24:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>LNMP一键安装包 0.8发布</title>
		<link>http://www.vpser.net/build/lnmp-0-8.html</link>
		<comments>http://www.vpser.net/build/lnmp-0-8.html#comments</comments>
		<pubDate>Wed, 14 Dec 2011 01:14:40 +0000</pubDate>
		<dc:creator>VPSer</dc:creator>
				<category><![CDATA[服务器环境搭建]]></category>
		<category><![CDATA[0.8]]></category>
		<category><![CDATA[LNMP]]></category>
		<category><![CDATA[LNMPA]]></category>
		<category><![CDATA[LNMP一键安装包]]></category>
		<category><![CDATA[一键安装包]]></category>

		<guid isPermaLink="false">http://www.vpser.net/?p=2658</guid>
		<description><![CDATA[LNMP一键安装包是一个用Linux Shell编写的可以为CentOS/RadHat、Debian/Ubuntu VPS(VDS)或独立主机安装LNMP(Nginx、MySQL、PHP、phpMyAdmin)生产环境的Shell程序。 LNMPA是在LNMP的基础上产生的新的扩展，目前LNMP一键安装包的用户可以直接升级到LNMPA(Nginx、MySQL、PHP、 Apache)，由Nginx作为前端处理静态页面、js、图片等，Apache作为后端处理PHP，解决高并发时php-cgi的502问题，提高服务 器处理动态内容的能力及稳定性。 LNMP一键安装包 0.8 &#38; LNMPA已经在VPSYOU（感谢提供测试VPS）、DiaHosting（感谢提供测试VPS）、PhotonVPS（感谢提供测试VPS）、vpszz、MyHost123、瑞豪开源VPS、BurstNet、Linode、YardVPS、DirectSpace、ThrustVPS、BuyVM、123Systems等多家美国VPS的CentOS、Debian、Ubuntu的32位和64位系统上测试通过（CentOS/Debian 均为5.0以上版本，Ubuntu为9.04以上版本），个别128MB小内存CentOS 64位模板存在问题，小内存请尽量选择32位。 LNMP安装教程：http://lnmp.org/install.html LNMPA安装教程：http://lnmp.org/lnmpa.html 使用交流论坛：http://bbs.vpser.net/forum-25-1.html LNMP相关软件版本： Nginx 1.0.10 MySQL 5.1.60 PHP 5.2.17 PHPMyAdmin 3.4.8 相关更新： 1、优化安装过程及错误处理； 2、增加imageMagick安装脚本； 3、增加memcached安装脚本； 4、Nginx升级至1.0.10、MySQL升级至5.1.60； 5、优化PHP升级脚本； 6、优化Nginx升级脚本； 7、优化eAccelerator自动安装脚本； 其他组件安装 1、安装eAccelerator，执行如下命令：./eaccelerator.sh ，按提示选择版本，回车确认后，就会自动安装并重启web服务。 2、安装ionCube，执行如下命令：./ionCube.sh 回车确认后，就会自动安装并重启web服务。 3、安装imageMagick，执行如下命令：./imageMagick.sh 回车确认后，就会自动安装并重启web服务。 4、安装memcached，执行如下命令：./memcached.sh 回车确认后，就会自动安装并重启web服务。 5、 安装PureFTPd和管理面板，执行如下命令：./pureftpd.sh 按提示输入你MySQL的root密码、FTP用户管理面板的密码、MySQl的FTP数据库密码(可直接回车，自动生成一个密码)，回车确认，就会自动 安装PureFTPd，安装完PureFTPd，在浏览器执行http://你的域名或IP/ftp/ 输入你前面设置的FTP用户管理面板的密码，就可以管理。 6、安装VsFTPD，执行如下命令：./vsftpd.sh 就会自动安装上vsftpd，只需要执行命令：useradd -d /home/wwwroot -s /sbin/nologin adminftp 添加上帐号指定好ftp帐号的根目录，再执行：passwd adminftp [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://lnmp.org/" target="_blank"><img title="lnmp一键安装包" src="http://lnmp.org/images/logo.gif" alt="" width="156" height="46" /></a></p>
<p>LNMP一键安装包是一个用Linux Shell编写的可以为CentOS/RadHat、Debian/Ubuntu VPS(VDS)或独立主机安装LNMP(Nginx、MySQL、PHP、phpMyAdmin)生产环境的Shell程序。</p>
<p>LNMPA是在LNMP的基础上产生的新的扩展，目前LNMP一键安装包的用户可以直接升级到LNMPA(Nginx、MySQL、PHP、 Apache)，由Nginx作为前端处理静态页面、js、图片等，Apache作为后端处理PHP，解决高并发时php-cgi的502问题，提高服务 器处理动态内容的能力及稳定性。</p>
<p>LNMP一键安装包 0.8 &amp; LNMPA已经在<a href="http://www.vpser.net/go/vpsyou" target="_blank">VPSYOU</a>（感谢提供测试VPS）、<a href="http://www.vpser.net/go/diahosting" target="_blank">DiaHosting</a>（感谢提供测试VPS）、<a href="http://www.vpser.net/go/photonvps" target="_blank">PhotonVPS</a>（感谢提供测试VPS）、<a href="http://www.vpser.net/go/vpszz" target="_blank">vpszz</a>、<a href="http://www.vpser.net/go/myhost123" target="_blank">MyHost123</a>、<a href="http://www.vpser.net/go/rashost" target="_blank">瑞豪开源VPS</a>、<a href="http://www.vpser.net/go/burst" target="_blank">BurstNet</a>、<a href="http://www.vpser.net/go/linode" target="_blank">Linode</a>、<a href="http://www.vpser.net/go/yardvps" target="_blank">YardVPS</a>、<a href="http://www.vpser.net/go/directspace" target="_blank">DirectSpace</a>、<a href="http://www.vpser.net/go/thrust" target="_blank">ThrustVPS</a>、<a href="http://www.vpser.net/go/buyvm" target="_blank">BuyVM</a>、<a href="http://www.vpser.net/go/123systems" target="_blank">123Systems</a>等多家美国VPS的CentOS、Debian、Ubuntu的32位和64位系统上测试通过（CentOS/Debian 均为5.0以上版本，Ubuntu为9.04以上版本），个别128MB小内存CentOS 64位模板存在问题，小内存请尽量选择32位。</p>
<p>LNMP安装教程：<a href="http://lnmp.org/install.html" target="_blank">http://lnmp.org/install.html</a><span id="more-2658"></span></p>
<p>LNMPA安装教程：<a href="http://lnmp.org/lnmpa.html" target="_blank">http://lnmp.org/lnmpa.html</a></p>
<p>使用交流论坛：<a href="http://bbs.vpser.net/forum-25-1.html">http://bbs.vpser.net/forum-25-1.html</a></p>
<h3>LNMP相关软件版本：</h3>
<p>Nginx 1.0.10<br />
MySQL 5.1.60<br />
PHP 5.2.17<br />
PHPMyAdmin 3.4.8</p>
<h3>相关更新：</h3>
<p>1、优化安装过程及错误处理；<br />
2、增加imageMagick安装脚本；<br />
3、增加memcached安装脚本；<br />
4、Nginx升级至1.0.10、MySQL升级至5.1.60；<br />
5、优化PHP升级脚本；<br />
6、优化Nginx升级脚本；<br />
7、优化eAccelerator自动安装脚本；</p>
<h3>其他组件安装</h3>
<p>1、安装eAccelerator，执行如下命令：./eaccelerator.sh ，按提示选择版本，回车确认后，就会自动安装并重启web服务。</p>
<p>2、安装ionCube，执行如下命令：./ionCube.sh 回车确认后，就会自动安装并重启web服务。</p>
<p>3、安装imageMagick，执行如下命令：./imageMagick.sh 回车确认后，就会自动安装并重启web服务。</p>
<p>4、安装memcached，执行如下命令：./memcached.sh 回车确认后，就会自动安装并重启web服务。</p>
<p>5、 安装PureFTPd和管理面板，执行如下命令：./pureftpd.sh 按提示输入你MySQL的root密码、FTP用户管理面板的密码、MySQl的FTP数据库密码(可直接回车，自动生成一个密码)，回车确认，就会自动 安装PureFTPd，安装完PureFTPd，在浏览器执行http://你的域名或IP/ftp/ 输入你前面设置的FTP用户管理面板的密码，就可以管理。</p>
<p>6、安装VsFTPD，执行如下命令：./vsftpd.sh 就会自动安装上vsftpd，只需要执行命令：useradd -d /home/wwwroot -s /sbin/nologin adminftp 添加上帐号指定好ftp帐号的根目录，再执行：passwd adminftp 设置上密码，登录就可以了。</p>
<p>7、升级Nginx版本，执行如下命令：./upgrade_nginx.sh  按提示输入nginx的版本号，如1.0.10，版本号可以从http://nginx.org/en/download.html获取。</p>
<p>8、升级PHP版本，执行如下命令：./upgrade_php.sh 按提示输入php版本号，如5.3.6。</p>
<h3>状态管理</h3>
<p>LNMP状态管理： /root/lnmp {start|stop|reload|restart|kill|status}<br />
Nginx状态管理：/etc/init.d/nginx {start|stop|reload|restart}<br />
PHP-FPM状态管理：/etc/init.d/php-fpm {start|stop|quit|restart|reload|logrotate}<br />
PureFTPd状态管理： /etc/init.d/pureftpd {start|stop|restart|kill|status}<br />
MySQL状态管理：/etc/init.d/mysql {start|stop|restart|reload|force-reload|status}<br />
Apache状态管理：/etc/init.d/httpd {start|stop|restart|graceful|graceful-stop|configtest|status}<br />
Memcached状态管理：/etc/init.d/memcached {start|stop|restart}</p>
<h3>相关图形界面程序</h3>
<p>phpinfo : http://前面输入的域名或IP/phpinfo.php<br />
phpMyAdmin : http://前面输入的域名或IP/phpmyadmin/<br />
探针 : http://前面输入的域名或IP/p.php<br />
PureFTP管理界面：http://前面输入的域名或IP/ftp/<br />
Memcached测试页面：http://前面输入的域名或IP/memcached.php</p>
<h3>LNMP相关目录</h3>
<p>nginx : /usr/local/nginx<br />
mysql : /usr/local/mysql<br />
php : /usr/local/php<br />
网站目录: /home/wwwroot/<br />
Nginx日志目录：/home/wwwlogs/<br />
Nginx虚拟主机配置文件所在目录：/usr/local/nginx/conf/vhost/<br />
Apache虚拟主机配置文件所在目录：/usr/local/apache/conf/vhost/</p>
<h3>LNMP相关配置文件</h3>
<p>Nginx主配置文件：/usr/local/nginx/conf/nginx.conf<br />
MySQL配置文件：/etc/my.cnf<br />
PHP配置文件：/usr/local/php/etc/php.ini<br />
php-fpm配置文件：/usr/local/php/etc/php-fpm.conf<br />
PureFtpd配置文件：/usr/local/pureftpd/pure-ftpd.conf<br />
PureFtpd MySQL配置文件：/usr/local/pureftpd/pureftpd-mysql.conf<br />
Apache配置文件：/usr/local/apache/conf/httpd.conf</p>
<h3>技术支持：</h3>
<p>LNMP官网：<a href="http://www.lnmp.org/" target="_blank">http://www.lnmp.org/</a><br />
技术交流及反馈论坛：<a href="http://bbs.vpser.net/forum-25-1.html" target="_blank">http://bbs.vpser.net/forum-25-1.html</a></p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li><a href="http://www.vpser.net/manage/lnmp-lnmpa-imagemagick-install-tutorial.html" title="LNMP/LNMPA一键安装包ImageMagick安装配置教程">LNMP/LNMPA一键安装包ImageMagick安装配置教程</a></li><li><a href="http://www.vpser.net/security/lnmp-remove-nginx-php-execute.html" title="lnmp去掉nginx上传目录的PHP执行权限">lnmp去掉nginx上传目录的PHP执行权限</a></li><li><a href="http://www.vpser.net/build/lnmp-0-7-lnmpa.html" title="LNMP一键安装包 0.7发布 &#8211; 支持LNMPA">LNMP一键安装包 0.7发布 &#8211; 支持LNMPA</a></li><li><a href="http://www.vpser.net/build/lnmp-0-6.html" title="LNMP一键安装包 0.6 正式发布">LNMP一键安装包 0.6 正式发布</a></li><li><a href="http://www.vpser.net/build/lnmp-0-5.html" title="LNMP一键安装包 0.5 正式发布">LNMP一键安装包 0.5 正式发布</a></li><li><a href="http://www.vpser.net/build/lnmp-0-4.html" title="LNMP一键安装包 0.4发布">LNMP一键安装包 0.4发布</a></li><li><a href="http://www.vpser.net/security/lnmp-php-pathinfo.html" title="请各位lnmp用户检查php pathinfo设置！重要！">请各位lnmp用户检查php pathinfo设置！重要！</a></li><li><a href="http://www.vpser.net/manage/lnmp-upgrade-php-script.html" title="LNMP一键安装包 PHP自动升级脚本">LNMP一键安装包 PHP自动升级脚本</a></li><li><a href="http://www.vpser.net/build/lnmp-auto-upgrade-nginx-to-any-version.html" title="LNMP一键安装包 自动无缝升级Nginx至任意版本">LNMP一键安装包 自动无缝升级Nginx至任意版本</a></li><li><a href="http://www.vpser.net/build/lnmp-faq.html" title="LNMP一键安装包常见问题错误及解决方法(不定期更新)">LNMP一键安装包常见问题错误及解决方法(不定期更新)</a></li></ul><hr />
<p><small>© VPSer for <a href="http://www.vpser.net">VPS侦探</a>, 2011. |
<a href="http://www.vpser.net/build/lnmp-0-8.html">Permalink</a> |
<a href="http://www.vpser.net/build/lnmp-0-8.html#comments">34 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.vpser.net/build/lnmp-0-8.html&title=LNMP一键安装包 0.8发布">del.icio.us</a>
<br/>
Post tags: <a href="http://www.vpser.net/tag/0-8" rel="tag">0.8</a>, <a href="http://www.vpser.net/tag/lnmp" rel="tag">LNMP</a>, <a href="http://www.vpser.net/tag/lnmpa" rel="tag">LNMPA</a>, <a href="http://www.vpser.net/tag/lnmp%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e5%8c%85" rel="tag">LNMP一键安装包</a>, <a href="http://www.vpser.net/tag/%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e5%8c%85" rel="tag">一键安装包</a><br/>
<br/>
<img src="http://www.vpser.net/images/tuijian.gif"> <a href="http://www.vpser.net/usa-vps/">美国VPS推荐</a>  | <a href="http://shop63846532.taobao.com/">军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付</a> QQ：503228080
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.vpser.net/build/lnmp-0-8.html/feed</wfw:commentRss>
		<slash:comments>34</slash:comments>
		</item>
		<item>
		<title>LNMP下为Nginx目录设置访问验证的用户名密码</title>
		<link>http://www.vpser.net/build/nginx-htpasswd.html</link>
		<comments>http://www.vpser.net/build/nginx-htpasswd.html#comments</comments>
		<pubDate>Fri, 01 Jul 2011 01:38:16 +0000</pubDate>
		<dc:creator>VPSer</dc:creator>
				<category><![CDATA[服务器环境搭建]]></category>
		<category><![CDATA[auth_basic]]></category>
		<category><![CDATA[htpasswd]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[nginx目录]]></category>
		<category><![CDATA[nginx目录访问密码]]></category>
		<category><![CDATA[目录密码验证]]></category>

		<guid isPermaLink="false">http://www.vpser.net/?p=2383</guid>
		<description><![CDATA[有时候需要象Apache那样为指定的目录添加访问验证，一般在Apache下使用htpasswd来添加，而htpasswd是包含在apache2-utils里，一般LNMP一键安装包或自己编译安装LNMP都不会安装apache2-utils。下面VPS侦探说一下如何为Nginx的网站目录设置访问验证： 1、创建类htpasswd文件 执行：wget -c soft.vpser.net/lnmp/ext/htpasswd.sh;bash htpasswd.sh 按提示输入用户名、密码、及认证文件名。脚本会自动生成认证文件。记录下脚本返回的文件路径。如：/usr/local/nginx/conf/vpser.net.auth。 2、为Nginx添加auth认证配置 下面是以某域名下面的soft目录为例，在域名的server段里加上如下代码： location ^~ /soft/ { auth_basic "Authorized users only"; auth_basic_user_file 这里写前面脚本返回的文件路径; } Authorized users only为提示信息，可以修改成自己想让他提示的信息；auth_basic_user_file 后面需要填htpasswd.sh脚本返回的人家文件的路径。按上面的提示修改好配置后，重启nginx，访问http://yourdomainname/soft/ 就会提示输入用户名和密码。 注意，加上认证之后该目录下的PHP将不会被解析，会出现下载提示，如果想可以解析PHP可以将上面的配置改为： location ^~ /soft/ { location ~ .*\.(php&#124;php5)?$ { fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index index.php; include fcgi.conf; } auth_basic "Authorized users only"; auth_basic_user_file 这里写前面脚本返回的文件路径; } 本教程适合LNMP一键安装包或自己安装的LNMP，只不过目录和配置文件可能位置不一样。 如有问题欢迎在本文下方留言或到VPS论坛交流反馈。 原创文章，谢绝转载！ 相关文章：lnmp去掉nginx上传目录的PHP执行权限Nginx日志切割脚本LNMP一键安装包 自动无缝升级Nginx至任意版本BurstNet VPS上让Nginx(lnmp)支持IPv6LNMP使用Awstats分析Nginx日志[转载]再提供一种解决Nginx文件类型错误解析漏洞的方法nginx文件类型错误解析漏洞在Nginx上配置NameCheap免费SSLNginx无缝升级Nginx 目录自动加斜线”/” © VPSer [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.vpser.net/build/nginx-htpasswd.html"><img class="alignnone size-medium wp-image-2390" title="nginx_passwd_auth" src="http://www.vpser.net/uploads/2011/06/nginx_passwd_auth-300x91.jpg" alt="" width="300" height="91" /></a></p>
<p>有时候需要象Apache那样为指定的目录添加访问验证，一般在Apache下使用htpasswd来添加，而htpasswd是包含在apache2-utils里，一般LNMP一键安装包或自己编译安装LNMP都不会安装apache2-utils。下面<a href="http://www.vpser.net" target="_blank">VPS侦探</a>说一下<a href="http://www.vpser.net/build/nginx-htpasswd.html">如何为Nginx的网站目录设置访问验证</a>：</p>
<p>1、创建类htpasswd文件<span id="more-2383"></span></p>
<p>执行：wget -c soft.vpser.net/lnmp/ext/htpasswd.sh;bash htpasswd.sh</p>
<p>按提示输入用户名、密码、及认证文件名。脚本会自动生成认证文件。记录下脚本返回的文件路径。如：/usr/local/nginx/conf/vpser.net.auth。</p>
<p>2、为Nginx添加auth认证配置</p>
<p>下面是以某域名下面的soft目录为例，在域名的server段里加上如下代码：<br />
location ^~ /soft/<br />
{<br />
auth_basic             "Authorized users only";<br />
auth_basic_user_file   这里写前面脚本返回的文件路径;<br />
}</p>
<p>Authorized users only为提示信息，可以修改成自己想让他提示的信息；auth_basic_user_file 后面需要填htpasswd.sh脚本返回的人家文件的路径。按上面的提示修改好配置后，重启nginx，访问http://yourdomainname/soft/ 就会提示输入用户名和密码。</p>
<p>注意，加上认证之后该目录下的PHP将不会被解析，会出现下载提示，如果想可以解析PHP可以将上面的配置改为：</p>
<p>location ^~ /soft/ {<br />
location ~ .*\.(php|php5)?$ {<br />
fastcgi_pass  unix:/tmp/php-cgi.sock;<br />
fastcgi_index index.php;<br />
include fcgi.conf;<br />
}<br />
auth_basic "Authorized users only";<br />
auth_basic_user_file 这里写前面脚本返回的文件路径;<br />
}</p>
<p>本教程适合<a href="http://lnmp.org" target="_blank">LNMP一键安装包</a>或自己安装的LNMP，只不过目录和配置文件可能位置不一样。</p>
<p><strong>如有问题欢迎在本文下方留言或到<a href="http://bbs.vpser.net/" target="_blank">VPS论坛</a>交流反馈。</strong></p>
<p>原创文章，谢绝转载！</p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li><a href="http://www.vpser.net/security/lnmp-remove-nginx-php-execute.html" title="lnmp去掉nginx上传目录的PHP执行权限">lnmp去掉nginx上传目录的PHP执行权限</a></li><li><a href="http://www.vpser.net/manage/cut-nginx-log-files.html" title="Nginx日志切割脚本">Nginx日志切割脚本</a></li><li><a href="http://www.vpser.net/build/lnmp-auto-upgrade-nginx-to-any-version.html" title="LNMP一键安装包 自动无缝升级Nginx至任意版本">LNMP一键安装包 自动无缝升级Nginx至任意版本</a></li><li><a href="http://www.vpser.net/build/nginx-lnmp-ipv6.html" title="BurstNet VPS上让Nginx(lnmp)支持IPv6">BurstNet VPS上让Nginx(lnmp)支持IPv6</a></li><li><a href="http://www.vpser.net/manage/lnmp-awstats-nginx-logs.html" title="LNMP使用Awstats分析Nginx日志[转载]">LNMP使用Awstats分析Nginx日志[转载]</a></li><li><a href="http://www.vpser.net/manage/path_info-securit-bug.html" title="再提供一种解决Nginx文件类型错误解析漏洞的方法">再提供一种解决Nginx文件类型错误解析漏洞的方法</a></li><li><a href="http://www.vpser.net/manage/nginx-securit-script_filename.html" title="nginx文件类型错误解析漏洞">nginx文件类型错误解析漏洞</a></li><li><a href="http://www.vpser.net/manage/namecheap-free-ssl-nginx.html" title="在Nginx上配置NameCheap免费SSL">在Nginx上配置NameCheap免费SSL</a></li><li><a href="http://www.vpser.net/manage/nginx-upgrade.html" title="Nginx无缝升级">Nginx无缝升级</a></li><li><a href="http://www.vpser.net/manage/nginx-auto-add-slash.html" title="Nginx 目录自动加斜线”/”">Nginx 目录自动加斜线”/”</a></li></ul><hr />
<p><small>© VPSer for <a href="http://www.vpser.net">VPS侦探</a>, 2011. |
<a href="http://www.vpser.net/build/nginx-htpasswd.html">Permalink</a> |
<a href="http://www.vpser.net/build/nginx-htpasswd.html#comments">4 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.vpser.net/build/nginx-htpasswd.html&title=LNMP下为Nginx目录设置访问验证的用户名密码">del.icio.us</a>
<br/>
Post tags: <a href="http://www.vpser.net/tag/auth_basic" rel="tag">auth_basic</a>, <a href="http://www.vpser.net/tag/htpasswd" rel="tag">htpasswd</a>, <a href="http://www.vpser.net/tag/nginx" rel="tag">Nginx</a>, <a href="http://www.vpser.net/tag/nginx%e7%9b%ae%e5%bd%95" rel="tag">nginx目录</a>, <a href="http://www.vpser.net/tag/nginx%e7%9b%ae%e5%bd%95%e8%ae%bf%e9%97%ae%e5%af%86%e7%a0%81" rel="tag">nginx目录访问密码</a>, <a href="http://www.vpser.net/tag/%e7%9b%ae%e5%bd%95%e5%af%86%e7%a0%81%e9%aa%8c%e8%af%81" rel="tag">目录密码验证</a><br/>
<br/>
<img src="http://www.vpser.net/images/tuijian.gif"> <a href="http://www.vpser.net/usa-vps/">美国VPS推荐</a>  | <a href="http://shop63846532.taobao.com/">军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付</a> QQ：503228080
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.vpser.net/build/nginx-htpasswd.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>LNMP一键安装包 0.7发布 - 支持LNMPA</title>
		<link>http://www.vpser.net/build/lnmp-0-7-lnmpa.html</link>
		<comments>http://www.vpser.net/build/lnmp-0-7-lnmpa.html#comments</comments>
		<pubDate>Wed, 27 Apr 2011 02:10:19 +0000</pubDate>
		<dc:creator>VPSer</dc:creator>
				<category><![CDATA[服务器环境搭建]]></category>
		<category><![CDATA[LNAMP]]></category>
		<category><![CDATA[LNMP]]></category>
		<category><![CDATA[LNMPA]]></category>
		<category><![CDATA[LNMP一键安装包]]></category>

		<guid isPermaLink="false">http://www.vpser.net/?p=2168</guid>
		<description><![CDATA[LNMP一键安装包是一个用Linux Shell编写的可以为CentOS/RadHat、Debian VPS(VDS)或独立主机安装LNMP(Nginx、MySQL、PHP、phpMyAdmin)生产环境的Shell程序。 LNMPA是在LNMP的基础上产生的新的扩展，目前LNMP一键安装包的用户可以直接升级到LNMPA(Nginx、MySQL、PHP、Apache)，由Nginx作为前端处理静态页面、js、图片等，Apache作为后端处理PHP，解决高并发时php-cgi的502问题，提高服务器处理动态内容的能力及稳定性。 LNMP一键安装包 0.7 &#38; LNMPA已经在VPSYOU（感谢提供测试VPS）、DiaHosting（感谢提供测试VPS）、PhotonVPS（感谢提供测试VPS）、vpszz（感谢提供测试VPS）、BurstNet、Linode、YardVPS、DirectSpace、ThrustVPS、瑞豪开源VPS、BuyVM、123Systems等多家美国VPS的CentOS、Debian、Ubuntu的32位和64位系统上测试通过（CentOS/Debian 均为5.0以上版本，Ubuntu为9.04以上版本），并且在Debian6.0也测试通过(BurstNet除外)。 LNMP安装教程：http://lnmp.org/install.html LNMPA安装教程：http://lnmp.org/lnmpa.html 使用交流论坛：http://bbs.vpser.net/forum-25-1.html LNMP相关软件版本： Nginx 0.8.54 MySQL 5.1.54 PHP 5.2.17 PHPMyAdmin 3.3.7 相关更新： 1、优化安装过程，修复多处安装错误处理； 2、添加LNMP至LNMPA升级包； 3、重写PureFTP安装包，实现只需要输入密码即可安装成功； 4、Nginx升级至0.8.54、MySQL升级至5.1.54、PHP升级至5.2.17； 5、优化PHP升级脚本； 6、优化Nginx升级脚本； 7、添加LNMPA PHP版本升级工具； 8、优化eAccelerator自动安装脚本，支持LNMPA同时多次安装都不会出现多次加载； 9、优化ionCube自动安装脚本，支持LNMPA同时多次安装都不会出现多次加载；； 10、去除了Suhosin； 状态管理 LNMP状态管理： /root/lnmp {start&#124;stop&#124;reload&#124;restart&#124;kill&#124;status} Nginx状态管理：/etc/init.d/nginx {start&#124;stop&#124;reload&#124;restart} PHP-FPM状态管理：/etc/init.d/php-fpm {start&#124;stop&#124;quit&#124;restart&#124;reload&#124;logrotate} PureFTPd状态管理： /etc/init.d/pureftpd {start&#124;stop&#124;restart&#124;kill&#124;status} MySQL状态管理：/etc/init.d/mysql {start&#124;stop&#124;restart&#124;reload&#124;force-reload&#124;status} Apache状态管理：/etc/init.d/httpd {start&#124;stop&#124;restart&#124;graceful&#124;graceful-stop&#124;configtest&#124;status} 相关图形界面程序 phpinfo : http://前面输入的域名或IP/phpinfo.php phpMyAdmin : http://前面输入的域名或IP/phpmyadmin/ [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://lnmp.org/" target="_blank"><img title="lnmp一键安装包" src="http://lnmp.org/images/logo.gif" alt="" width="156" height="46" /></a></p>
<p>LNMP一键安装包是一个用Linux Shell编写的可以为CentOS/RadHat、Debian VPS(VDS)或独立主机安装LNMP(Nginx、MySQL、PHP、phpMyAdmin)生产环境的Shell程序。</p>
<p>LNMPA是在LNMP的基础上产生的新的扩展，目前LNMP一键安装包的用户可以直接升级到LNMPA(Nginx、MySQL、PHP、Apache)，由Nginx作为前端处理静态页面、js、图片等，Apache作为后端处理PHP，解决高并发时php-cgi的502问题，提高服务器处理动态内容的能力及稳定性。</p>
<p>LNMP一键安装包 0.7 &amp; LNMPA已经在<a href="http://www.vpser.net/go/vpsyou" target="_blank">VPSYOU</a>（感谢提供测试VPS）、<a href="http://www.vpser.net/go/diahosting" target="_blank">DiaHosting</a>（感谢提供测试VPS）、<a href="http://www.vpser.net/go/photonvps" target="_blank">PhotonVPS</a>（感谢提供测试VPS）、<a href="http://www.vpser.net/go/vpszz" target="_blank">vpszz</a>（感谢提供测试VPS）、<a href="http://www.vpser.net/go/burst" target="_blank">BurstNet</a>、<a href="http://www.vpser.net/go/linode" target="_blank">Linode</a>、<a href="http://www.vpser.net/go/yardvps" target="_blank">YardVPS</a>、<a href="http://www.vpser.net/go/directspace" target="_blank">DirectSpace</a>、<a href="http://www.vpser.net/go/thrust" target="_blank">ThrustVPS</a>、<a href="http://www.vpser.net/go/rashost" target="_blank">瑞豪开源VPS</a>、<a href="http://www.vpser.net/go/buyvm" target="_blank">BuyVM</a>、<a href="http://www.vpser.net/go/123systems" target="_blank">123Systems</a>等多家美国VPS的CentOS、Debian、Ubuntu的32位和64位系统上测试通过（CentOS/Debian 均为5.0以上版本，Ubuntu为9.04以上版本），并且在Debian6.0也测试通过(<a href="http://www.vpser.net/go/burst" target="_blank">BurstNet</a>除外)。</p>
<p>LNMP安装教程：<a href="http://lnmp.org/install.html" target="_blank">http://lnmp.org/install.html</a></p>
<p>LNMPA安装教程：<a href="http://lnmp.org/lnmpa.html" target="_blank">http://lnmp.org/lnmpa.html<span id="more-2168"></span></a></p>
<p>使用交流论坛：<a href="http://bbs.vpser.net/forum-25-1.html">http://bbs.vpser.net/forum-25-1.html</a></p>
<h3>LNMP相关软件版本：</h3>
<p>Nginx 0.8.54<br />
MySQL 5.1.54<br />
PHP 5.2.17<br />
PHPMyAdmin 3.3.7</p>
<h3>相关更新：</h3>
<p>1、优化安装过程，修复多处安装错误处理；<br />
2、添加LNMP至LNMPA升级包；<br />
3、重写PureFTP安装包，实现只需要输入密码即可安装成功；<br />
4、Nginx升级至0.8.54、MySQL升级至5.1.54、PHP升级至5.2.17；<br />
5、优化PHP升级脚本；<br />
6、优化Nginx升级脚本；<br />
7、添加LNMPA PHP版本升级工具；<br />
8、优化eAccelerator自动安装脚本，支持LNMPA同时多次安装都不会出现多次加载；<br />
9、优化ionCube自动安装脚本，支持LNMPA同时多次安装都不会出现多次加载；；<br />
10、去除了Suhosin；</p>
<h3>状态管理</h3>
<p>LNMP状态管理： /root/lnmp {start|stop|reload|restart|kill|status}<br />
Nginx状态管理：/etc/init.d/nginx {start|stop|reload|restart}<br />
PHP-FPM状态管理：/etc/init.d/php-fpm {start|stop|quit|restart|reload|logrotate}<br />
PureFTPd状态管理： /etc/init.d/pureftpd {start|stop|restart|kill|status}<br />
MySQL状态管理：/etc/init.d/mysql  {start|stop|restart|reload|force-reload|status}<br />
Apache状态管理：/etc/init.d/httpd {start|stop|restart|graceful|graceful-stop|configtest|status}</p>
<h3>相关图形界面程序</h3>
<p>phpinfo : http://前面输入的域名或IP/phpinfo.php<br />
phpMyAdmin :  http://前面输入的域名或IP/phpmyadmin/<br />
探针 : http://前面输入的域名或IP/p.php<br />
PureFTP管理界面：http://前面输入的域名或IP/ftp/</p>
<h3>LNMP相关目录</h3>
<p>nginx : /usr/local/nginx<br />
mysql : /usr/local/mysql<br />
php :  /usr/local/php<br />
网站目录: /home/wwwroot/<br />
Nginx日志目录：/home/wwwlogs/</p>
<h3>LNMP相关配置文件</h3>
<p>Nginx主配置文件：/usr/local/nginx/conf/nginx.conf<br />
MySQL配置文件：/etc/my.cnf<br />
PHP配置文件：/usr/local/php/etc/php.ini<br />
PureFtpd配置文件：/usr/local/pureftpd/pure-ftpd.conf<br />
PureFtpd  MySQL配置文件：/usr/local/pureftpd/pureftpd-mysql.conf<br />
Apache配置文件：/usr/local/apache/conf/httpd.conf</p>
<h3>技术支持：</h3>
<p>LNMP官网：<a href="http://www.lnmp.org/" target="_blank">http://www.lnmp.org/</a><br />
技术交流及反馈论坛：<a href="http://bbs.vpser.net/forum-25-1.html" target="_blank">http://bbs.vpser.net/forum-25-1.html</a></p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li><a href="http://www.vpser.net/build/lnmp-0-8.html" title="LNMP一键安装包 0.8发布">LNMP一键安装包 0.8发布</a></li><li><a href="http://www.vpser.net/manage/lnmp-lnmpa-imagemagick-install-tutorial.html" title="LNMP/LNMPA一键安装包ImageMagick安装配置教程">LNMP/LNMPA一键安装包ImageMagick安装配置教程</a></li><li><a href="http://www.vpser.net/security/lnmp-remove-nginx-php-execute.html" title="lnmp去掉nginx上传目录的PHP执行权限">lnmp去掉nginx上传目录的PHP执行权限</a></li><li><a href="http://www.vpser.net/build/lnmp-auto-upgrade-nginx-to-any-version.html" title="LNMP一键安装包 自动无缝升级Nginx至任意版本">LNMP一键安装包 自动无缝升级Nginx至任意版本</a></li><li><a href="http://www.vpser.net/build/lnmp-0-6.html" title="LNMP一键安装包 0.6 正式发布">LNMP一键安装包 0.6 正式发布</a></li><li><a href="http://www.vpser.net/manage/lnmp-php-niginx-upload.html" title="LNMP一键安装包PHP和Niginx 文件上传大小限制问题解决方法">LNMP一键安装包PHP和Niginx 文件上传大小限制问题解决方法</a></li><li><a href="http://www.vpser.net/build/lnmp-0-5.html" title="LNMP一键安装包 0.5 正式发布">LNMP一键安装包 0.5 正式发布</a></li><li><a href="http://www.vpser.net/build/lnmp-0-4.html" title="LNMP一键安装包 0.4发布">LNMP一键安装包 0.4发布</a></li><li><a href="http://www.vpser.net/security/fix-lnmp-php-5-2-hash-table-collision-bug.html" title="LNMP PHP 5.2.* Hash漏洞修复脚本">LNMP PHP 5.2.* Hash漏洞修复脚本</a></li><li><a href="http://www.vpser.net/security/lnmp-php-pathinfo.html" title="请各位lnmp用户检查php pathinfo设置！重要！">请各位lnmp用户检查php pathinfo设置！重要！</a></li></ul><hr />
<p><small>© VPSer for <a href="http://www.vpser.net">VPS侦探</a>, 2011. |
<a href="http://www.vpser.net/build/lnmp-0-7-lnmpa.html">Permalink</a> |
<a href="http://www.vpser.net/build/lnmp-0-7-lnmpa.html#comments">47 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.vpser.net/build/lnmp-0-7-lnmpa.html&title=LNMP一键安装包 0.7发布 - 支持LNMPA">del.icio.us</a>
<br/>
Post tags: <a href="http://www.vpser.net/tag/lnamp" rel="tag">LNAMP</a>, <a href="http://www.vpser.net/tag/lnmp" rel="tag">LNMP</a>, <a href="http://www.vpser.net/tag/lnmpa" rel="tag">LNMPA</a>, <a href="http://www.vpser.net/tag/lnmp%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e5%8c%85" rel="tag">LNMP一键安装包</a><br/>
<br/>
<img src="http://www.vpser.net/images/tuijian.gif"> <a href="http://www.vpser.net/usa-vps/">美国VPS推荐</a>  | <a href="http://shop63846532.taobao.com/">军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付</a> QQ：503228080
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.vpser.net/build/lnmp-0-7-lnmpa.html/feed</wfw:commentRss>
		<slash:comments>47</slash:comments>
		</item>
		<item>
		<title>Linux VPS上使用kingate搭建socks代理服务器</title>
		<link>http://www.vpser.net/build/linux-vps-use-kingate-install-proxy-server.html</link>
		<comments>http://www.vpser.net/build/linux-vps-use-kingate-install-proxy-server.html#comments</comments>
		<pubDate>Fri, 08 Apr 2011 02:02:14 +0000</pubDate>
		<dc:creator>VPSer</dc:creator>
				<category><![CDATA[服务器环境搭建]]></category>
		<category><![CDATA[kingate]]></category>
		<category><![CDATA[socks]]></category>
		<category><![CDATA[代理服务器]]></category>

		<guid isPermaLink="false">http://www.vpser.net/?p=2106</guid>
		<description><![CDATA[kingate是一位国人开发的代理服务器，支持http,socks,ftp等多种协议。支持多线程、tcp端口映射、规则控制、时间控制、用户认证、http管理等功能。 kingate官网：http://sourceforge.net/projects/kingate/ 安装所需的依赖包 Debian： apt-get install build-essential automake make gcc g++ CentOS： yum install make automake gcc gcc-c++ gcc-g77 安装kingate wget http://softlayer.dl.sourceforge.net/project/kingate/kingate/2.0/kingate-2.0.tar.gz tar xzf kingate-2.0.tar.gz cd kingate-2.0/ ./configure --prefix=/usr/local/kingate make &#38;&#38; make install 配置kingate 修改/usr/local/kingate/etc/kingate.conf 为以下内容： http off ftp off pop3 off smtp off telnet off socks on mms off rtsp off manage on max [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.vpser.net/build/linux-vps-use-kingate-install-proxy-server.html" target="_blank">kingate</a>是一位国人开发的<a href="http://www.vpser.net/build/linux-vps-use-kingate-install-proxy-server.html" target="_blank">代理服务器</a>，支持http,socks,ftp等多种协议。支持多线程、tcp端口映射、规则控制、时间控制、用户认证、http管理等功能。</p>
<p>kingate官网：<a href="http://sourceforge.net/projects/kingate/">http://sourceforge.net/projects/kingate/</a></p>
<h3>安装所需的依赖包</h3>
<p>Debian：</p>
<div style="background-color: #ffffff; border: #00a0c6 1px dashed; width: auto;">apt-get install build-essential automake make gcc g++</div>
<p>CentOS：<span id="more-2106"></span></p>
<div style="background-color: #ffffff; border: #00a0c6 1px dashed; width: auto;">yum install make automake gcc gcc-c++ gcc-g77</div>
<h3>安装kingate</h3>
<div style="background-color: #ffffff; border: #00a0c6 1px dashed; width: auto;">
<p>wget http://softlayer.dl.sourceforge.net/project/kingate/kingate/2.0/kingate-2.0.tar.gz</p>
<p>tar xzf kingate-2.0.tar.gz</p>
<p>cd kingate-2.0/</p>
<p>./configure --prefix=/usr/local/kingate</p>
<p>make &amp;&amp; make install</p>
</div>
<h3>配置kingate</h3>
<p>修改/usr/local/kingate/etc/kingate.conf 为以下内容：</p>
<div style="background-color: #ffffff; border: #00a0c6 1px dashed; width: auto;">
<p>http off</p>
<p>ftp off</p>
<p>pop3 off</p>
<p>smtp off</p>
<p>telnet off</p>
<p>socks on</p>
<p>mms off</p>
<p>rtsp off</p>
<p>manage on</p>
<p>max 2000</p>
<p>max_per_ip 0</p>
<p>min_free_thread 3</p>
<p>http_port 8082</p>
<p>http_accelerate off</p>
<p>x_forwarded_for on</p>
<p>http_time_out 30</p>
<p>ftp_port 2121</p>
<p>ftp_time_out 300</p>
<p>pop3_port 1100</p>
<p>pop3_time_out 300</p>
<p>smtp_port 2525</p>
<p>smtp_time_out 300</p>
<p>telnet_port 2323</p>
<p>telnet_time_out 300</p>
<p>socks_port 20120</p>
<p>socks_time_out 300</p>
<p>socks5_user off</p>
<p>mms_port 1755</p>
<p>mms_time_out 300</p>
<p>rtsp_port 5540</p>
<p>rtsp_time_out 300</p>
<p>manage_port 8822</p>
<p>manage_time_out 300</p>
<p>log_model user</p>
<p>log_level 0</p>
<p>log_rotate {0 0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23 * * * }</p>
<p>log_close_msg on</p>
<p>mem_min_cache 50m</p>
<p>mem_max_cache 12m</p>
<p>disk_min_cache 20m</p>
<p>disk_max_cache 30m</p>
<p>use_disk_cache off</p>
<p>refresh never</p>
<p>refresh_time 300</p>
<p>user_time_out 0</p>
<p>mem_cache 50m</p>
<p>disk_cache 100m</p>
<p>max_deny_per_ip 0</p>
<p>max_queue_thread 15</p>
<p>min_limit_speed_size 1m</p>
<p>limit_speed 20k</p>
<p>max_request 50</p>
<p>total_seconds 10</p>
<p>bind_addr</p>
<p>run_user</p>
<p>insert_via off</p>
</div>
<p>以上配置中，socks on 表示启用socks代理(也可以根据你自己的需求开启其他类型的代理)，socks_port 20120 表示socks代理的端口。manage on 为启用http管理，manage_port 8822 为http管理的端口。强烈建议修改端口号！</p>
<h3>kingate启动及管理</h3>
<p><strong>下载启动脚本及添加权限</strong></p>
<div style="background-color: #ffffff; border: #00a0c6 1px dashed; width: auto;">
<p>wget http://soft.vpser.net/proxy/kingate/kingate.init.d</p>
<p>mv kingate.init.d /etc/init.d/kingate</p>
<p>chmod +x /etc/init.d/kingate</p>
</div>
<h3>kingate管理</h3>
<p><strong>启动kingate：</strong></p>
<div style="background-color: #ffffff; border: #00a0c6 1px dashed; width: auto;">/etc/init.d/kingate start</div>
<p><strong>关闭kingate：</strong></p>
<div style="background-color: #ffffff; border: #00a0c6 1px dashed; width: auto;">/etc/init.d/kingate stop</div>
<p><strong>重启kingate：</strong></p>
<div style="background-color: #ffffff; border: #00a0c6 1px dashed; width: auto;">/etc/init.d/kingate restart</div>
<p><strong>http管理</strong></p>
<p>管理地址：http://ip:8822 ，如果修改过配置，8822端口修改为你设置的端口号，默认用户名为root，密码为kingate。</p>
<p><strong>加入开机启动</strong></p>
<p>Debian执行：</p>
<div style="background-color: #ffffff; border: #00a0c6 1px dashed; width: auto;">update-rc.d -f kingate defaults</div>
<p>CentOS执行：</p>
<div style="background-color: #ffffff; border: #00a0c6 1px dashed; width: auto;">chkconfig --level 345 kingate on</div>
<h3>客户端设置</h3>
<p>这里以dropbox为例：</p>
<p><a href="http://www.vpser.net/build/linux-vps-use-kingate-install-proxy-server.html" target="_blank"><img class="alignnone size-full wp-image-2112" title="dropbox代理设置" src="http://www.vpser.net/uploads/2011/04/dropbox-poxies.jpg" alt="" width="444" height="367" /></a></p>
<p>如有问题欢迎在本文或<a href="http://bbs.vpser.net" target="_blank">论坛</a>反馈！</p>
<p>原创文章谢绝转载！</p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li>暂无相关日志</li></ul><hr />
<p><small>© VPSer for <a href="http://www.vpser.net">VPS侦探</a>, 2011. |
<a href="http://www.vpser.net/build/linux-vps-use-kingate-install-proxy-server.html">Permalink</a> |
<a href="http://www.vpser.net/build/linux-vps-use-kingate-install-proxy-server.html#comments">26 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.vpser.net/build/linux-vps-use-kingate-install-proxy-server.html&title=Linux VPS上使用kingate搭建socks代理服务器">del.icio.us</a>
<br/>
Post tags: <a href="http://www.vpser.net/tag/kingate" rel="tag">kingate</a>, <a href="http://www.vpser.net/tag/socks" rel="tag">socks</a>, <a href="http://www.vpser.net/tag/%e4%bb%a3%e7%90%86%e6%9c%8d%e5%8a%a1%e5%99%a8" rel="tag">代理服务器</a><br/>
<br/>
<img src="http://www.vpser.net/images/tuijian.gif"> <a href="http://www.vpser.net/usa-vps/">美国VPS推荐</a>  | <a href="http://shop63846532.taobao.com/">军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付</a> QQ：503228080
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.vpser.net/build/linux-vps-use-kingate-install-proxy-server.html/feed</wfw:commentRss>
		<slash:comments>26</slash:comments>
		</item>
		<item>
		<title>Linode VPS OpenVPN安装配置教程(基于Debian/Ubuntu)</title>
		<link>http://www.vpser.net/build/linode-install-openvpn.html</link>
		<comments>http://www.vpser.net/build/linode-install-openvpn.html#comments</comments>
		<pubDate>Tue, 29 Mar 2011 08:03:16 +0000</pubDate>
		<dc:creator>VPSer</dc:creator>
				<category><![CDATA[服务器环境搭建]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[linode]]></category>
		<category><![CDATA[Linode VPS]]></category>
		<category><![CDATA[OpenVPN]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VPN]]></category>
		<category><![CDATA[教程]]></category>

		<guid isPermaLink="false">http://www.vpser.net/?p=1686</guid>
		<description><![CDATA[因为众所周知的原因，目前Gmail等相关服务原来越不稳定，虽然可以通过SSH来解决，但是打开网站一多SSH也有些力不从心，VPS侦探以前发表过在Linode VPS上安装PPTP VPN的教程，相对于PPTP来说OpenVPN加密型更强，而且穿透性更强。 本教程也适用其他的基于Debian/Ubuntu Linux的VPS/服务器，也已在DiaHosting、VPSYOU、PhotonVPS、123Systems、oplink上测试通过，如有问题欢迎反馈。（Linode购买及测试教程：http://www.vpser.net/usa-vps/linode.html ） 如果您觉得本文对您有所帮助，并想购买 Linode VPS [512M内存, 16GB硬盘, 200GB流量/月 = $19.95/月]，请点击 [链接]购买，或者购买时在Referral Code栏填写：8feb8d13729744f394433de7ede23efbbab1205a。(VPS侦探注：购买Linode需要使用Visa/Master信用卡，没有可以找军哥代购。) 1、安装 apt-get install openvpn udev lzop 2、使用easy-rsa生成服务端证书 将OpenVPN所需的配置文件复制到/etc/openvpn/下面： cp -r /usr/share/doc/openvpn/examples/easy-rsa/ /etc/openvpn/ 生产CA证书： cd /etc/openvpn/easy-rsa/2.0 source vars ./clean-all ./build-ca ./build-ca时会提示输入一些信息，可以都直接回车按默认信息。 生成服务器端证书和密钥，server为名字可以自定义： ./build-key-server server 此步也是会提示输入一些信息，前面的信息直接回车按默认信息，提示Sign the certificate? [y/n]:时输入y，提示1 out of 1 certificate requests certified, commit? [y/n] 也是输入y。 生成客户端证书和密钥，client为名字可以自定义，注意前面的./build-key-server与./build-key client输入的名字不能相同： ./build-key client 前面的信息直接回车按默认信息，提示Sign [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.vpser.net/build/linode-install-openvpn.html" target="_blank"><img class="alignnone size-full wp-image-1577" title="linode_logo3" src="http://www.vpser.net/uploads/2010/09/linode_logo3.png" alt="" width="160" height="45" /><img title="openvpn" src="http://www.vpser.net/uploads/2011/03/openvpn.gif" alt="" width="208" height="54" /></a></p>
<p>因为众所周知的原因，目前Gmail等相关服务原来越不稳定，虽然可以通过SSH来解决，但是打开网站一多SSH也有些力不从心，<a href="http://www.vpser.net" target="_blank">VPS侦探</a>以前发表过在<a href="http://www.vpser.net/go/linode" target="_blank">Linode VPS</a>上<a href="http://www.vpser.net/manage/linode-vps-pptp-vpn-howto.html" target="_blank">安装PPTP VPN的教程</a>，相对于PPTP来说OpenVPN加密型更强，而且穿透性更强。</p>
<p>本教程也适用其他的基于Debian/Ubuntu Linux的VPS/服务器，也已在<a href="http://www.vpser.net/go/diahosting" target="_blank">DiaHosting</a>、<a href="http://www.vpser.net/go/vpsyou" target="_blank">VPSYOU</a>、<a href="http://www.vpser.net/go/photonvps" target="_blank">PhotonVPS</a>、<a href="http://www.vpser.net/go/123systems" target="_blank">123Systems</a>、oplink上测试通过，如有问题欢迎反馈。（Linode购买及测试教程：<a href="http://www.vpser.net/usa-vps/linode.html" target="_blank">http://www.vpser.net/usa-vps/linode.html</a> ）</p>
<p>如果您觉得本文对您有所帮助，并想购买 <a href="http://www.vpser.net/go/linode" target="_blank">Linode VPS</a> [512M内存, 16GB硬盘, 200GB流量/月 = <strong>$19.95/月</strong>]，请点击 [<strong><a href="http://www.linode.com/?r=8feb8d13729744f394433de7ede23efbbab1205a" target="_blank">链接</a></strong>]购买，或者购买时在<label for="field1">Referral Code栏</label>填写：8feb8d13729744f394433de7ede23efbbab1205a。(<a href="http://www.vpser.net/" target="_blank">VPS侦探</a>注：购买Linode需要使用Visa/Master信用卡，没有可以找<a href="http://jungehost.taobao.com/" target="_blank">军哥代购</a>。)</p>
<h3>1、安装</h3>
<div style="background-color: #ffffff; border: #00a0c6 1px dashed; width: auto;">apt-get install openvpn udev lzop</div>
<h3><span id="more-1686"></span>2、使用easy-rsa生成服务端证书</h3>
<p><strong>将OpenVPN所需的配置文件复制到/etc/openvpn/下面：</strong></p>
<div style="background-color: #ffffff; border: #00a0c6 1px dashed; width: auto;">cp -r /usr/share/doc/openvpn/examples/easy-rsa/ /etc/openvpn/</div>
<p><strong>生产CA证书：</strong></p>
<div style="background-color: #ffffff; border: #00a0c6 1px dashed; width: auto;">cd /etc/openvpn/easy-rsa/2.0<br />
source vars<br />
./clean-all<br />
./build-ca</div>
<p>./build-ca时会提示输入一些信息，可以都直接回车按默认信息。</p>
<p><strong>生成服务器端证书和密钥，server为名字可以自定义：</strong></p>
<div style="background-color: #ffffff; border: #00a0c6 1px dashed; width: auto;">./build-key-server server</div>
<p>此步也是会提示输入一些信息，前面的信息直接回车按默认信息，提示Sign the certificate? [y/n]:时输入y，提示1 out of 1 certificate requests certified, commit? [y/n] 也是输入y。</p>
<p><strong>生成客户端证书和密钥，client为名字可以自定义，注意前面的./build-key-server与./build-key client输入的名字不能相同：</strong></p>
<div style="background-color: #ffffff; border: #00a0c6 1px dashed; width: auto;">./build-key client</div>
<p>前面的信息直接回车按默认信息，提示Sign the certificate? [y/n]:时输入y，提示1 out of 1 certificate requests certified, commit? [y/n] 也是输入y</p>
<p>生成其他的客户端就是执行：./build-key 你想添加的客户端的名字。</p>
<p>生成的证书和密钥存放在/etc/openvpn/easy-rsa/2.0/keys/下面。</p>
<p><strong>生成Diffie Hellman参数：</strong></p>
<div style="background-color: #ffffff; border: #00a0c6 1px dashed; width: auto;">./build-dh</div>
<h3>3、配置OpenVPN服务</h3>
<p><strong>编辑/etc/openvpn/server.conf 文件，如果没有可以创建一个，加入下面的内容：</strong></p>
<div style="background-color: #ffffff; border: #00a0c6 1px dashed; width: auto;">local 服务器IP<br />
port 8080    #端口，需要与客户端配置保持一致<br />
proto udp    #使用协议，需要与客户端配置保持一致<br />
dev tun         #也可以选择tap模式<br />
ca /etc/openvpn/easy-rsa/2.0/keys/ca.crt<br />
cert /etc/openvpn/easy-rsa/2.0/keys/server.crt<br />
key /etc/openvpn/easy-rsa/2.0/keys/server.key<br />
dh /etc/openvpn/easy-rsa/2.0/keys/dh1024.pem&nbsp;</p>
<p>ifconfig-pool-persist ipp.txt</p>
<p>server 10.168.1.0 255.255.255.0    #给客户的分配的IP段，注意不要与客户端网段冲突！</p>
<p>push "redirect-gateway"</p>
<p>push "dhcp-option DNS 8.8.8.8"<br />
push "dhcp-option DNS 8.8.4.4"<br />
client-to-client</p>
<p>;duplicate-cn</p>
<p>keepalive 20 60</p>
<p>comp-lzo</p>
<p>max-clients 50</p>
<p>persist-key<br />
persist-tun</p>
<p>status openvpn-status.log<br />
log-append openvpn.log<br />
verb 3<br />
mute 20</p>
</div>
<p>按上述说明修改服务器IP，复制到VPS上是可以把注释信息删除。</p>
<p><strong>安装iptables</strong></p>
<div style="background-color: #ffffff; border: #00a0c6 1px dashed; width: auto;">apt-get install iptables   #如果已经安装可以跳过</div>
<p><strong>设置IP转发</strong></p>
<div style="background-color: #ffffff; border: #00a0c6 1px dashed; width: auto;">iptables -t nat -A POSTROUTING -s 10.168.0.0/16 -o eth0 -j MASQUERADE<br />
iptables-save &gt; /etc/iptables.rules</div>
<p>上面的eth0要替换为你的网卡标识，可以通过ifconfig查看。</p>
<p>在/etc/network/if-up.d/目录下创建iptables文件，内容如下：</p>
<div style="background-color: #ffffff; border: #00a0c6 1px dashed; width: auto;">#!/bin/sh<br />
iptables-restore &lt; /etc/iptables.rules</div>
<p>给脚本添加执行权限：</p>
<div style="background-color: #ffffff; border: #00a0c6 1px dashed; width: auto;">chmod +x /etc/network/if-up.d/iptables</div>
<p>修改/etc/sysctl.conf的内容为：</p>
<div style="background-color: #ffffff; border: #00a0c6 1px dashed; width: auto;">net.ipv4.ip_forward = 1<br />
net.ipv4.conf.all.send_redirects = 0<br />
net.ipv4.conf.default.send_redirects = 0<br />
net.ipv4.conf.all.accept_redirects = 0<br />
net.ipv4.conf.default.accept_redirects = 0</div>
<p>重新载入/etc/sysctl.conf使其生效，执行如下命令：</p>
<div style="background-color: #ffffff; border: #00a0c6 1px dashed; width: auto;">sysctl -p</div>
<p><strong>重启OpenVPN及网络：</strong></p>
<div style="background-color: #ffffff; border: #00a0c6 1px dashed; width: auto;">/etc/init.d/openvpn restart<br />
/etc/init.d/networking restart</div>
<h3><strong>4、安装配置OpenVPN客户端</strong></h3>
<p><strong>下载客户端</strong></p>
<p>打开<a href="http://openvpn.net/download.html">http://openvpn.net/download.html</a>，点击Windows Installer后的链接，下载OpenVPN Windows客户端。</p>
<p>下载完成后，安装，安装中的选项全部按默认即可。</p>
<p><strong>下载客户端证书及密钥：</strong></p>
<p>证书和密钥存放在/etc/openvpn/easy-rsa/2.0/keys/下面，可以使用<a href="http://www.vpser.net/manage/winscp.html" target="_blank">winscp</a>链接到VPS上下载。</p>
<p>将/etc/openvpn/easy-rsa/2.0/keys/下面的ca.crt、client.crt、client.key下载到C:\Program Files\OpenVPN\config 下面。</p>
<p><strong>创建客户端配置文件</strong></p>
<p>在C:\Program Files\OpenVPN\config 下面创建一个linode.ovpn的文件，添加如下内容：</p>
<div style="background-color: #ffffff; border: #00a0c6 1px dashed; width: auto;">client<br />
dev tun       #要与前面server.conf中的配置一致。<br />
proto udp              #要与前面server.conf中的配置一致。<br />
remote 服务器IP 8080    #将服务器IP替换为你的服务器IP，端口与前面的server.conf中配置一致。<br />
resolv-retry infinite<br />
nobind<br />
persist-key<br />
persist-tun<br />
ca linodeca.crt<br />
cert linodeclient.crt<br />
key linodeclient.key<br />
ns-cert-type server<br />
redirect-gateway<br />
keepalive 20 60<br />
#tls-auth ta.key 1<br />
comp-lzo<br />
verb 3<br />
mute 20<br />
route-method exe<br />
route-delay 2</div>
<h3>5、OpenVPN客户端连接测试：</h3>
<p>运行OpenVPN GUI，会在屏幕右下角的系统托盘区，会显示<a href="http://www.vpser.net/build/linode-install-openvpn.html" target="_blank"><img class="alignnone size-full wp-image-2087" title="openvpn_tray" src="http://www.vpser.net/uploads/2011/03/openvpn_tray.jpg" alt="" width="34" height="26" /></a>右击该图标，会在菜单中出现我们添加的服务器，点击Connect，OpenVPN客户端就会开通链接OpenVPN服务器，过一会儿，OpenVPN图标变成绿色就是链接成功了。</p>
<p>如果想实现国内网站不走VPN，国外网站走VPN可以看一下：<a href="http://code.google.com/p/chnroutes/wiki/Usage" target="_blank">http://code.google.com/p/chnroutes/wiki/Usage</a> 这个教程。</p>
<p>如有问题欢迎反馈，或到<a href="http://bbs.vpser.net" target="_blank">VPS论坛</a>交流。</p>
<p>如果您觉得本文对您有所帮助，并想购买 <a href="http://www.vpser.net/go/linode" target="_blank">Linode VPS</a> [512M内存, 16GB硬盘, 200GB流量/月 = <strong>$19.95/月</strong>]，请点击 [<strong><a href="http://www.linode.com/?r=8feb8d13729744f394433de7ede23efbbab1205a" target="_blank">链接</a></strong>]购买，或者购买时在<label for="field1">Referral Code栏</label>填写：8feb8d13729744f394433de7ede23efbbab1205a。(<a href="http://www.vpser.net/" target="_blank">VPS侦探</a>注：购买Linode需要使用Visa/Master信用卡，没有可以找<a href="http://jungehost.taobao.com/" target="_blank">军哥代购</a>。)</p>
<p>原创文章，谢绝转载！</p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li><a href="http://www.vpser.net/manage/linode-vps-pptp-vpn-howto.html" title="Linode VPS PPTP VPN 安装配置教程">Linode VPS PPTP VPN 安装配置教程</a></li><li><a href="http://www.vpser.net/usa-vps/linode-1-year-review.html" title="Linode VPS 使用1年评价">Linode VPS 使用1年评价</a></li><li><a href="http://www.vpser.net/usa-vps/linode.html" title="Linode 购买、安装、测试、配置教程">Linode 购买、安装、测试、配置教程</a></li><li><a href="http://www.vpser.net/build/lnmp-debian-ubuntu.html" title="LNMP Debian/Ubuntu下Nginx+MySQL+PHP+phpMyAdmin+Zend一键安装包">LNMP Debian/Ubuntu下Nginx+MySQL+PHP+phpMyAdmin+Zend一键安装包</a></li><li><a href="http://www.vpser.net/usa-vps/linode-vps-japan-tokyo.html" title="Linode VPS新增日本东京机房附测试">Linode VPS新增日本东京机房附测试</a></li><li><a href="http://www.vpser.net/manage/lnmp-lnmpa-imagemagick-install-tutorial.html" title="LNMP/LNMPA一键安装包ImageMagick安装配置教程">LNMP/LNMPA一键安装包ImageMagick安装配置教程</a></li><li><a href="http://www.vpser.net/usa-vps/linode-turns-8-disk-space-25.html" title="Linode 8周年所有用户免费增送25%的硬盘空间">Linode 8周年所有用户免费增送25%的硬盘空间</a></li><li><a href="http://www.vpser.net/manage/vi.html" title="Linux上vi(vim)编辑器使用教程">Linux上vi(vim)编辑器使用教程</a></li><li><a href="http://www.vpser.net/security/linux-iptables.html" title="Linux上iptables防火墙的基本应用教程">Linux上iptables防火墙的基本应用教程</a></li><li><a href="http://www.vpser.net/usa-vps/linode-fremont-ca-ipv6.html" title="Linode VPS Fremont, CA机房率先正式原生支持IPv6">Linode VPS Fremont, CA机房率先正式原生支持IPv6</a></li></ul><hr />
<p><small>© VPSer for <a href="http://www.vpser.net">VPS侦探</a>, 2011. |
<a href="http://www.vpser.net/build/linode-install-openvpn.html">Permalink</a> |
<a href="http://www.vpser.net/build/linode-install-openvpn.html#comments">30 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.vpser.net/build/linode-install-openvpn.html&title=Linode VPS OpenVPN安装配置教程(基于Debian/Ubuntu)">del.icio.us</a>
<br/>
Post tags: <a href="http://www.vpser.net/tag/debian" rel="tag">Debian</a>, <a href="http://www.vpser.net/tag/linode" rel="tag">linode</a>, <a href="http://www.vpser.net/tag/linode-vps" rel="tag">Linode VPS</a>, <a href="http://www.vpser.net/tag/openvpn" rel="tag">OpenVPN</a>, <a href="http://www.vpser.net/tag/ubuntu" rel="tag">Ubuntu</a>, <a href="http://www.vpser.net/tag/vpn" rel="tag">VPN</a>, <a href="http://www.vpser.net/tag/%e6%95%99%e7%a8%8b" rel="tag">教程</a><br/>
<br/>
<img src="http://www.vpser.net/images/tuijian.gif"> <a href="http://www.vpser.net/usa-vps/">美国VPS推荐</a>  | <a href="http://shop63846532.taobao.com/">军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付</a> QQ：503228080
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.vpser.net/build/linode-install-openvpn.html/feed</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
		<item>
		<title>LNMP一键安装包 自动无缝升级Nginx至任意版本</title>
		<link>http://www.vpser.net/build/lnmp-auto-upgrade-nginx-to-any-version.html</link>
		<comments>http://www.vpser.net/build/lnmp-auto-upgrade-nginx-to-any-version.html#comments</comments>
		<pubDate>Tue, 15 Feb 2011 01:11:17 +0000</pubDate>
		<dc:creator>VPSer</dc:creator>
				<category><![CDATA[服务器环境搭建]]></category>
		<category><![CDATA[LNMP]]></category>
		<category><![CDATA[LNMP一键安装包]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[升级]]></category>
		<category><![CDATA[无缝升级]]></category>

		<guid isPermaLink="false">http://www.vpser.net/?p=1993</guid>
		<description><![CDATA[前几天发布了LNMP一键安装包0.6，有一些lnmp用户一直在要求增加升级功能，今天发布的脚本就是专门用来升级Nginx，可以升级Nginx至任意官方已发布的Nginx版本。 执行：wget soft.vpser.net/lnmp/upgrade_nginx.sh;sh upgrade_nginx.sh 然后按提示输入要升级的Nginx版本号，Nginx的版本号可以从http://nginx.org/en/download.html查询。输入版本号后回车，再次回车确认即可开始安装，如果不出意外就会升级成功，如果出现问题可以到http://bbs.vpser.net lnmp专区发帖求助。 本文原创，谢绝转载！ 相关文章：lnmp去掉nginx上传目录的PHP执行权限Nginx无缝升级LNMP一键安装包 0.4发布LNMP一键安装包 0.8发布LNMP一键安装包 0.7发布 &#8211; 支持LNMPALNMP一键安装包 PHP自动升级脚本LNMP一键安装包 0.6 正式发布BurstNet VPS上让Nginx(lnmp)支持IPv6LNMP一键安装包PHP和Niginx 文件上传大小限制问题解决方法LNMP一键安装包 0.5 正式发布 © VPSer for VPS侦探, 2011. &#124; Permalink &#124; 17 comments &#124; Add to del.icio.us Post tags: LNMP, LNMP一键安装包, Nginx, 升级, 无缝升级 美国VPS推荐 &#124; 军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付 QQ：503228080]]></description>
			<content:encoded><![CDATA[<p><a href="http://lnmp.org"><img class="alignnone size-full wp-image-1730" title="lnmp" src="http://www.vpser.net/uploads/2010/11/lnmp.gif" alt="" width="156" height="46" /></a></p>
<p>前几天<a href="http://www.vpser.net/build/lnmp-0-6.html" target="_blank">发布了LNMP一键安装包0.6</a>，有一些lnmp用户一直在要求增加升级功能，今天发布的脚本就是专门用来<a href="http://www.vpser.net/manage/nginx-upgrade.html" target="_blank">升级Nginx</a>，可以升级Nginx至任意官方已发布的Nginx版本。</p>
<p>执行：<strong>wget soft.vpser.net/lnmp/upgrade_nginx.sh;sh upgrade_nginx.sh<span id="more-1993"></span><br />
</strong></p>
<p>然后按提示输入要升级的Nginx版本号，Nginx的版本号可以从<a href="http://nginx.org/en/download.html">http://nginx.org/en/download.html</a>查询。输入版本号后回车，再次回车确认即可开始安装，如果不出意外就会升级成功，如果出现问题可以到<a href="http://bbs.vpser.net" target="_blank">http://bbs.vpser.net</a> <a href="http://bbs.vpser.net/forum-25-1.html" target="_blank">lnmp专区</a>发帖求助。</p>
<p><img class="alignnone size-full wp-image-1996" title="upgrade_nginx" src="http://www.vpser.net/uploads/2011/02/upgrade_nginx.jpg" alt="" width="526" height="269" /></p>
<p>本文原创，谢绝转载！</p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li><a href="http://www.vpser.net/security/lnmp-remove-nginx-php-execute.html" title="lnmp去掉nginx上传目录的PHP执行权限">lnmp去掉nginx上传目录的PHP执行权限</a></li><li><a href="http://www.vpser.net/manage/nginx-upgrade.html" title="Nginx无缝升级">Nginx无缝升级</a></li><li><a href="http://www.vpser.net/build/lnmp-0-4.html" title="LNMP一键安装包 0.4发布">LNMP一键安装包 0.4发布</a></li><li><a href="http://www.vpser.net/build/lnmp-0-8.html" title="LNMP一键安装包 0.8发布">LNMP一键安装包 0.8发布</a></li><li><a href="http://www.vpser.net/build/lnmp-0-7-lnmpa.html" title="LNMP一键安装包 0.7发布 &#8211; 支持LNMPA">LNMP一键安装包 0.7发布 &#8211; 支持LNMPA</a></li><li><a href="http://www.vpser.net/manage/lnmp-upgrade-php-script.html" title="LNMP一键安装包 PHP自动升级脚本">LNMP一键安装包 PHP自动升级脚本</a></li><li><a href="http://www.vpser.net/build/lnmp-0-6.html" title="LNMP一键安装包 0.6 正式发布">LNMP一键安装包 0.6 正式发布</a></li><li><a href="http://www.vpser.net/build/nginx-lnmp-ipv6.html" title="BurstNet VPS上让Nginx(lnmp)支持IPv6">BurstNet VPS上让Nginx(lnmp)支持IPv6</a></li><li><a href="http://www.vpser.net/manage/lnmp-php-niginx-upload.html" title="LNMP一键安装包PHP和Niginx 文件上传大小限制问题解决方法">LNMP一键安装包PHP和Niginx 文件上传大小限制问题解决方法</a></li><li><a href="http://www.vpser.net/build/lnmp-0-5.html" title="LNMP一键安装包 0.5 正式发布">LNMP一键安装包 0.5 正式发布</a></li></ul><hr />
<p><small>© VPSer for <a href="http://www.vpser.net">VPS侦探</a>, 2011. |
<a href="http://www.vpser.net/build/lnmp-auto-upgrade-nginx-to-any-version.html">Permalink</a> |
<a href="http://www.vpser.net/build/lnmp-auto-upgrade-nginx-to-any-version.html#comments">17 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.vpser.net/build/lnmp-auto-upgrade-nginx-to-any-version.html&title=LNMP一键安装包 自动无缝升级Nginx至任意版本">del.icio.us</a>
<br/>
Post tags: <a href="http://www.vpser.net/tag/lnmp" rel="tag">LNMP</a>, <a href="http://www.vpser.net/tag/lnmp%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e5%8c%85" rel="tag">LNMP一键安装包</a>, <a href="http://www.vpser.net/tag/nginx" rel="tag">Nginx</a>, <a href="http://www.vpser.net/tag/%e5%8d%87%e7%ba%a7" rel="tag">升级</a>, <a href="http://www.vpser.net/tag/%e6%97%a0%e7%bc%9d%e5%8d%87%e7%ba%a7" rel="tag">无缝升级</a><br/>
<br/>
<img src="http://www.vpser.net/images/tuijian.gif"> <a href="http://www.vpser.net/usa-vps/">美国VPS推荐</a>  | <a href="http://shop63846532.taobao.com/">军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付</a> QQ：503228080
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.vpser.net/build/lnmp-auto-upgrade-nginx-to-any-version.html/feed</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>LNMP一键安装包 0.6 正式发布</title>
		<link>http://www.vpser.net/build/lnmp-0-6.html</link>
		<comments>http://www.vpser.net/build/lnmp-0-6.html#comments</comments>
		<pubDate>Tue, 08 Feb 2011 01:44:28 +0000</pubDate>
		<dc:creator>VPSer</dc:creator>
				<category><![CDATA[服务器环境搭建]]></category>
		<category><![CDATA[0.6]]></category>
		<category><![CDATA[LNMP]]></category>
		<category><![CDATA[LNMP一键安装包]]></category>
		<category><![CDATA[一键安装包]]></category>

		<guid isPermaLink="false">http://www.vpser.net/?p=1944</guid>
		<description><![CDATA[LNMP一键安装包是一个用Linux Shell编写的可以为CentOS/RadHat、Debian VPS(VDS)或独立主机安装LNMP(Nginx、MySQL、PHP、phpMyAdmin)生产环境的Shell程序。 LNMP 0.6是一个安装优化版，主要是处理脚本安装过程中的错误及添加Ubuntu专用安装脚本(安装成功率大大提升)，并未对安装程序的版本进行升级。 LNMP一键安装包 0.6已经在VPSYOU（感谢提供测试VPS）、DiaHosting（感谢提供测试VPS）、PhotonVPS、YardVPS、Linode、DirectSpace、ThrustVPS、瑞豪开源VPS、BuyVM、BurstNet等多家美国VPS的CentOS、Debian、Ubuntu的32位和64位系统上测试通过（CentOS/Debian 均为5.0以上版本，Ubuntu为9.04以上版本），并且新发布的Debian6.0也测试通过。 安装教程：http://lnmp.org/install.html LNMP相关软件版本： Nginx 0.7.67 MySQL 5.1.48 PHP 5.2.14 PHPMyAdmin 3.3.7 相关更新： 1、优化安装过程，修复多处安装错误处理，安装成功率大大提升； 2、添加ubuntu专用安装脚本ubuntu.sh； 3、修善pureftpd安装脚本，增加自动开机启动； 状态管理及相关管理页面： 添加虚拟主机：/root/vhost.sh LNMP状态管理： /root/lnmp {start&#124;stop&#124;reload&#124;restart&#124;kill&#124;status} PureFTPd状态管理 /root/pureftpd {start&#124;stop&#124;restart&#124;kill&#124;status} phpinfo : http://前面输入的域名或IP/phpinfo.php phpMyAdmin : http://前面输入的域名或IP/phpmyadmin/ 探针 : http://前面输入的域名或IP/p.php MySQL root密码：如果不输入直接回车为root，否则为你输入的密码。 LNMP相关目录： mysql :   /usr/local/mysql php :     /usr/local/php nginx :   /usr/local/nginx 网站目录 :     /home/wwwroot/ 技术支持： [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://lnmp.org/" target="_blank"><img title="lnmp一键安装包" src="http://lnmp.org/images/logo.gif" alt="" width="156" height="46" /></a></p>
<p>LNMP一键安装包是一个用Linux Shell编写的可以为CentOS/RadHat、Debian VPS(VDS)或独立主机安装LNMP(Nginx、MySQL、PHP、phpMyAdmin)生产环境的Shell程序。</p>
<p>LNMP 0.6是一个安装优化版，主要是处理脚本安装过程中的错误及添加Ubuntu专用安装脚本(安装成功率大大提升)，并未对安装程序的版本进行升级。</p>
<p>LNMP一键安装包 0.6已经在<a href="http://www.vpser.net/go/vpsyou" target="_blank">VPSYOU</a>（感谢提供测试VPS）、<a href="http://www.vpser.net/go/diahosting" target="_blank">DiaHosting</a>（感谢提供测试VPS）、<a href="http://www.vpser.net/go/photonvps" target="_blank">PhotonVPS</a>、<a href="http://www.vpser.net/go/yardvps" target="_blank">YardVPS</a>、<a href="http://www.vpser.net/go/linode" target="_blank">Linode</a>、<a href="http://www.vpser.net/go/directspace" target="_blank">DirectSpace</a>、<a href="http://www.vpser.net/go/thrust" target="_blank">ThrustVPS</a>、<a href="http://www.vpser.net/go/rashost" target="_blank">瑞豪开源VPS</a>、<a href="http://www.vpser.net/go/buyvm" target="_blank">BuyVM</a>、<a href="http://www.vpser.net/go/burst" target="_blank">BurstNet</a>等多家美国VPS的CentOS、Debian、Ubuntu的32位和64位系统上测试通过（CentOS/Debian 均为5.0以上版本，Ubuntu为9.04以上版本），并且新发布的Debian6.0也测试通过。</p>
<p>安装教程：<a href="http://lnmp.org/install.html" target="_blank">http://lnmp.org/install.html</a><span id="more-1944"></span></p>
<p>LNMP相关软件版本：</p>
<p>Nginx 0.7.67<br />
MySQL 5.1.48<br />
PHP 5.2.14<br />
PHPMyAdmin 3.3.7</p>
<p>相关更新：<br />
1、优化安装过程，修复多处安装错误处理，安装成功率大大提升；<br />
2、添加ubuntu专用安装脚本ubuntu.sh；<br />
3、修善pureftpd安装脚本，增加自动开机启动；</p>
<p>状态管理及相关管理页面：<br />
添加虚拟主机：/root/vhost.sh<br />
LNMP状态管理： /root/lnmp {start|stop|reload|restart|kill|status}<br />
PureFTPd状态管理 /root/pureftpd {start|stop|restart|kill|status}<br />
phpinfo : http://前面输入的域名或IP/phpinfo.php<br />
phpMyAdmin : http://前面输入的域名或IP/phpmyadmin/<br />
探针 : http://前面输入的域名或IP/p.php<br />
MySQL root密码：如果不输入直接回车为root，否则为你输入的密码。</p>
<p>LNMP相关目录：<br />
mysql :   /usr/local/mysql<br />
php :     /usr/local/php<br />
nginx :   /usr/local/nginx<br />
网站目录 :     /home/wwwroot/</p>
<p>技术支持：<br />
LNMP官网：<a href="http://www.lnmp.org/" target="_blank">http://www.lnmp.org/</a><br />
作者技术支持邮箱：<a href="mailto:www@lnmp.org">www@lnmp.org</a><br />
技术支持论坛：<a href="http://bbs.vpser.net/forum-25-1.html" target="_blank">http://bbs.vpser.net/forum-25-1.html</a> （注册需注明：LNMP，人工审核，请尽量通过论坛反馈，以便其他用户参考。）</p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li><a href="http://www.vpser.net/build/lnmp-0-8.html" title="LNMP一键安装包 0.8发布">LNMP一键安装包 0.8发布</a></li><li><a href="http://www.vpser.net/security/lnmp-remove-nginx-php-execute.html" title="lnmp去掉nginx上传目录的PHP执行权限">lnmp去掉nginx上传目录的PHP执行权限</a></li><li><a href="http://www.vpser.net/build/lnmp-0-5.html" title="LNMP一键安装包 0.5 正式发布">LNMP一键安装包 0.5 正式发布</a></li><li><a href="http://www.vpser.net/build/lnmp-0-4.html" title="LNMP一键安装包 0.4发布">LNMP一键安装包 0.4发布</a></li><li><a href="http://www.vpser.net/manage/lnmp-lnmpa-imagemagick-install-tutorial.html" title="LNMP/LNMPA一键安装包ImageMagick安装配置教程">LNMP/LNMPA一键安装包ImageMagick安装配置教程</a></li><li><a href="http://www.vpser.net/security/lnmp-php-pathinfo.html" title="请各位lnmp用户检查php pathinfo设置！重要！">请各位lnmp用户检查php pathinfo设置！重要！</a></li><li><a href="http://www.vpser.net/build/lnmp-0-7-lnmpa.html" title="LNMP一键安装包 0.7发布 &#8211; 支持LNMPA">LNMP一键安装包 0.7发布 &#8211; 支持LNMPA</a></li><li><a href="http://www.vpser.net/manage/lnmp-upgrade-php-script.html" title="LNMP一键安装包 PHP自动升级脚本">LNMP一键安装包 PHP自动升级脚本</a></li><li><a href="http://www.vpser.net/build/lnmp-auto-upgrade-nginx-to-any-version.html" title="LNMP一键安装包 自动无缝升级Nginx至任意版本">LNMP一键安装包 自动无缝升级Nginx至任意版本</a></li><li><a href="http://www.vpser.net/build/lnmp-faq.html" title="LNMP一键安装包常见问题错误及解决方法(不定期更新)">LNMP一键安装包常见问题错误及解决方法(不定期更新)</a></li></ul><hr />
<p><small>© VPSer for <a href="http://www.vpser.net">VPS侦探</a>, 2011. |
<a href="http://www.vpser.net/build/lnmp-0-6.html">Permalink</a> |
<a href="http://www.vpser.net/build/lnmp-0-6.html#comments">22 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.vpser.net/build/lnmp-0-6.html&title=LNMP一键安装包 0.6 正式发布">del.icio.us</a>
<br/>
Post tags: <a href="http://www.vpser.net/tag/0-6" rel="tag">0.6</a>, <a href="http://www.vpser.net/tag/lnmp" rel="tag">LNMP</a>, <a href="http://www.vpser.net/tag/lnmp%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e5%8c%85" rel="tag">LNMP一键安装包</a>, <a href="http://www.vpser.net/tag/%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e5%8c%85" rel="tag">一键安装包</a><br/>
<br/>
<img src="http://www.vpser.net/images/tuijian.gif"> <a href="http://www.vpser.net/usa-vps/">美国VPS推荐</a>  | <a href="http://shop63846532.taobao.com/">军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付</a> QQ：503228080
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.vpser.net/build/lnmp-0-6.html/feed</wfw:commentRss>
		<slash:comments>22</slash:comments>
		</item>
		<item>
		<title>LNMP一键安装包常见问题错误及解决方法(不定期更新)</title>
		<link>http://www.vpser.net/build/lnmp-faq.html</link>
		<comments>http://www.vpser.net/build/lnmp-faq.html#comments</comments>
		<pubDate>Sat, 15 Jan 2011 03:25:22 +0000</pubDate>
		<dc:creator>VPSer</dc:creator>
				<category><![CDATA[服务器环境搭建]]></category>
		<category><![CDATA[LNMP]]></category>
		<category><![CDATA[一键安装包]]></category>
		<category><![CDATA[解决方法]]></category>
		<category><![CDATA[错误]]></category>
		<category><![CDATA[问题]]></category>

		<guid isPermaLink="false">http://www.vpser.net/?p=1908</guid>
		<description><![CDATA[lnmp一键安装包安装及使用过程中的问题及解决发那个发基本上在lnmp论坛都能找到，提问前先使用论坛搜索相关关键词。下面整理一下问的比较多的问题的解决方法。 1、开始安装LNMP时，前面提示error: package httpd is not installed , error: package php is not installed ,error: package mysql is not installed 这个不是错误信息，这个是检查系统环境，将原系统中的php、apache、mysql删除，请不必在意这个问题。 2、开始安装LNMP时，停在 make[3]: Leaving directory `/root/lnmp0.4-full/mysql-5.1.44/mysql-test 不动。 答：MySQL编译测试mysql，这个地方会消耗的时间比较长，多等一下就可以了。 3、安装时经常掉线怎么办？ 请参照此教程：http://www.vpser.net/manage/run-screen-lnmp.html 4、安装完LNMP后出现502 Bad Gateway 解决方法：http://bbs.vpser.net/viewthread.php?tid=1144 5、安装完LNMP后，直接访问IP显示403 Forbidden 安装完成后域名/home/wwwroot/下面没有index文件，所以直接访问IP会显示403 Forbidden。 6、LNMP如何删除已添加的域名？ 解决方法：http://bbs.vpser.net/thread-1978-1-1.html 7、如何给php安装自己需要的模块？ 解决方法：http://www.vpser.net/manage/lnmp-php-install-ext.html 8、如何添加404错误页面？ 解决方法：http://bbs.vpser.net/thread-2175-1-1.html 7、安装完LNMP后，安装Pureftpd出现：configure: error: Your MySQL client libraries aren't properly installed 解决方法：http://bbs.vpser.net/thread-1367-1-7.html 8、安装完Pureftpd，用创建的ftp帐号链接显示530验证错误。 [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-1730" title="lnmp" src="http://www.vpser.net/uploads/2010/11/lnmp.gif" alt="" width="156" height="46" /></p>
<p><a href="http://lnmp.org" target="_blank">lnmp一键安装包</a>安装及使用过程中的问题及解决发那个发基本上在<a href="http://bbs.vpser.net/forum-25-1.html" target="_blank">lnmp论坛</a>都能找到，提问前先使用<a href="http://bbs.vpser.net/search.php" target="_blank">论坛搜索</a>相关关键词。下面整理一下问的比较多的问题的解决方法。</p>
<p><strong>1、开始安装LNMP时，前面提示error: package httpd is not installed , error: package php is not installed ,error: package mysql is not installed<br />
</strong>这个不是错误信息，这个是检查系统环境，将原系统中的php、apache、mysql删除，请不必在意这个问题。<span id="more-1908"></span></p>
<p><strong>2、开始安装LNMP时，停在 make[3]: Leaving directory `/root/lnmp0.4-full/mysql-5.1.44/mysql-test 不动。</strong><br />
答：MySQL编译测试mysql，这个地方会消耗的时间比较长，多等一下就可以了。</p>
<p><strong>3、安装时经常掉线怎么办？</strong><br />
请参照此教程：<a href="http://www.vpser.net/manage/run-screen-lnmp.html" target="_blank">http://www.vpser.net/manage/run-screen-lnmp.html</a><br />
<strong><br />
4、安装完LNMP后出现502 Bad Gateway</strong><br />
解决方法：<a href="http://bbs.vpser.net/viewthread.php?tid=1144" target="_blank">http://bbs.vpser.net/viewthread.php?tid=1144</a></p>
<p><strong>5、安装完LNMP后，直接访问IP显示403 Forbidden<br />
</strong>安装完成后域名/home/wwwroot/下面没有index文件，所以直接访问IP会显示403 Forbidden。</p>
<p><strong>6、LNMP如何删除已添加的域名？</strong><br />
解决方法：<a href="http://bbs.vpser.net/thread-1978-1-1.html" target="_blank">http://bbs.vpser.net/thread-1978-1-1.html</a></p>
<p><strong>7、如何给php安装自己需要的模块？</strong><br />
解决方法：<a href="http://www.vpser.net/manage/lnmp-php-install-ext.html" target="_blank">http://www.vpser.net/manage/lnmp-php-install-ext.html</a></p>
<p><strong>8、如何添加404错误页面？</strong><br />
解决方法：<a href="http://bbs.vpser.net/thread-2175-1-1.html" target="_blank">http://bbs.vpser.net/thread-2175-1-1.html</a></p>
<p><strong>7、安装完LNMP后，安装Pureftpd出现：configure: error: Your MySQL client libraries aren't properly installed</strong><br />
解决方法：<a href="http://bbs.vpser.net/thread-1367-1-7.html" target="_blank">http://bbs.vpser.net/thread-1367-1-7.html</a></p>
<p><strong>8、安装完Pureftpd，用创建的ftp帐号链接显示530验证错误。</strong><br />
解决方法：530 验证错误应该是mysql链接信息错误引起的，检查一下/usr/local/pureftpd/pureftpd-mysql.conf  和/home/wwwroot/ftp/config.php 中的mysql链接信息和mysql数据库中的信息是否一致。</p>
<p><strong>9、MySQL启动错误：[Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.</strong><br />
解决方法：<a href="http://bbs.vpser.net/thread-1844-1-1.html" target="_blank">http://bbs.vpser.net/thread-1844-1-1.html</a></p>
<p><strong>10、ZendOptimizer.so:connot restore segment prot after reloc: Permission denied 错误。</strong><br />
解决方法：<a href="http://bbs.vpser.net/thread-1143-1-1.html" target="_blank">http://bbs.vpser.net/thread-1143-1-1.html</a></p>
<p><strong>11、如何开启IMAP模块？</strong><br />
解决方法：<a href="http://bbs.vpser.net/thread-1150-1-1.html" target="_blank">http://bbs.vpser.net/thread-1150-1-1.html</a></p>
<p><strong>12、如何升级Nginx版本？</strong><br />
<strong></strong>解决方法：<a href="http://www.vpser.net/build/lnmp-auto-upgrade-nginx-to-any-version.html" target="_blank">http://www.vpser.net/build/lnmp-auto-upgrade-nginx-to-any-version.html</a></p>
<p>更多问题请到：<a href="http://bbs.vpser.net/forum-25-1.html">http://bbs.vpser.net/forum-25-1.html</a> 提问。</p>
<p>原创文章，谢绝转载！</p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li><a href="http://www.vpser.net/build/lnmp-0-8.html" title="LNMP一键安装包 0.8发布">LNMP一键安装包 0.8发布</a></li><li><a href="http://www.vpser.net/manage/lnmp-lnmpa-imagemagick-install-tutorial.html" title="LNMP/LNMPA一键安装包ImageMagick安装配置教程">LNMP/LNMPA一键安装包ImageMagick安装配置教程</a></li><li><a href="http://www.vpser.net/security/lnmp-remove-nginx-php-execute.html" title="lnmp去掉nginx上传目录的PHP执行权限">lnmp去掉nginx上传目录的PHP执行权限</a></li><li><a href="http://www.vpser.net/security/lnmp-php-pathinfo.html" title="请各位lnmp用户检查php pathinfo设置！重要！">请各位lnmp用户检查php pathinfo设置！重要！</a></li><li><a href="http://www.vpser.net/manage/lnmp-upgrade-php-script.html" title="LNMP一键安装包 PHP自动升级脚本">LNMP一键安装包 PHP自动升级脚本</a></li><li><a href="http://www.vpser.net/build/lnmp-0-6.html" title="LNMP一键安装包 0.6 正式发布">LNMP一键安装包 0.6 正式发布</a></li><li><a href="http://www.vpser.net/build/lnmp-0-5.html" title="LNMP一键安装包 0.5 正式发布">LNMP一键安装包 0.5 正式发布</a></li><li><a href="http://www.vpser.net/manage/vps-date-lnmp.html" title="VPS/服务器时间不准确造成的lnmp一键安装包安装失败问题">VPS/服务器时间不准确造成的lnmp一键安装包安装失败问题</a></li><li><a href="http://www.vpser.net/build/lnmp-0-4.html" title="LNMP一键安装包 0.4发布">LNMP一键安装包 0.4发布</a></li><li><a href="http://www.vpser.net/security/fix-lnmp-php-5-2-hash-table-collision-bug.html" title="LNMP PHP 5.2.* Hash漏洞修复脚本">LNMP PHP 5.2.* Hash漏洞修复脚本</a></li></ul><hr />
<p><small>© VPSer for <a href="http://www.vpser.net">VPS侦探</a>, 2011. |
<a href="http://www.vpser.net/build/lnmp-faq.html">Permalink</a> |
<a href="http://www.vpser.net/build/lnmp-faq.html#comments">15 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.vpser.net/build/lnmp-faq.html&title=LNMP一键安装包常见问题错误及解决方法(不定期更新)">del.icio.us</a>
<br/>
Post tags: <a href="http://www.vpser.net/tag/lnmp" rel="tag">LNMP</a>, <a href="http://www.vpser.net/tag/%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e5%8c%85" rel="tag">一键安装包</a>, <a href="http://www.vpser.net/tag/%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95" rel="tag">解决方法</a>, <a href="http://www.vpser.net/tag/%e9%94%99%e8%af%af" rel="tag">错误</a>, <a href="http://www.vpser.net/tag/%e9%97%ae%e9%a2%98" rel="tag">问题</a><br/>
<br/>
<img src="http://www.vpser.net/images/tuijian.gif"> <a href="http://www.vpser.net/usa-vps/">美国VPS推荐</a>  | <a href="http://shop63846532.taobao.com/">军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付</a> QQ：503228080
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.vpser.net/build/lnmp-faq.html/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>BurstNet VPS上让Nginx(lnmp)支持IPv6</title>
		<link>http://www.vpser.net/build/nginx-lnmp-ipv6.html</link>
		<comments>http://www.vpser.net/build/nginx-lnmp-ipv6.html#comments</comments>
		<pubDate>Mon, 13 Dec 2010 01:03:36 +0000</pubDate>
		<dc:creator>VPSer</dc:creator>
				<category><![CDATA[服务器环境搭建]]></category>
		<category><![CDATA[84VPS]]></category>
		<category><![CDATA[Burst]]></category>
		<category><![CDATA[BurstNet]]></category>
		<category><![CDATA[IPv6]]></category>
		<category><![CDATA[LNMP]]></category>
		<category><![CDATA[Nginx]]></category>

		<guid isPermaLink="false">http://www.vpser.net/?p=1792</guid>
		<description><![CDATA[IPv4地址将很快用完，IPv6普及也是必然之路，现在不少VPS服务商都已经开始IPv6的过渡，像BurstNet、BuyVM等都可以向客服发Ticket索要IPv6地址，He.net同时也提供IPv6 Tunnel间接的让VPS支持IPv6。 预备工作：向BurstNet客服索要IPv6地址，客服回复加上了就可以了，如果是其他的VPS服务商请先询问是否能加。 一、为Nginx添加IPv6模块 1、首先进入nginx源码的解压目录，下面以lnmp为例(12月10日之后下载的不用添加，默认已经支持IPv6)，比如：lnmp0.5/nginx-0.7.67/，如果忘记放在那个目录了，可以执行：find / -name "nginx-0.7.67"  -type d 2、找到目录之后，执行：cd /root/lnmp0.5/nginx-0.6.67/ 3、接下来给Nginx加上IPv6模块，执行：./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-ipv6 4、如果编译没有错误，然后执行：make 但不要make install。 5、编译完，在objs目录下有一个nginx执行文件，先备份下原来老的nginx文件，执行：mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.old ，再把新objs下的nginx cp到sbin下，执行：cp objs/nginx /usr/local/nginx/sbin/nginx 6、执行 /usr/local/nginx/sbin/nginx -t 测试下，显示没有问题。 7、再执行：make upgrade 8、执行：/usr/local/nginx/sbin/nginx -V 看一下，IPv6模块已经编译进去了。 二、Nginx启用IPv6 Nginx添加上IPv6后，需要执行：killall nginx 再执行：/usr/local/nginx/sbin/nginx 不能用平滑重启。 修改Nginx所有虚拟主机的配置，这个/usr/local/nginx/conf/nginx.conf 也要修改，将所有server {}里面的listen 后面全部加上IP，如下： server { listen       184.82.232.8:80; listen   [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.vpser.net/build/nginx-lnmp-ipv6.html" target="_blank"><img class="size-full wp-image-1793 alignnone" title="ipv6-logo" src="http://www.vpser.net/uploads/2010/12/ipv6-logo.png" alt="" width="217" height="92" /></a></p>
<p>IPv4地址将很快用完，<a href="http://www.vpser.net/build/nginx-lnmp-ipv6.html" target="_blank">IPv6</a>普及也是必然之路，现在不少VPS服务商都已经开始IPv6的过渡，像<a href="http://www.vpser.net/go/burst" target="_blank">BurstNet</a>、<a href="http://www.vpser.net/go/buyvm" target="_blank">BuyVM</a>等都可以向客服发Ticket索要IPv6地址，He.net同时也提供<a href="http://tunnelbroker.net/" target="_blank">IPv6 Tunnel</a>间接的让VPS支持IPv6。</p>
<p><strong>预备工作：</strong>向<a href="http://www.vpser.net/go/burst" target="_blank">BurstNet</a>客服索要IPv6地址，客服回复加上了就可以了，如果是其他的VPS服务商请先询问是否能加。</p>
<h2>一、为Nginx添加IPv6模块</h2>
<p>1、首先进入nginx源码的解压目录，下面以<a href="http://lnmp.org" target="_blank">lnmp</a>为例(12月10日之后下载的不用添加，默认已经支持IPv6)，<span id="more-1792"></span>比如：lnmp0.5/nginx-0.7.67/，如果忘记放在那个目录了，可以执行：<strong>find / -name "nginx-0.7.67"  -type d</strong></p>
<p>2、找到目录之后，执行：<strong>cd /root/lnmp0.5/nginx-0.6.67/</strong></p>
<p>3、接下来给Nginx加上IPv6模块，执行：<strong>./configure --user=www --group=www --prefix=/usr/local/nginx --with-http_stub_status_module --with-http_ssl_module --with-ipv6</strong></p>
<p>4、如果编译没有错误，然后执行：<strong>make</strong> 但<strong><span style="color: #800000;">不要make install。</span></strong></p>
<p>5、编译完，在objs目录下有一个nginx执行文件，先备份下原来老的nginx文件，执行：<strong>mv /usr/local/nginx/sbin/nginx /usr/local/nginx/sbin/nginx.old</strong> ，再把新objs下的nginx cp到sbin下，执行：<strong>cp objs/nginx /usr/local/nginx/sbin/nginx</strong></p>
<p>6、执行<strong> /usr/local/nginx/sbin/nginx -t </strong>测试下，显示没有问题。</p>
<p>7、再执行：<strong>make upgrade</strong></p>
<p>8、执行：<strong>/usr/local/nginx/sbin/nginx -V</strong> 看一下，IPv6模块已经编译进去了。</p>
<h2>二、Nginx启用IPv6</h2>
<p>Nginx添加上IPv6后，需要执行：<strong>killall nginx</strong> 再执行：<strong>/usr/local/nginx/sbin/nginx</strong> 不能用平滑重启。</p>
<p>修改Nginx所有虚拟主机的配置，这个/usr/local/nginx/conf/nginx.conf 也要修改，将所有server {}里面的listen 后面全部加上IP，如下：</p>
<blockquote>
<div id="_mcePaste">server</div>
<div id="_mcePaste">{</div>
<div id="_mcePaste"><strong>listen       184.82.232.8:80;</strong></div>
<div id="_mcePaste"><strong>listen       [2607:f878:3:2:0:300:2004:10]:80;</strong></div>
<div id="_mcePaste"><strong>listen       [2607:f878:3:2:0:300:2004:11]:80;</strong></div>
<div id="_mcePaste">server_name burst-la.vpser.net;</div>
<div id="_mcePaste">index index.html index.htm index.php;</div>
<div id="_mcePaste">root  /home/wwwroot;</div>
<p>....省略部分配置</p>
<p>}</p></blockquote>
<p>要注意IPv6地址需要用[]括起来，如果客服已经给加上IPv6地址了，而你不知道可以执行：<strong>ifconfig</strong> 命令，如下图：</p>
<p><a href="http://www.vpser.net/uploads/2010/12/ifconfig.jpg"><img class="size-full wp-image-1795 alignnone" title="ifconfig" src="http://www.vpser.net/uploads/2010/12/ifconfig.jpg" alt="" width="725" height="384" /></a></p>
<p>按上面要求修改好后，执行：<strong>/usr/local/nginx/sbin/nginx -t</strong> 查看是否有错误，没有错误可以执行：<strong>killall nginx</strong> ，再执行：<strong>/usr/local/nginx/sbin/nginx</strong> 启动即可。</p>
<p>打开浏览器输入：<a href="http://[2607:f878:3:2:0:300:2004:10]/" target="_blank">http://[2607:f878:3:2:0:300:2004:10]/</a> 就可以访问了。</p>
<p><strong>PS：你的电脑需要已经支持IPv6，且连入IPv6，可以使用<a href="http://www.6fei.com.cn/ipv6-world/go6-6fei.html" target="_blank">六飞</a>、<a href="http://gogonet.gogo6.com/page/freenet6-ipv6-services">freenet6</a>之类的现实支持IPv6。</strong></p>
<p>如果在安装过程中有问题，欢迎再本文留言或者到<a href="http://bbs.vpser.net" target="_blank">vps论坛</a>相应版块发帖。</p>
<p>本文原创，谢绝转载。</p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li><a href="http://www.vpser.net/coupons/burstnet-2011-december-yearend20-coupons.html" title="BurstNet 2011年12月年末Windows和Linux VPS 8折优惠码">BurstNet 2011年12月年末Windows和Linux VPS 8折优惠码</a></li><li><a href="http://www.vpser.net/coupons/burstnet-2011-june-windows-linux-vps-coupons.html" title="BurstNet 2011年6月Windows和Linux VPS优惠码">BurstNet 2011年6月Windows和Linux VPS优惠码</a></li><li><a href="http://www.vpser.net/coupons/burstnet-2011-may-memorial-day-coupons.html" title="BurstNet 2011年5月阵亡将士纪念日 8折优惠码">BurstNet 2011年5月阵亡将士纪念日 8折优惠码</a></li><li><a href="http://www.vpser.net/coupons/burstnet-2011-february-lavps25.html" title="BurstNet 西海岸洛杉矶机房VPS 75折优惠码">BurstNet 西海岸洛杉矶机房VPS 75折优惠码</a></li><li><a href="http://www.vpser.net/coupons/burstnet-openvz-512m-lowendlavps.html" title="BurstNet OpenVZ 512M – $4.46/月优惠码">BurstNet OpenVZ 512M – $4.46/月优惠码</a></li><li><a href="http://www.vpser.net/usa-vps/burst-vps-los-angeles-dc-test.html" title="BurstNet VPS西海岸洛杉矶机房测试">BurstNet VPS西海岸洛杉矶机房测试</a></li><li><a href="http://www.vpser.net/coupons/burst-net-vps-miami-florida-first-month-free-offer.html" title="Burst.net 美国佛罗里达迈阿密机房VPS首月免费">Burst.net 美国佛罗里达迈阿密机房VPS首月免费</a></li><li><a href="http://www.vpser.net/security/lnmp-remove-nginx-php-execute.html" title="lnmp去掉nginx上传目录的PHP执行权限">lnmp去掉nginx上传目录的PHP执行权限</a></li><li><a href="http://www.vpser.net/build/lnmp-auto-upgrade-nginx-to-any-version.html" title="LNMP一键安装包 自动无缝升级Nginx至任意版本">LNMP一键安装包 自动无缝升级Nginx至任意版本</a></li><li><a href="http://www.vpser.net/manage/lnmp-awstats-nginx-logs.html" title="LNMP使用Awstats分析Nginx日志[转载]">LNMP使用Awstats分析Nginx日志[转载]</a></li></ul><hr />
<p><small>© VPSer for <a href="http://www.vpser.net">VPS侦探</a>, 2010. |
<a href="http://www.vpser.net/build/nginx-lnmp-ipv6.html">Permalink</a> |
<a href="http://www.vpser.net/build/nginx-lnmp-ipv6.html#comments">16 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.vpser.net/build/nginx-lnmp-ipv6.html&title=BurstNet VPS上让Nginx(lnmp)支持IPv6">del.icio.us</a>
<br/>
Post tags: <a href="http://www.vpser.net/tag/84vps" rel="tag">84VPS</a>, <a href="http://www.vpser.net/tag/burst" rel="tag">Burst</a>, <a href="http://www.vpser.net/tag/burstnet" rel="tag">BurstNet</a>, <a href="http://www.vpser.net/tag/ipv6" rel="tag">IPv6</a>, <a href="http://www.vpser.net/tag/lnmp" rel="tag">LNMP</a>, <a href="http://www.vpser.net/tag/nginx" rel="tag">Nginx</a><br/>
<br/>
<img src="http://www.vpser.net/images/tuijian.gif"> <a href="http://www.vpser.net/usa-vps/">美国VPS推荐</a>  | <a href="http://shop63846532.taobao.com/">军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付</a> QQ：503228080
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.vpser.net/build/nginx-lnmp-ipv6.html/feed</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>LNMP一键安装包 0.5 正式发布</title>
		<link>http://www.vpser.net/build/lnmp-0-5.html</link>
		<comments>http://www.vpser.net/build/lnmp-0-5.html#comments</comments>
		<pubDate>Sat, 09 Oct 2010 13:39:25 +0000</pubDate>
		<dc:creator>VPSer</dc:creator>
				<category><![CDATA[服务器环境搭建]]></category>
		<category><![CDATA[0.5]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[LNMP]]></category>
		<category><![CDATA[LNMP一键安装包]]></category>
		<category><![CDATA[一键安装包]]></category>

		<guid isPermaLink="false">http://www.vpser.net/?p=1598</guid>
		<description><![CDATA[LNMP一键安装包是一个用Linux Shell编写的可以为CentOS/RadHat、Debian VPS(VDS)或独立主机安装LNMP(Nginx、MySQL、PHP、phpMyAdmin)生产环境的Shell程序。 主要针对LNMP安装脚本进行了优化，减少因为环境差异引起的安装错误，其次对Nginx、PHP、MySQL等主要程序进行了版本升级。同时优化了eAccelerator和增加ionCube安装程序，Zend Optimizer、eAccelerator和、ionCube可以完美共存。 LNMP一键安装包 0.5已经在DiaHosting、BuyVM、Linode等几家美国VPS的CentOS、Debian的32位和64位系统上测试通过。 安装方法：http://lnmp.org/install.html LNMP相关软件版本： Nginx 0.7.67 MySQL 5.1.48 PHP 5.2.14 PHPMyAdmin 3.3.7 其他更新： 1、为安全将Nginx日志移动到/home/wwwlogs/下面； 2、更改32位64位判别方式； 3、增加系统时间调整，防止时间错误造成编译出错； 4、优化eAccelerator安装程序； 5、增加ionCube安装程序； 6、虚拟主机添加可以直接运行：/root/vhost.sh 。 7、修正/root/lnmp状态判断错误。 LNMP相关目录： mysql :   /usr/local/mysql php :     /usr/local/php nginx :   /usr/local/nginx 网站目录 :     /home/wwwroot/ 技术支持： LNMP官网：http://www.lnmp.org/ 作者技术支持邮箱：www@lnmp.org 技术支持论坛：http://bbs.vpser.net/forum-25-1.html （注册需注明：LNMP，人工审核，请尽量通过论坛反馈，以便其他用户参考。） 相关文章：LNMP一键安装包 0.8发布lnmp去掉nginx上传目录的PHP执行权限LNMP一键安装包 0.6 正式发布LNMP一键安装包 0.4发布LNMP/LNMPA一键安装包ImageMagick安装配置教程请各位lnmp用户检查php pathinfo设置！重要！LNMP一键安装包 0.7发布 &#8211; 支持LNMPALNMP一键安装包 PHP自动升级脚本LNMP一键安装包 自动无缝升级Nginx至任意版本LNMP一键安装包常见问题错误及解决方法(不定期更新) [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://lnmp.org/" target="_blank"><img class="alignnone" title="lnmp一键安装包" src="http://lnmp.org/images/logo.gif" alt="" width="156" height="46" /></a></p>
<p>LNMP一键安装包是一个用Linux Shell编写的可以为CentOS/RadHat、Debian VPS(VDS)或独立主机安装LNMP(Nginx、MySQL、PHP、phpMyAdmin)生产环境的Shell程序。</p>
<p>主要针对LNMP安装脚本进行了优化，减少因为环境差异引起的安装错误，其次对Nginx、PHP、MySQL等主要程序进行了版本升级。同时优化了eAccelerator和增加ionCube安装程序，Zend Optimizer、eAccelerator和、ionCube可以完美共存。</p>
<p>LNMP一键安装包 0.5已经在<a href="http://www.vpser.net/go/diahosting" target="_blank">DiaHosting</a>、<a href="http://www.vpser.net/go/buyvm" target="_blank">BuyVM</a>、<a href="http://www.vpser.net/go/linode" target="_blank">Linode</a>等几家美国VPS的CentOS、Debian的32位和64位系统上测试通过。<span id="more-1598"></span></p>
<p>安装方法：<a href="http://lnmp.org/install.html" target="_blank">http://lnmp.org/install.html</a></p>
<p>LNMP相关软件版本：</p>
<p>Nginx 0.7.67<br />
MySQL 5.1.48<br />
PHP 5.2.14<br />
PHPMyAdmin 3.3.7</p>
<p>其他更新：<br />
1、为安全将Nginx日志移动到/home/wwwlogs/下面；<br />
2、更改32位64位判别方式；<br />
3、增加系统时间调整，防止时间错误造成编译出错；<br />
4、优化eAccelerator安装程序；<br />
5、增加ionCube安装程序；<br />
6、虚拟主机添加可以直接运行：/root/vhost.sh 。<br />
7、修正/root/lnmp状态判断错误。</p>
<p>LNMP相关目录：<br />
mysql :   /usr/local/mysql<br />
php :     /usr/local/php<br />
nginx :   /usr/local/nginx<br />
网站目录 :     /home/wwwroot/</p>
<p>技术支持：</p>
<p>LNMP官网：<a href="http://www.lnmp.org/" target="_blank">http://www.lnmp.org/</a><br />
作者技术支持邮箱：<a href="mailto:www@lnmp.org">www@lnmp.org</a><br />
技术支持论坛：<a href="http://bbs.vpser.net/forum-25-1.html" target="_blank">http://bbs.vpser.net/forum-25-1.html</a> （注册需注明：LNMP，人工审核，请尽量通过论坛反馈，以便其他用户参考。）</p>
<h2  class="related_post_title">相关文章：</h2><ul class="related_post"><li><a href="http://www.vpser.net/build/lnmp-0-8.html" title="LNMP一键安装包 0.8发布">LNMP一键安装包 0.8发布</a></li><li><a href="http://www.vpser.net/security/lnmp-remove-nginx-php-execute.html" title="lnmp去掉nginx上传目录的PHP执行权限">lnmp去掉nginx上传目录的PHP执行权限</a></li><li><a href="http://www.vpser.net/build/lnmp-0-6.html" title="LNMP一键安装包 0.6 正式发布">LNMP一键安装包 0.6 正式发布</a></li><li><a href="http://www.vpser.net/build/lnmp-0-4.html" title="LNMP一键安装包 0.4发布">LNMP一键安装包 0.4发布</a></li><li><a href="http://www.vpser.net/manage/lnmp-lnmpa-imagemagick-install-tutorial.html" title="LNMP/LNMPA一键安装包ImageMagick安装配置教程">LNMP/LNMPA一键安装包ImageMagick安装配置教程</a></li><li><a href="http://www.vpser.net/security/lnmp-php-pathinfo.html" title="请各位lnmp用户检查php pathinfo设置！重要！">请各位lnmp用户检查php pathinfo设置！重要！</a></li><li><a href="http://www.vpser.net/build/lnmp-0-7-lnmpa.html" title="LNMP一键安装包 0.7发布 &#8211; 支持LNMPA">LNMP一键安装包 0.7发布 &#8211; 支持LNMPA</a></li><li><a href="http://www.vpser.net/manage/lnmp-upgrade-php-script.html" title="LNMP一键安装包 PHP自动升级脚本">LNMP一键安装包 PHP自动升级脚本</a></li><li><a href="http://www.vpser.net/build/lnmp-auto-upgrade-nginx-to-any-version.html" title="LNMP一键安装包 自动无缝升级Nginx至任意版本">LNMP一键安装包 自动无缝升级Nginx至任意版本</a></li><li><a href="http://www.vpser.net/build/lnmp-faq.html" title="LNMP一键安装包常见问题错误及解决方法(不定期更新)">LNMP一键安装包常见问题错误及解决方法(不定期更新)</a></li></ul><hr />
<p><small>© VPSer for <a href="http://www.vpser.net">VPS侦探</a>, 2010. |
<a href="http://www.vpser.net/build/lnmp-0-5.html">Permalink</a> |
<a href="http://www.vpser.net/build/lnmp-0-5.html#comments">27 comments</a> |
Add to
<a href="http://del.icio.us/post?url=http://www.vpser.net/build/lnmp-0-5.html&title=LNMP一键安装包 0.5 正式发布">del.icio.us</a>
<br/>
Post tags: <a href="http://www.vpser.net/tag/0-5" rel="tag">0.5</a>, <a href="http://www.vpser.net/tag/centos" rel="tag">CentOS</a>, <a href="http://www.vpser.net/tag/debian" rel="tag">Debian</a>, <a href="http://www.vpser.net/tag/lnmp" rel="tag">LNMP</a>, <a href="http://www.vpser.net/tag/lnmp%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e5%8c%85" rel="tag">LNMP一键安装包</a>, <a href="http://www.vpser.net/tag/%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85%e5%8c%85" rel="tag">一键安装包</a><br/>
<br/>
<img src="http://www.vpser.net/images/tuijian.gif"> <a href="http://www.vpser.net/usa-vps/">美国VPS推荐</a>  | <a href="http://shop63846532.taobao.com/">军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付</a> QQ：503228080
</small></p>]]></content:encoded>
			<wfw:commentRss>http://www.vpser.net/build/lnmp-0-5.html/feed</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
	</channel>
</rss>

