板 202dmin面安装 Di0年版

DirectAdmin是一套非常好用的商业主机控制面板, 相比单用户的宝塔面板来说, DirectAdmin非常适合虚拟主机服务商, 现在分享一下DirectAdmin面板的安装方法.

以CentOS 7为例, 其他系统也可以参考本教程.
https://docs.directadmin.com/getting-started/installation/overview/

先设置一下CentOS,并安装必要的组件
1, 关闭selinux (如果有selinux)

vi /etc/sysconfig/selinux

修改/etc/sysconfig/selinux文件中的SELINUX="" 为 disabled

SELINUX=enforcing

再reboot重启电脑

reboot

2, 删除必要的服务

yum remove httpd php mysql nginx sendmail

3, 更新系统

yum update -y

4,安装gcc, gcc-c++等必要的组件
http://help.directadmin.com/item.php?id=354

CentOS 7

yum 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 glibc-headers kernel-devel expat-devel
psmisc net-tools systemd-devel libdb-devel perl-DBI perl-Perl4-CoreLibs perl-libwww-perl xfsprogs rsyslog logrotate crontabs file kernel-headers

其他系统请参考
http://help.directadmin.com/item.php?id=354



开始安装
方案1, 自动安装
https://docs.directadmin.com/getting-started/installation/installguide/
(适合大部分用户, 自动安装所有内容, 包括CFS防火墙)
自动安装DA系统会自动识别您的服务器授权信息
若需要手动自定义安装请直接看二楼

代码:
bash <(curl -5S https://www.directadmin.com/setup.sh) auto


安装完成后提示

Admin user created
## INSTALL_COMPLETE
## ACCOUNT_INFO

The following information has been set:

Admin username: admin
Admin password: IIqXt5XXDFMLrgh9
Admin email: admin@test.openos.org

Server IP: 14.135.112.15
Server Hostname: test.openos.test

To login now, follow this link:
http://14.135.112.15:2222

and enter your Admin username and password when prompted.
You should now visit https://www.directadmin.com/newinstall.php to learn how to get started.
Thank you for using DirectAdmin. Should you have any questions, don't hesitate to contact us at support@directadmin.com

## REPORT_END
System Security Tips:
http://help.directadmin.com/item.php?id=247

Changed secure_php option from no to yes
PHP has been secured.

Install Complete!
If you cannot connect to the login URL, then it is likely that a firewall is blocking port 2222. Please see:
https://help.directadmin.com/item.php?id=75点击展开...

在浏览器里打开
http://你的服务器IP:2222

-1

上一篇:在VMware扩展磁盘容量的时候出现“在部分链上无法执行所调用的函数。请打开父虚拟磁盘。”怎么办?
下一篇:炖鸡汤,先焯水还是直接炖?切记3个技巧,鸡汤金黄油亮鲜美不腥