首先安裝前的準備工作
1、DA授權
2、關閉selinux
使用命令如下:
sed -i “s/^SELINUX=.*/SELINUX=disabled/” /etc/sysconfig/selinux
3、升級
yum update
4、安裝必要組建
yum install wget gcc gcc-c++ flex bison make bind bind-libs bind-utils openssl openssl-devel perl patch quota libaio libcom_err-devel libcurl-devel gd zlib-devel zip unzip libcap-devel cronie bzip2 db4-devel cyrus-sasl-devel perl-ExtUtils-Embed
5、移除多餘組件
yum remove httpd php mysql
6、下載DA並安裝
wget http://www.directadmin.com/setup.sh #下載指令碼
chmod 755 setup.sh #設定許可權
screen ./setup.sh #運行安裝指令碼
開工了
*****************************************************
*
* Have you run the pre-install commands? CTRL-C if not.
* http://help.directadmin.com/item.php?id=354
*
*****************************************************
Please enter your Client ID : 不許看 輸入DA的client ID
Please enter your License ID : 不許看 輸入DA的License ID
Please enter your hostname (server.domain.com)
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) : ovh.hezuo.com 輸入hostname,隨便輸入個網域名稱
Client ID: 不許看
License ID: 不許看
Hostname: 不許看
Is this correct? (y,n) : y 核對是否正確,正確則輸入y 斷行符號
The following ethernet devices/IPs were found. Please enter the name of the device you wish to use:
bond0
dummy0
eth0 8.8.8.8
ip6tnl0
tunl0
Enter the device name: eth0 輸入網卡裝置,必須和DA授權上的IP一樣的裝置
Is 8.8.8.8 the IP in your license? (y,n) : y 再次確認IP是否正確
DirectAdmin will now be installed on: Enterprise 6.4
Is this correct? (must match license) (y,n) : y 再次確認系統是否正確
You now have 4 options fo