狠狠躁夜夜躁人人爽天天不卡软件丨成·人免费午夜无码视频丨国产成人无码18禁午夜福利免费丨欧美一区二区婷婷香蕉狠狠干丨色欲国产精品一区二区

技術文檔

幫助中心 > 技術文檔 >

2023版CentOS7安裝DirectAdmin面板教程

2024-01-26 作者:簡米科技 閱讀量:0 所屬分類:技術文檔

2023版CentOS 7安裝 DirectAdmin面板教程,附DirectAdmin自定義配置詳解

雖然現在使用寶塔面板的用戶很多,但是站長不喜歡寶塔各種驗證,加之去年的事件,還是留下了陰影的。

很多用戶還是會使用DirectAdmin面板,而且現在的DirectAdmin和以前相比改變很大,界面以不在像以前一樣古董級的,DirectAdmin緊跟時代潮流,網頁功能什么的也一直在迭代更新。

本文就以CentOS 7為例,記錄一下在簡米科技的云服務器上安裝最新的DirectAdmin面板,

安裝前準備工作

為了順利的一次性安裝成功,我們先設置一下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防火墻)

DirectAdmin現在更新了安裝方式,我們需要用到License Key,若是不知道License Key,請登錄客戶賬戶,單擊許可證旁邊的查看鏈接,安裝執行代碼如下:

?復制bash (curl -LSs https://download.directadmin.com/setup.sh || curl -LSs https://download-alt.directadmin.com/setup.sh) License Key

安裝完成后提示

Admin user created## INSTALL_COMPLETE## ACCOUNT_INFOThe following information has been set:Admin username: adminAdmin password: IIqXt5XXDFMLrgh9Admin email:admin@test.boaovm.comServer IP: 8.8.8.8Server Hostname: test.openos.testTo login now, follow this link:http://8.8.8.8:2222and 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, dont hesitate to contact us atsupport@directadmin.com## REPORT_ENDSystem Security Tips:http://help.directadmin.com/item.php?id=247Changed secure_php option from no to yesPHP 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 即可進入面板,其它的安裝配置我們可以進入面板后在custombuild完成。這和現在的寶塔面板基本上也是差不多的。

方案2, 手動安裝

許可證升級后,現在不怎么推薦手動安裝,如果一定要手動安裝請查看:DirectAdmin(DA)最新安裝教程(2019)記錄

DirectAdmin自定義配置

下面是一些常見的DirectAdmin自定義配置安裝方法整理,如果你對命令不熟悉,還是建議在custombuild操作。

Apache改為Nginxhttps://help.directadmin.com/item.php?id=556

?復制cd /usr/local/directadmin/custombuild./build set webserver nginx./build set php1_mode php-fpm./build set php2_mode php-fpm #如果安裝了兩個版本的php./build update./build all d./build rewrite_confs

把默認的web服務器從Apache改為Nginx+Apachehttp://forum.directadmin.com/showthread.php?t=44743

?復制cd /usr/local/directadmin/custombuild./build update./build set webserver nginx_apache./build set php1_mode mod_php #更改php模式./build set php2_mode mod_php #如果安裝了兩個版本的php./build nginx_apache./build rewrite_confs

web服務器可選

?復制apache #默認web服務器,nginx #推薦nginx_apache #Nginx處理靜態+Apache處理動態litespeed #高性能的商業web服務器openlitespeed #免費開源版本litespeed

DirectAdmin 設置多版本PHP(如php 7.4 + php 8.0)的方法:參考:https://www.vultr.com/docs/using-multiple-php-versions-on-directadmin

?復制cd /usr/local/directadmin/custombuild./build set php2_release 8.0./build update./build php n./build rewrite_confs

DA現在可以設置4個php版本, 分別是php1, php2, php3, php4,以此類推??????????????????????????

標簽:

本文地址:http://www.yganxi.com/help/575.html

簡米科技服務器支持24小時免費測試


成為簡米科技會員,享受出眾的上云實踐機會和周到的尊貴服務!
主站蜘蛛池模板: 右玉县| 将乐县| 巴青县| 马公市| 耿马| 大姚县| 襄垣县| 辉南县| 云浮市| 杨浦区| 廉江市| 彭水| 清流县| 合江县| 长沙市| 奉节县| 苍山县| 靖边县| 罗平县| 响水县| 黔西| 双牌县| 金塔县| 五家渠市| 当阳市| 同仁县| 临沧市| 温宿县| 图木舒克市| 太仆寺旗| 油尖旺区| 乡城县| 二手房| 青州市| 武冈市| 清水县| 额尔古纳市| 葫芦岛市| 商洛市| 乃东县| 大埔区|