首先安装前的准备工作
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