探索,發現,愛好、學習,記錄,分享。
學海無涯,天涯若比鄰,三人行,必有我師。

DirectAdmin启动失败问题的解决

DirectAdmin 启动失败问题的解决

     DirectAdmin 面板打不开,开始怀疑是防火墙封了2222端口,于是关闭防火墙。
#service iptables stop
还是开不了
再用netstat -anp查看所有 启动端口,没有看到DirectAdmin 面板的2222,说明DirectAdmin可能没有启动。
于是再用:service directadmin start 启动提示启动成功,但还是打不开,用restart:

 [root@hip directadmin]# service directadmin restart
Stopping DirectAdmin:�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2�0�2 [FAILED]

每次启动提示OK,停止提示FAILED,说明其实是没有启动成功或者是启动一下就自动退出了。
进directadmin安装目录:
#whereis directadmin
#cd /usr/local/directadmin
#

[root@hip directadmin]# ./directadmin
The ip of this machine (1.2.3.4) does not match the ip in the license file.<br>
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<br>

看提示,貌似是授权错误或是IP指定错误,于是用
#ifconfig查看,发现客户说的授权IP是在venet0:0,而directadmin 的配置文件里指定的是venet0:1.

#vi conf/directadmin.conf 找到

ethernet_dev=venet0:1
改为
ethernet_dev=venet0:0
再用

#./directadmin 不提示IP或授权错误了。
[root@hip directadmin]# ./directadmin
Bind Error: Make sure there aren’t any copies running in the background
Address already in use

打开http://ip:2222 成功显示登录窗口

 

 

DirectAdmin 面板的Web环境启动、重启和停止等操作

# Apache:
service httpd {start|stop|restart|condrestart|reload|status|fullstatus|graceful|help|configtest}

# MySQL

/sbin/service mysqld {start|stop|restart|reload|force-reload|status}
或者

/etc/init.d/mysqld  {start|stop|restart|reload|force-reload|status}

# DirectAdmin 面板

service directadmin {start|stop|status|reload|restart}

 

# 关闭防火墙

/sbin/service iptables stop
/sbin/chkconfig iptables off

版權聲明:本文采用知識共享 署名4.0國際許可協議 [BY-NC-SA] 進行授權
轉載事宜:如需轉載需徵得應允,轉載必須注明來源於本站的信息。
文章名称:《DirectAdmin启动失败问题的解决》
文章链接:https://www.thefreesky.com/blog/16659.html
本站資源僅供個人學習交流,請於下載後24小時內刪除,不允許用於商業用途,否則法律問題自行承擔。

評論 抢沙发