Linux安装 DirectAdmin面板 2020年版

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

阿里企业邮箱、网易企业邮箱、新网企业邮箱
【标准版】400元/年/5用户/无限容量
【外贸版】500元/年/5用户/无限容量
其它服务:网站建设、企业邮箱、数字证书ssl、400电话、
联系方式:电话:13714666846 微信同号

声明:本站所有作品(图文、音视频)均由用户自行上传分享,或互联网相关知识整合,仅供网友学习交流,若您的权利被侵害,请联系 管理员 删除。

本文链接:http://news.ew35.com/