<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[观夏Note]]></title> 
<link>//gm.angeldm.com/index.php</link> 
<description><![CDATA[新技术番]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[观夏Note]]></copyright>
<item>
<link>//gm.angeldm.com/post//</link>
<title><![CDATA[CentOS上安装DirectAdmin]]></title> 
<author>果面 &lt;admin@yourname.com&gt;</author>
<category><![CDATA[网络应用]]></category>
<pubDate>Sat, 21 Aug 2010 02:09:08 +0000</pubDate> 
<guid>//gm.angeldm.com/post//</guid> 
<description>
<![CDATA[ 
	CentOS是unix的一个版本，集成了httpd,mysql,php，特别适合于当服务器。<br/><br/>DirectAdmin是一款付费的虚拟主机管理软件，个人认为是除Cpanel外比较易用的一款。<br/><br/>vps是通过虚拟技术将一个独立服务器分割成N份进行出售，介于虚拟主机与独立服务器之间。数据库，FTP这些信息相对于虚拟主机而言是完全独立的。最主要的是拥有相对独立的内存和CPU这些指标，不会被别人拖累。一般xen下是不能超售的，而openVZ则是可以over selling.<br/><br/><span style="color: #FF0000;">安装相关的组件</span>,或者你可以选择面对装了一半之后跳出来这样一个提示：<br/>cd /usr/local/directadmin/custombuild<br/>./build all d<br/><br/>CentOS是附带了httpd的unix版本，但是因为directadmin的安装需要干净的系统，所以在装之前要反安装httpd,php,mysql这些web组件。<br/><div class="code"><br/>yum remove httpd* php* mysql* -y<br/></div><br/><br/>安装CentOS的相关组件的命令如下<br/><div class="code"><br/>yum update -y<br/>yum install gcc-c++ gcc automake -y<br/>yum install make<br/>yum install flex<br/></div><br/><br/>运行命令：<br/><div class="code">wget http://directadmin.com/setup.sh</div><br/><br/>获取安装文件<br/><div class="code">chmod +x setup.sh</div><br/><br/>更改文件权限+x是一种方式，也可以用控制面板里面用的比较多的755。<br/><div class="code">./setup.sh</div><br/><br/>运行安装文件，然后在下面填入相关的信息。其中hostname和vps里面的名字一样。<br/><div class="code"><br/>DirectAdmin’s setup has a few more things you need to fill:<br/><br/>Please enter your Client ID :<br/>Please enter your License ID :<br/>Please enter your hostname &#92;(server.domain.com&#92;)<br/>It must be a Fully Qualified Domain Name<br/>Do *not* use a domain you plan on using for the hostname:<br/>eg. don’t use domain.com. Use server.domain.com instead.<br/>Do not enter http:// or www<br/>Enter your hostname (FQDN) :<br/>Is this correct? (y,n) :<br/>Is eth0 your network adaptor with the license IP? (y,n) :<br/>Is xx.xx.xx.xx the IP in your license? (y,n) :<br/><br/>DirectAdmin will now be installed on: Enterprise 5<br/>Is this correct? (must match license) (y,n) :<br/><br/>You now have 2 options for your apache/php setup.<br/><br/>1: customapache: older, more tested. Includes Apache 1.3, php 4 and frontpage.<br/>2: custombuild 1.1: newer, less tested. Includes any Apache version, php 4, 5, or both in cli and/or suphp. Frontpage not available with Apache 2.x.<br/>Post any issues with custombuild to the forum: http://www.directadmin.com/forum/forumdisplay.php?f=61<br/><br/>Enter your choice (1 or 2):<br/></div><br/>针对vps的特殊设置：<br/><br/>经过这些步骤,directAdmin的安装已经完成了，对还差最后一个步骤。在vps上面还要将Ip，硬盘这些进行一个定位。<br/>执行ifconfig命令查看VPS的IP地址，这个IP地址所绑定的设备就是我们需要记录下来的，例如venet0:0。<br/>可以通过/sbin/ifconfig这个命令来查看自己的硬盘。<br/>用vi进入/usr/local/directadmin/conf/directadmin.conf这个文件，将其中的ethernet_dev的值改成<br/><div class="code"><br/>ethernet_dev=venet0:0<br/></div><br/><br/>然后重启Linux使我们的更改生效，重启之后在浏览器里面输入http://ip:2222，如果你看到一个登陆框，那就说明DirectAdmin安装成功了。<br/>如果忘了DirectAdmin的密码用<br/>locate mysql.ini
]]>
</description>
</item><item>
<link>//gm.angeldm.com/read.php?&amp;guid=0#topreply</link>
<title><![CDATA[[评论] CentOS上安装DirectAdmin]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>//gm.angeldm.com/read.php?&amp;guid=0#topreply</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>