虽然现在使用宝塔面板的用户很多,但是站长不喜欢宝塔各种验证,加之去年的事件,还是留下了阴影的。
很多用户还是会使用DirectAdmin面板,而且现在的DirectAdmin和以前相比改变很大,界面以不在像以前一样古董级的,DirectAdmin紧跟时代潮流,网页功能什么的也一直在迭代更新。
本文就以CentOS 7为例,记录一下在的云服务器上安装最新的DirectAdmin面板,其他系统也可以参考本教程: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, 删除必要的服务
?复制yumremovehttpdphpmysqlnginxsendmail
3, 更新系统
?复制yumupdate-y
4,安装gcc, gcc-c++等必要的组件
http://help.directadmin.com/item.php?id=354
CentOS 7
?复制yuminstallwgetgccgcc-c++flexbisonmakebindbind-lib***ind-utilsopensslopenssl-develperlquotalibaio\libcom_err-devellibcurl-develgdzlib-develzipunziplibcap-develcroniebzip2cyrus-sasl-develperl-ExtUtils-Embed\autoconfautomakelibtoolwhichpatchmailxbzip2-devellsofglibc-headerskernel-develexpat-devel\psmiscnet-toolssystemd-devellibdb-develperl-DBIperl-Perl4-CoreLibsperl-libwww-perlxfsprogsrsysloglogrotatecrontabsfilekernel-headers
其他系统请参考
http://help.directadmin.com/item.php?id=354
开始安装
方案1, 自动安装
https://docs.directadmin.com/getting-started/installation/installguide/
(适合大部分用户, 自动安装所有内容, 包括CFS防火墙)
bash<(curl-LSshttps://download.directadmin.com/setup.sh||curl-LSshttps://download-alt.directadmin.com/setup.sh)'LicenseKey'
安装完成后提示
directadmin

QQ客服