vpsVPS口碑网

Directadmin V1.59.5 开心版下载

本篇文章是以探究学习的角度进行讲述,所涉及Nulled均为个人研究,请勿用于商业用途,谢谢!
本篇文章基于Centos7系统讲述,其他系统请自行研究
若转载请注明出处并标注仅为学习研究之用~

yum -y install nano wget perl
wget https://directadmin.whmcs.nu/setup.sh
chmod +x setup.sh
./setup.sh

(授权:Client ID (CID): 9192 License ID (LID): 919233)
安装完毕后按照下方,一条一条发送命令

firewall-cmd --zone=public --add-port=2222/tcp --permanent
firewall-cmd --zone=public --add-port=21/tcp --permanent
firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --zone=public --add-port=25/tcp --permanent
firewall-cmd --reload
systemctl restart directadmin
cd /usr/local/directadmin/conf/
systemctl stop directadmin
rm -rf /usr/local/directadmin/conf/license.key
wget -O /usr/local/directadmin/conf/license.key https://directadmin.whmcs.nu/license.key
chmod 600 /usr/local/directadmin/conf/license.key
chown diradmin:diradmin /usr/local/directadmin/conf/license.key
ifconfig eth0:92 37.97.247.189 netmask 255.255.255.0 up
echo 'DEVICE=eth0:92' >> /etc/sysconfig/network-scripts/ifcfg-eth0:92
echo 'IPADDR=37.97.247.189' >> /etc/sysconfig/network-scripts/ifcfg-eth0:92
echo 'NETMASK=255.255.255.0' >> /etc/sysconfig/network-scripts/ifcfg-eth0:92
systemctl restart network
/usr/bin/perl -pi -e 's/^ethernet_dev=.*/ethernet_dev=eth0:92/' /usr/local/directadmin/conf/directadmin.conf
systemctl start directadmin

操作完毕:),现在就可以进行登录了。

如果忘记了默认账号密码,可以输入以下命令查看

cat /usr/local/directadmin/scripts/setup.txt

Mysql账号密码可以输入以下命令查看

cat /usr/local/directadmin/conf/mysql.conf

如果还有什么问题可以加群提问。

郑重声明:本站部分文章来自网络,如有侵权请联系站长。【加入VPS口碑QQ群聊

宝塔