CentOS下安裝虛擬機器主機管理軟體DA(DirectAdmin)

來源:互聯網
上載者:User

  DirectAdmin是一款付費的虛擬機器主機管理軟體,通常簡稱為DA,DA比Cpanel功能上簡單,但是記憶體佔用也更少些,更重要的是價格也更便宜,一般自己用或者搞合租DA算是很合適的。

  安裝前首先確保已經購買了DirectAdmin的授權,購買授權後會有Client ID,License ID,也需要在DA官網上或者DA銷售商那裡提交你的VPS或者伺服器的IP和系統資訊。

  1、安裝CentOS的相關組件的命令如下:

  yum update -y

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

  2、安裝DirectAdmin需要乾淨的系統,所以在裝之前要卸載掉httpd、php、mysql。

  yum remove httpd* php* mysql* -y

  3、下載DirectAdmin安裝指令檔,執行命令:

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

  4、為DirectAdmin安裝指令檔添加執行許可權,執行命令:

  chmod +x setup.sh

  5、執行DirectAdmin安裝指令檔:

  ./setup.sh

  運行DirectAdmin安裝檔案,然後在下面填入相關的資訊。其中hostname最好最好使用如:linode.vpser.net 之類的次層網域不要使用頂級網域名稱。

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)                         //輸入一個主機名稱,如: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) :                          //提示上面是否正確,正確請輸入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) :                           //確認IP是否是License上註冊的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: /Article/PreviousFile/os/201011/2010112010421916.directadmin.com/forum/forumdisplay.php?f=61
Enter your choice (1 or 2):        //一般選擇2就行,使用php5

  經過這些步驟,DirectAdmin的安裝已經完成了。

  安裝完成後會提示:

  DirectAdmin的使用者名稱密碼及DirectAdmin的管理後台地址等。

  一般基於OpenVZ的VPS需要在使用前開啟/usr/local/directadmin/conf/directadmin.conf這個檔案,確認其中的ethernet_dev的值修改為:venet0:0 ,具體已ifconfig 為準。

  執行:service directadmin restart 重啟DirectAdmin,用http://IP:2222 登入DirectAdmin後台。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.