<?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>走点路&#187; LNMP</title> <atom:link href="http://zou.lu/tags/lnmp/feed/" rel="self" type="application/rss+xml" /><link>http://zou.lu</link> <description>走点路，走自己牛逼的路，让那些个傻逼去说吧！</description> <lastBuildDate>Fri, 06 Jan 2012 13:28:45 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>VPS 快速安装 Linux+Nginx+MySQL+PHP 环境</title><link>http://zou.lu/linux-nginx-mysql-php-for-vps/</link> <comments>http://zou.lu/linux-nginx-mysql-php-for-vps/#comments</comments> <pubDate>Sat, 11 Jul 2009 15:59:18 +0000</pubDate> <dc:creator>Showfom</dc:creator> <category><![CDATA[Web 2.0]]></category> <category><![CDATA[实用工具]]></category> <category><![CDATA[LNMP]]></category> <category><![CDATA[Nginx]]></category> <category><![CDATA[VPS]]></category><guid isPermaLink="false">http://zou.lu/?p=75</guid> <description><![CDATA[再次出手购买了VPS，这次买的是性价比不错的PhotonVPS的Xen Plan，下面介绍一下快速配置LNMP（Linux+Nginx+MySQL+PHP）环境的方法（一般不出意外只要20分钟就可以搞定）。 首先当然得购买一款VPS（废话），推荐国内的 Rashost，国外的 Diavps（是一群中国人在做），PhotonVPS，Rashost 和 Diavps 可以用支付宝支付，PhotonVPS 可以用 Paypal 支付，一般支付以后最多等一两个钟头就可以收到邮件，一个VPS的IP，一个root的密码。 （PS：购买尽量选择CentOS 5.3 32bit ，别买64位，占用内存很大的） 接着，下载 Putty ，运行 putty.exe ，输入你的 IP 和用户名（root）。 然后开始安装著名的 LNMP（ Linux+Nginx+MySQL+PHP ）环境，接着，用猫猫童鞋的修改版LNMP一键安装套装，我简述一下方法： 1.首先登陆VPS,用SSH登陆. 2.安装LNMP,进入一个目录: cd /usr/local/src 然后就下载LNMP: wget http://imcat.in/LNMP.zip 解压缩 unzip LNMP.zip 有些VPS安装后没有unzip这个命令,那么运行 yum install unzip 进入该目录 cd LNMP 给脚本添加执行权限:chmod +x down.sh install.sh opt.sh startup.sh 下载安装所需的源代码文件: ./down.sh 开始安装: ./install.sh (安装过程会询问要默认绑定的域名，然后会要求确认输入y即可) 安装完后,请运行:passwd [...]]]></description> <content:encoded><![CDATA[<p>再次出手购买了VPS，这次买的是性价比不错的<a href="http://www.photonvps.com/billing/aff.php?aff=013">PhotonVPS</a>的Xen Plan，下面介绍一下快速配置LNMP（Linux+Nginx+MySQL+PHP）环境的方法（一般不出意外只要20分钟就可以搞定）。<br /> <span id="more-75"></span></p><p>首先当然得购买一款VPS（废话），推荐国内的 <a href="http://rashost.com/client/aff.php?aff=029">Rashost</a>，国外的 <a href="http://www.diavps.cn/">Diavps</a>（是一群中国人在做），<a href="http://www.photonvps.com/billing/aff.php?aff=013">PhotonVPS</a>，Rashost 和 Diavps 可以用支付宝支付，PhotonVPS 可以用 Paypal 支付，一般支付以后最多等一两个钟头就可以收到邮件，一个VPS的IP，一个root的密码。<br /> （PS：购买尽量选择CentOS 5.3 32bit ，别买64位，占用内存很大的）</p><p>接着，下载 <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">Putty</a> ，运行 putty.exe ，输入你的 IP 和用户名（root）。</p><p>然后开始安装著名的 LNMP（ Linux+Nginx+MySQL+PHP ）环境，接着，用猫猫童鞋的<a href="http://imcat.in/the-latest-linux-under-nginx-mysql-php-memcache-vsftpd-one-click-installation-package/comment-page-1/#comment-1611">修改版LNMP一键安装套装</a>，我简述一下方法：</p><p>1.首先登陆VPS,用SSH登陆.</p><p>2.安装LNMP,进入一个目录: <strong>cd /usr/local/src</strong></p><p>然后就下载LNMP: <strong>wget http://imcat.in/LNMP.zip</strong></p><p>解压缩<strong> unzip LNMP.zip</strong></p><p>有些VPS安装后没有unzip这个命令,那么运行 <strong>yum install unzip</strong></p><p>进入该目录 <strong>cd LNMP</strong></p><p>给脚本添加执行权限:<strong>chmod +x down.sh install.sh opt.sh startup.sh</strong></p><p>下载安装所需的源代码文件: <strong>./down.sh</strong></p><p>开始安装: <strong>./install.sh</strong></p><p><strong>(安装过程会询问要默认绑定的域名，然后会要求确认输入y即可)<br /> </strong></p><p>安装完后,请运行:<strong>passwd www</strong></p><p>为 www 用户设置一个密码.这个用户和密码就是ftp的用户名和密码</p><p>修改您的 MySQL 的 root 密码<br /> 使用命令：<strong>mysqladmin -u root -p password mypasswd</strong> //mypasswd为自己的密码<br /> 如果提示没有mysqladmin命令.请运行:<strong>yum install mysql</strong></p><p>这样你就可以上传你的网站了.</p><p>程序安装路径：<br /> MySQL : /usr/local/mysql<br /> PHP : /usr/local/php<br /> Nginx : /usr/local/nginx<br /> Web目录 /web/www</p><p>这个套装没有安装熟悉的 PhpMyAdmin ，接下来就下载一个 PhpMyAdmin：</p><p>返回主目录 <strong>cd /</strong><br /> 进入网站所在目录 <strong>cd web/www</strong><br /> 下载phpmyadmin <strong>wget <a rel="nofollow" href="http://downloads.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-3.2.0.1-all-languages.zip?use_mirror=ncu">http://downloads.sourceforge.net/sourceforge/phpmyadmin/phpMyAdmin-3.2.0.1-all-languages.zip?use_mirror=ncu</a></strong><br /> 解压 <strong>unzip phpMyAdmin-3.2.0.1-all-languages.zip</strong></p><p>然后在浏览器输入 <strong>http://你的ip/phpMyAdmin-3.2.0.1-all-languages/ </strong>即可进行数据库管理操作，切记删除除了root以外的几个用户（在右上角的权限上，没密码的几个傻蛋用户全部删除）</p><p>接下来安装 WordPress ，Nginx 配置用我昨天给的<a href="http://zou.lu/wordpress-permalink/">那份</a>，OK，一个没有优化过的最简单的LNMP环境就配置好了，运行一下 <strong>http://你的ip/phpinfo.php</strong> 成功的话就说明OK鸟~</p><h2  class="related_post_title">相关文章</h2><ul class="related_post"><li><a href="http://zou.lu/move-to-vps/" title="博客顺利搬家至 VPS">博客顺利搬家至 VPS</a> (54)</li><li><a href="http://zou.lu/xehost-xmas-50off/" title="XeHost 圣诞节期间推出达拉斯机房终身5折优惠">XeHost 圣诞节期间推出达拉斯机房终身5折优惠</a> (7)</li><li><a href="http://zou.lu/how-to-choose-vps-hosting/" title="如何挑选最适合自己的美国VPS主机商">如何挑选最适合自己的美国VPS主机商</a> (183)</li><li><a href="http://zou.lu/nginx-https-ssl-module/" title="Nginx 配置 SSL 证书 + HTTPS 站点小记">Nginx 配置 SSL 证书 + HTTPS 站点小记</a> (78)</li><li><a href="http://zou.lu/install-godaddy-ssl-https-on-nginx/" title="Godaddy SSL证书以及 Nginx 配置HTTPS方法">Godaddy SSL证书以及 Nginx 配置HTTPS方法</a> (77)</li><li><a href="http://zou.lu/end-to-start/" title="暑假结束，事业开始">暑假结束，事业开始</a> (111)</li></ul><hr /><div style="padding: 5px 10px; background: rgb(243, 245, 252) none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous;"><p>© from <a href="//zou.lu/?from=feed">走点路博客</a>, 2009/07/11. | <a href="http://zou.lu/linux-nginx-mysql-php-for-vps/">VPS 快速安装 Linux+Nginx+MySQL+PHP 环境</a> | <a href="http://zou.lu/linux-nginx-mysql-php-for-vps/#comments">64 只留言鸟</a> <br /> Tags： <a href="http://zou.lu/tags/lnmp/" rel="tag">LNMP</a>, <a href="http://zou.lu/tags/nginx/" rel="tag">Nginx</a>, <a href="http://zou.lu/tags/vps/" rel="tag">VPS</a> | <a href="//zou.lu/?p=75">Link</a></p></div>]]></content:encoded> <wfw:commentRss>http://zou.lu/linux-nginx-mysql-php-for-vps/feed/</wfw:commentRss> <slash:comments>64</slash:comments> </item> </channel> </rss>
