# cd /usr/local/directadmin/scripts # ./getLicense.sh 7353 12345 # service directadmin restart 其中7353是客户ID,12345是授权ID
如果你的服务器有多个不同的ip可以强制指定一个ip授权 如:10.200.200.26
# cd /usr/local/directadmin/scripts # ./getLicense.sh 7353 12345 127.0.0.1 # service directadmin restart
# cd /usr/local/directadmin/scripts # ./ipswap.sh 10.200.10.26 10.200.200.26 其中10.200.10.26为原IP,10.200.200.26为新IP。之后按以下重启所有服务即可(或重启服务器省略以下操作) # /etc/init.d/httpd restart # /etc/init.d/proftpd restart # /etc/init.d/exim restart # /etc/init.d/dovecot restart
irectAdmin 启动失败,查看2222端口是否运行;
# netstat -antp 若没有2222端口运行说明DirectAdmin并无启动,再次重启; # service directadmin restart Stopping DirectAdmin: [FAILED] Starting DirectAdmin: [ OK ] # service directadmin restart Stopping DirectAdmin: [FAILED] Starting DirectAdmin: [ OK ] # service directadmin restart Stopping DirectAdmin: [FAILED]
每次启动提示OK,闪退FAILED,无法打开directadmin控制面板。进directadmin安装目录:
# whereis directadmin # cd /usr/local/directadmin # ./directadmin The ip of this machine (10.200.10.26) does not match the ip in the license file Check the value of your ethernet_dev=venet0:1 setting in your /usr/local/directadmin/conf/directadmin.conf file and the output of /sbin/ifconfig
根据提示是DA授权失败或IP指定错误,发现客户说的授权IP是在venet0:0,而directadmin 的配置文件里指定的是venet0:1
# ifconfig -a # vi conf/directadmin.conf ethernet_dev=venet0:1 改 ethernet_dev=venet0:0 再次执行; # ./directadmin
[root@hip directadmin]# ./directadmin Bind Error: Make sure there aren't any copies running in the background Address already in use
打开//ip:2222 成功显示登录窗口
在使用DA过程中你会遇到dataskq进程占用CPU高达100%的情况,导致网站打开非常缓慢。dataskq这个进程是一个动作响应进程,在 /etc/cron.d/directadmin_cron任务里每分钟都会执行一次,查看/var/log/directadmin/errortaskq.log日志反馈,dataskq一直检查到named没启动从而导致不断重启,所以可能是机器中的named在升级中卸载了,修复方法如下:
# yum install bind dbus dbus-libs -y # mv /etc/init.d/named /etc/init.d/named.bak # wget //www.directadmin.com/named # chmod 755 /etc/init.d/named # /sbin/chkconfig named reset # /etc/init.d/named restart
如果以上方案并没有解决此问题,那就直接将dataskq进程killall掉即可。更多帮助;//help.directadmin.com/
原文来自:
本文地址://lrxjmw.cn/directadmin-id-ip.html编辑:王毅,审核员:逄增宝
本文原创地址://lrxjmw.cn/directadmin-id-ip.html编辑:王毅,审核员:暂无