IT貓撲網(wǎng):您身邊最放心的安全下載站! 最新更新|軟件分類|軟件專題|手機(jī)版|論壇轉(zhuǎn)貼|軟件發(fā)布

您當(dāng)前所在位置: 首頁(yè)服務(wù)器其他服務(wù)器 → CentOS上DirectAdmin安裝教程

CentOS上DirectAdmin安裝教程

時(shí)間:2015-06-28 00:00:00 來(lái)源:IT貓撲網(wǎng) 作者:網(wǎng)管聯(lián)盟 我要評(píng)論(0)

DirectAdmin是一款付費(fèi)的虛擬主機(jī)管理軟件,通常簡(jiǎn)稱為DA,DA比Cpanel功能上簡(jiǎn)單,但是內(nèi)存占用也更少些,更重要的是價(jià)格也更便宜,一般自己用或者搞合租DA算是很合適的。

安裝前首先確保已經(jīng)購(gòu)買了DirectAdmin的授權(quán),購(gòu)買授權(quán)后會(huì)有Client ID,License ID,也需要在DA官網(wǎng)上或者DA銷售商那里提交你的VPS或者服務(wù)器的IP和系統(tǒng)信息。

1、安裝CentOS的相關(guān)組件的命令如下:

yum update -y
yum install gcc-c++ gcc make automake wget flex -y

2、安裝DirectAdmin需要干凈的系統(tǒng),所以在裝之前要卸載掉httpd、phpmysql。

yum remove httpd* php* mysql* -y

3、下載DirectAdmin安裝腳本文件,執(zhí)行命令:

wget?http://directadmin.com/setup.sh

4、為DirectAdmin安裝腳本文件添加執(zhí)行權(quán)限,執(zhí)行命令:

chmod +x setup.sh

5、執(zhí)行DirectAdmin安裝腳本文件:

./setup.sh

運(yùn)行DirectAdmin安裝文件,然后在下面填入相關(guān)的信息。其中hostname最好最好使用如:linode.vpser.net 之類的二級(jí)域名不要使用頂級(jí)域名。

DirectAdmin’s setup has a few more things you need to fill:
Please enter your Client ID : ? ? ? ? ? ? ? ? ? //輸入你的Client ID
Please enter your License ID : ? ? ? ? ? ? ? ? ? ?//輸入你的License ID
Please enter your hostname \(server.domain.com\) ? ? ? ? ? ? ? ? ? ? ? ? //輸入一個(gè)主機(jī)名,如:linode.vpser.net
It must be a Fully Qualified Domain Name
Do *not* use a domain you plan on using for the hostname:
eg. don’t use domain.com. Use server.domain.com instead.
Do not enter http:// or www
Enter your hostname (FQDN) :
Is this correct? (y,n) : ? ? ? ? ? ? ? ? ? ? ? ? ?//提示上面是否正確,正確請(qǐng)輸入y
Is eth0 your network adaptor with the license IP? (y,n) : ? ? ? ? ? ? //輸入y
Is xx.xx.xx.xx the IP in your license? (y,n) : ? ? ? ? ? ? ? ? ? ? ? ? ? //確認(rèn)IP是否是License上注冊(cè)的IP
DirectAdmin will now be installed on: Enterprise 5
Is this correct? (must match license) (y,n) : ? ? ? ? ? ? ? //輸入y
You now have 2 options for your apache/php setup.
1: customapache: older, more tested. Includes Apache 1.3, php 4 and frontpage.
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.
Post any issues with custombuild to the forum:?http://www.directadmin.com/forum/forumdisplay.php?f=61
Enter your choice (1 or 2): ? ? ? ?//一般選擇2就行,使用php5

經(jīng)過(guò)這些步驟,DirectAdmin的安裝已經(jīng)完成了。

安裝完成后會(huì)提示:

DirectAdmin的用戶名密碼及DirectAdmin的管理后臺(tái)地址等。

一般基于OpenVZ的VPS需要在使用前打開(kāi)/usr/local/directadmin/conf/directadmin.conf這個(gè)文件,確認(rèn)其中的ethernet_dev的值修改為:venet0:0 ,具體已ifconfig 為準(zhǔn)。

執(zhí)行:service directadmin restart 重啟DirectAdmin,用http://IP:2222 登錄DirectAdmin后臺(tái)。

文章來(lái)源:VPS偵探

關(guān)鍵詞標(biāo)簽:CentOS,DirectAdmin,安

相關(guān)閱讀

文章評(píng)論
發(fā)表評(píng)論

熱門文章 CentOS NTP服務(wù)器安裝與配置 CentOS NTP服務(wù)器安裝與配置 VMware中Shared Folders(共享文件夾)的配置 VMware中Shared Folders(共享文件夾)的配置 使用Python配平化學(xué)方程式的方法 使用Python配平化學(xué)方程式的方法 Linux(Unix)時(shí)鐘同步ntpd服務(wù)配置方法 Linux(Unix)時(shí)鐘同步ntpd服務(wù)配置方法

相關(guān)下載

    人氣排行 VMware中Shared Folders(共享文件夾)的配置 CentOS NTP服務(wù)器安裝與配置 nginx搭建flv流媒體服務(wù)器 Windows 2003下配置架設(shè)NTP時(shí)間服務(wù)器 詳細(xì)!解決WSUS服務(wù)器更新問(wèn)題(附官方鏈接) heartbeat+LVS-ipvsadm+ldirectord搭建lvs DR集群 nginx的自動(dòng)啟動(dòng)腳本 使用Python配平化學(xué)方程式的方法