<?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>CQ-CSER &#187; VPS</title>
	<atom:link href="http://cq-cser.cn/tag/vps/feed/" rel="self" type="application/rss+xml" />
	<link>http://cq-cser.cn</link>
	<description>计算机爱好者</description>
	<lastBuildDate>Wed, 02 May 2012 10:01:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>{转}VPS上安装LAMP步骤</title>
		<link>http://cq-cser.cn/2009/12/%e8%bd%acvps%e4%b8%8a%e5%ae%89%e8%a3%85lamp%e6%ad%a5%e9%aa%a4/</link>
		<comments>http://cq-cser.cn/2009/12/%e8%bd%acvps%e4%b8%8a%e5%ae%89%e8%a3%85lamp%e6%ad%a5%e9%aa%a4/#comments</comments>
		<pubDate>Thu, 24 Dec 2009 15:26:29 +0000</pubDate>
		<dc:creator>cq</dc:creator>
				<category><![CDATA[其他]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://cq-cser.cn/?p=483</guid>
		<description><![CDATA[最近在rashost买了个VPS，128M内存，8G硬盘，CentOS5操作系统，系统初始化后，内存使用情况如下：                     total       used       free     shared    buffers     cached Mem:        131232      62872      68360          0      11384      37688 硬盘使用情况如下： Filesystem         [...]


Related posts:<ol><li><a href='http://cq-cser.cn/2009/11/vps-%e5%bf%ab%e9%80%9f%e5%ae%89%e8%a3%85-linuxnginxmysqlphp-%e7%8e%af%e5%a2%83%e3%80%90%e8%bd%ac%e3%80%91/' rel='bookmark' title='Permanent Link: VPS 快速安装 Linux+Nginx+MySQL+PHP 环境【转】'>VPS 快速安装 Linux+Nginx+MySQL+PHP 环境【转】</a></li>
<li><a href='http://cq-cser.cn/2010/05/%e5%9c%a8mac-os-x%e4%b8%ad%e8%bf%90%e8%a1%8capache-%ef%bc%8b-php-%ef%bc%8b-mysql/' rel='bookmark' title='Permanent Link: 在Mac OS X中运行Apache ＋ PHP ＋ MySQL'>在Mac OS X中运行Apache ＋ PHP ＋ MySQL</a></li>
<li><a href='http://cq-cser.cn/2011/01/xampp-mysql-1067/' rel='bookmark' title='Permanent Link: xampp-mysql-1067'>xampp-mysql-1067</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div>
<div>最近在rashost买了个VPS，128M内存，8G硬盘，CentOS5操作系统，系统初始化后，内存使用情况如下：</div>
<div>                    total       used       free     shared    buffers     cached</div>
<div>Mem:        131232      62872      68360          0      11384      37688</div>
<div>硬盘使用情况如下：<span id="more-483"></span></div>
<div>Filesystem           1K-blocks      Used Available Use% Mounted on</div>
<div>/dev/sda1              8256952    626932   7210592   8% /</div>
<div>好可怜的内存，为此，只好尽量少在上面装东西，什么ftp、什么pptp都省得装了。只在上面装了LAMP，分享安装步骤如下。</div>
<div><strong>先安装基本编译程序</strong></div>
<div>yum install gcc</div>
<div>yum install make</div>
<div><strong>下载LAMP需要用到的包</strong></div>
<div>MySQL-client-community-5.1.41-0.rhel5.i386.rpm</div>
<div>MySQL-devel-community-5.1.41-0.rhel5.i386.rpm</div>
<div>MySQL-server-community-5.1.41-0.rhel5.i386.rpm</div>
<div>gd-2.0.35.tar.gz</div>
<div>httpd-2.2.14.tar.gz</div>
<div>libpng-1.2.41.tar.gz</div>
<div>libxml2-2.7.6.tar.gz</div>
<div>php-5.3.1.tar.gz</div>
<div>zlib-1.2.3.tar.gz</div>
<div>由于编译mysql时不大顺利，需要其他包，故没有用源码编译安装，用的是rpm安装安</div>
<div><strong>安装Apache</strong></div>
<div>./configure &#8211;prefix=/usr/local/httpd &#8211;enable-module=so &#8211;enable-rewrite</div>
<div>make</div>
<div>make install</div>
<div>加入启动项，使其随机启动（由于没有安装chkconfig，所以没有用添加服务的方式）</div>
<div>在/etc/rc.d/rc.local中增加启动apache的命令，例如：/usr/local/httpd/bin/apachectl -k start</div>
<div><strong>安装PHP基本支持库</strong></div>
<div>libxml2</div>
<div>zlib</div>
<div>ligpng</div>
<div>gd</div>
<div>基本都是按如下流程编译安装，但注意安装的顺序：</div>
<div>cd source-path</div>
<div>./configure</div>
<div>make</div>
<div>make install</div>
<div><strong>MySQL rpm包安装</strong></div>
<div>rpm -ivh MySQL-server-community-5.1.41-0.rhel5.i386.rpm<span style="white-space: pre;"> </span>#服务端</div>
<div>rpm -ivh MySQL-client-community-5.1.41-0.rhel5.i386.rpm<span style="white-space: pre;"> </span>#客户端</div>
<div>rpm -ivh MySQL-devel-community-5.1.41-0.rhel5.i386.rpm<span style="white-space: pre;"> </span>#PHP编译时需要用到</div>
<div>复制配置文件</div>
<div>cp /usr/share/mysql/my-medium.cnf /etc/my.cnf</div>
<div><strong>编译安装PHP5</strong></div>
<div>./configure &#8211;prefix=/usr/local/php &#8211;with-apxs2=/usr/local/httpd/bin/apxs &#8211;with-gd=/usr/local  &#8211;with-mysql &#8211;with-libxml-dir &#8211;with-png-dir &#8211;with-pear=/usr/local/php/pear &#8211;enable-mbstring &#8211;with-config-file-path=/usr/local/php/ &#8211;disable-debug &#8211;enable-safe-mode</div>
<div>make</div>
<div>make install</div>
<div>cp php.ini-production /usr/local/php/php.ini<span style="white-space: pre;"> </span>#复制php配置文件到设定的目录</div>
<div>如果不需要支持pear，可以去掉 &#8211;with-pear=/usr/local/php/pear </div>
<div><strong>接下来就可以配置LAMP了，想关配置文件如下</strong></div>
<div>PHP配置文件：/usr/local/php/php.ini</div>
<div>Apache主配置文件：/usr/local/httpd/conf/httpd.conf</div>
<div>MySQL配置文件：/etc/my.cnf</div>
<div><strong>相关启动命令</strong></div>
<div>service mysql start|stop|restart</div>
<div>/usr/local/httpd/bin/apachectl -k start|stop|restart</div>
<div>以上如有不明或遗漏或有更好的方案，请不惜键盘，给我留言，谢谢。</div>
<div>听说LNMP（Linux+Nginx+MySQL+PHP）比较省内存，下次想试试。</div>
</div>


<p>Related posts:<ol><li><a href='http://cq-cser.cn/2009/11/vps-%e5%bf%ab%e9%80%9f%e5%ae%89%e8%a3%85-linuxnginxmysqlphp-%e7%8e%af%e5%a2%83%e3%80%90%e8%bd%ac%e3%80%91/' rel='bookmark' title='Permanent Link: VPS 快速安装 Linux+Nginx+MySQL+PHP 环境【转】'>VPS 快速安装 Linux+Nginx+MySQL+PHP 环境【转】</a></li>
<li><a href='http://cq-cser.cn/2010/05/%e5%9c%a8mac-os-x%e4%b8%ad%e8%bf%90%e8%a1%8capache-%ef%bc%8b-php-%ef%bc%8b-mysql/' rel='bookmark' title='Permanent Link: 在Mac OS X中运行Apache ＋ PHP ＋ MySQL'>在Mac OS X中运行Apache ＋ PHP ＋ MySQL</a></li>
<li><a href='http://cq-cser.cn/2011/01/xampp-mysql-1067/' rel='bookmark' title='Permanent Link: xampp-mysql-1067'>xampp-mysql-1067</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://cq-cser.cn/2009/12/%e8%bd%acvps%e4%b8%8a%e5%ae%89%e8%a3%85lamp%e6%ad%a5%e9%aa%a4/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>VPS 快速安装 Linux+Nginx+MySQL+PHP 环境【转】</title>
		<link>http://cq-cser.cn/2009/11/vps-%e5%bf%ab%e9%80%9f%e5%ae%89%e8%a3%85-linuxnginxmysqlphp-%e7%8e%af%e5%a2%83%e3%80%90%e8%bd%ac%e3%80%91/</link>
		<comments>http://cq-cser.cn/2009/11/vps-%e5%bf%ab%e9%80%9f%e5%ae%89%e8%a3%85-linuxnginxmysqlphp-%e7%8e%af%e5%a2%83%e3%80%90%e8%bd%ac%e3%80%91/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 10:10:41 +0000</pubDate>
		<dc:creator>cq</dc:creator>
				<category><![CDATA[IT]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[VPS]]></category>

		<guid isPermaLink="false">http://cq-cser.cn/?p=137</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 [...]


Related posts:<ol><li><a href='http://cq-cser.cn/2009/12/%e8%bd%acvps%e4%b8%8a%e5%ae%89%e8%a3%85lamp%e6%ad%a5%e9%aa%a4/' rel='bookmark' title='Permanent Link: {转}VPS上安装LAMP步骤'>{转}VPS上安装LAMP步骤</a></li>
<li><a href='http://cq-cser.cn/2010/05/%e5%9c%a8mac-os-x%e4%b8%ad%e8%bf%90%e8%a1%8capache-%ef%bc%8b-php-%ef%bc%8b-mysql/' rel='bookmark' title='Permanent Link: 在Mac OS X中运行Apache ＋ PHP ＋ MySQL'>在Mac OS X中运行Apache ＋ PHP ＋ MySQL</a></li>
<li><a href='http://cq-cser.cn/2011/01/xampp-mysql-1067/' rel='bookmark' title='Permanent Link: xampp-mysql-1067'>xampp-mysql-1067</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>再次出手购买了<a rel="tag" href="http://cq-cser.cn/tags/vps/">VPS</a>，这次买的是性价比不错的<a href="http://www.photonvps.com/billing/aff.php?aff=013">PhotonVPS</a>的Xen Plan，下面介绍一下快速配置<a rel="tag" href="http://cq-cser.cn/tags/lnmp/">LNMP</a>（Linux+<a rel="tag" href="http://cq-cser.cn/tags/nginx/">Nginx</a>+MySQL+PHP）环境的方法（一般不出意外只要20分钟就可以搞定）。<span id="more-137"></span></p>
<p>首先当然得购买一款<a rel="tag" href="http://cq-cser.cn/tags/vps/">VPS</a>（废话），推荐国内的 <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 支付，一般支付以后最多等一两个钟头就可以收到邮件，一个<a rel="tag" href="http://cq-cser.cn/tags/vps/">VPS</a>的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>然后开始安装著名的 <a rel="tag" href="http://cq-cser.cn/tags/lnmp/">LNMP</a>（ Linux+<a rel="tag" href="http://cq-cser.cn/tags/nginx/">Nginx</a>+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.首先登陆<a rel="tag" href="http://cq-cser.cn/tags/vps/">VPS</a>,用SSH登陆.</p>
<p>2.安装<a rel="tag" href="http://cq-cser.cn/tags/lnmp/">LNMP</a>,进入一个目录: <strong>cd /usr/local/src</strong></p>
<p>然后就下载<a rel="tag" href="http://cq-cser.cn/tags/lnmp/">LNMP</a>: <strong>wget http://imcat.in/<a rel="tag" href="http://cq-cser.cn/tags/lnmp/">LNMP</a>.zip</strong></p>
<p>解压缩<strong> unzip <a rel="tag" href="http://cq-cser.cn/tags/lnmp/">LNMP</a>.zip</strong></p>
<p>有些<a rel="tag" href="http://cq-cser.cn/tags/vps/">VPS</a>安装后没有unzip这个命令,那么运行 <strong>yum install unzip</strong></p>
<p>进入该目录 <strong>cd <a rel="tag" href="http://cq-cser.cn/tags/lnmp/">LNMP</a></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 />
<a rel="tag" href="http://cq-cser.cn/tags/nginx/">Nginx</a> : /usr/local/<a rel="tag" href="http://cq-cser.cn/tags/nginx/">nginx</a><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 ，<a rel="tag" href="http://cq-cser.cn/tags/nginx/">Nginx</a> 配置用我昨天给的<a href="http://cq-cser.cn/wordpress-permalink/">那份</a>，OK，一个没有优化过的最简单的<a rel="tag" href="http://cq-cser.cn/tags/lnmp/">LNMP</a>环境就配置好了，运行一下 <strong>http://你的ip/phpinfo.php</strong> 成功的话就说明OK鸟~</p>


<p>Related posts:<ol><li><a href='http://cq-cser.cn/2009/12/%e8%bd%acvps%e4%b8%8a%e5%ae%89%e8%a3%85lamp%e6%ad%a5%e9%aa%a4/' rel='bookmark' title='Permanent Link: {转}VPS上安装LAMP步骤'>{转}VPS上安装LAMP步骤</a></li>
<li><a href='http://cq-cser.cn/2010/05/%e5%9c%a8mac-os-x%e4%b8%ad%e8%bf%90%e8%a1%8capache-%ef%bc%8b-php-%ef%bc%8b-mysql/' rel='bookmark' title='Permanent Link: 在Mac OS X中运行Apache ＋ PHP ＋ MySQL'>在Mac OS X中运行Apache ＋ PHP ＋ MySQL</a></li>
<li><a href='http://cq-cser.cn/2011/01/xampp-mysql-1067/' rel='bookmark' title='Permanent Link: xampp-mysql-1067'>xampp-mysql-1067</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://cq-cser.cn/2009/11/vps-%e5%bf%ab%e9%80%9f%e5%ae%89%e8%a3%85-linuxnginxmysqlphp-%e7%8e%af%e5%a2%83%e3%80%90%e8%bd%ac%e3%80%91/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

