BT(寶塔面板)-Panel service startup failed

重裝面板
安裝命令只是重新安裝了面板,不會影響網站數據,最好先對網站數據進行備份

yum install -y wget && wget -O install.sh http://download.bt.cn/install/install_6.0.sh && bash install.sh

python錯誤
遇到這種錯誤解決起來容易點,錯誤代碼如下:

Starting Bt-Panel… failed
——————————————————
Traceback (most recent call last):
File “main.py”, line 101, in <module>
if not os.path.exists(templatesConf): public.writeFile(templatesConf,’default’);
AttributeError: ‘module’ object has no attribute ‘writeFile’
——————————————————
Error: BT-Panel service startup failed.

錯誤原因:

python public包 跟面板衝突。如何解決呢?可以嘗試使用下面的兩條命令:

pip uninstall public
bt restart
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章