{大冰}

Linux宝塔无法启动

root@my-server:~# /etc/init.d/bt restart
Stopping Bt-Tasks… done
Stopping Bt-Panel… done
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

/etc/init.d/bt restart

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »