Directadmin 全流程安装步骤记录

本次安装过程的记录是在 Vultr 的日本机房完成,基础系统为 CentOS 7 x64。

一、配置纯净环境以及预安装软件

SSH 登陆服务器;
yum -y update #自动更新系统和软件;
yum -y install wget gcc gcc-c++ flex bison make bind bind-libs bind-utils openssl openssl-devel perl quota libaio libcom_err-devel libcurl-devel gd zlib-devel zip unzip libcap-devel cronie bzip2 cyrus-sasl-devel perl-ExtUtils-Embed autoconf automake libtool which patch mailx bzip2-devel lsof db4-devel #预安装软件;
yum -y install psmisc net-tools systemd-devel libdb-devel perl-DBI xfsprogs rsyslog logrotate crontabs #CentOS 7 需要附加安装的软件;
yum remove httpd php mysql #移除必要服务

二、安装 Directadmin

wget http://www.directadmin.com/setup.sh #获取安装脚本;
chmod 755 setup.sh #赋予相关权限;
./steup.sh #运行脚本;

最新版的 Directadmin 在运行初始会提示安装预安装软件 Would you like to install these required pre-install packages? (y/n) : ,键入 y 回车即可安装预安装软件,这样的话,在第一步中的预安装步骤就可以省略。

Please enter your Client ID : #输入代理商 ID;
ID Please enter your License ID : #输入授权 ID;
Enter your hostname (FQDN) : #输入主机名,直接回车也可,知道主机名键入也可;

如果有多个网络端口,接下来会列出所有网口,会提示输入需要将安装配置到哪个网口 Enter the device name,键入和授权 IP 对应网口即可。

Would you like the default settings of apache 2.4 with mod_ruid2 and php 5.6 cli? (y/n) : #提示选择要安装的服务;

该项默认键入 y 即可,会安装显示的 apache 2.4、mod_ruid2、php 5.6 等等默认选项,也可以键入 n,紧接着进行更加个性化的定制。

Would like to search for the fastest download mirror? (y/n) : #搜寻高速的下载镜像;

这可以使你的安装过程更快速。不管这一步选择 y 还是 n,接下来就没有需要再人工干预的内容了。一路到底直到安装完成…

0 Shares:
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like