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

技術(shù)文檔

幫助中心 > 技術(shù)文檔 >

2023版CentOS7安裝DirectAdmin面板教程

2024-01-26 作者:簡(jiǎn)米科技 閱讀量:0 所屬分類:技術(shù)文檔

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

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

很多用戶還是會(huì)使用DirectAdmin面板,而且現(xiàn)在的DirectAdmin和以前相比改變很大,界面以不在像以前一樣古董級(jí)的,DirectAdmin緊跟時(shí)代潮流,網(wǎng)頁(yè)功能什么的也一直在迭代更新。

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

安裝前準(zhǔn)備工作

為了順利的一次性安裝成功,我們先設(shè)置一下CentOS,并安裝必要的組件1, 關(guān)閉selinux (如果有selinux)

?復(fù)制vi /etc/sysconfig/selinux

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

?復(fù)制SELINUX=enforcing

再reboot重啟電腦

?復(fù)制reboot

2, 刪除必要的服務(wù)

?復(fù)制yum remove httpd php mysql nginx sendmail

3, 更新系統(tǒng)

?復(fù)制yum update -y

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

CentOS 7

?復(fù)制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

其他系統(tǒng)請(qǐng)參考http://help.directadmin.com/item.php?id=354

開(kāi)始安裝

方案1, 自動(dòng)安裝https://docs.directadmin.com/getting-started/installation/installguide/(適合大部分用戶, 自動(dòng)安裝所有內(nèi)容, 包括CFS防火墻)

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

?復(fù)制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

點(diǎn)擊展開(kāi)

在瀏覽器里打開(kāi)http://你的服務(wù)器IP:2222 即可進(jìn)入面板,其它的安裝配置我們可以進(jìn)入面板后在custombuild完成。這和現(xiàn)在的寶塔面板基本上也是差不多的。

方案2, 手動(dòng)安裝

許可證升級(jí)后,現(xiàn)在不怎么推薦手動(dòng)安裝,如果一定要手動(dòng)安裝請(qǐng)查看:DirectAdmin(DA)最新安裝教程(2019)記錄

DirectAdmin自定義配置

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

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

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

把默認(rèn)的web服務(wù)器從Apache改為Nginx+Apachehttp://forum.directadmin.com/showthread.php?t=44743

?復(fù)制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 #如果安裝了兩個(gè)版本的php./build nginx_apache./build rewrite_confs

web服務(wù)器可選

?復(fù)制apache #默認(rèn)web服務(wù)器,nginx #推薦nginx_apache #Nginx處理靜態(tài)+Apache處理動(dòng)態(tài)litespeed #高性能的商業(yè)web服務(wù)器openlitespeed #免費(fèi)開(kāi)源版本litespeed

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

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

DA現(xiàn)在可以設(shè)置4個(gè)php版本, 分別是php1, php2, php3, php4,以此類推??????????????????????????

標(biāo)簽:

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

簡(jiǎn)米科技服務(wù)器支持24小時(shí)免費(fèi)測(cè)試


成為簡(jiǎn)米科技會(huì)員,享受出眾的上云實(shí)踐機(jī)會(huì)和周到的尊貴服務(wù)!
主站蜘蛛池模板: 东平县| 苏州市| 蓝山县| 聊城市| 杭锦旗| 房产| 林西县| 信宜市| 嘉峪关市| 卢湾区| 大渡口区| 修水县| 集贤县| 久治县| 高碑店市| 富源县| 石首市| 临邑县| 仁化县| 会昌县| 永修县| 正蓝旗| 南乐县| 乌拉特中旗| 宝山区| 河津市| 阿鲁科尔沁旗| 闵行区| 福海县| 威远县| 湖口县| 增城市| 贵港市| 黄陵县| 岫岩| 依兰县| 乌兰察布市| 兴业县| 深圳市| 芷江| 万州区|