宝塔面板安装易用性补充
Tofloor
poster avatar
bt_hy
deepin
2017-09-09 18:58
Author
本帖最后由 bt_hy 于 2017-9-15 09:59 编辑

Hello,大家好,我是宝塔官方技术河妖
感谢Deepin将宝塔面板添加进应用商城,我们测试了安装,在使用过程中发现因之前我们的安装脚本并未针对桌面环境开发,对用户体验不太友好,现特针对Deepin系统进行体验优化。建议deepin将以下脚本添加进宝塔安装脚本的头部,以增强用户体验。
  1. #判断宝塔是否已安装
  2. if [ -f "/etc/init.d/bt" ] && [ -d "/www/server/panel" ]; then
  3.     #启动宝塔服务
  4.     /etc/init.d/bt start
  5.     #获取宝塔默认密码
  6.     password=`cat /www/server/panel/default.pl`
  7.     #获取宝塔面板当前端口
  8.     port=`cat /www/server/panel/data/port.pl`
  9.     echo -e "=================================================================="
  10.     echo -e "Bt-Panel: http://localhost:$port"
  11.     echo -e "默认账户: admin"
  12.     echo -e "默认密码: $password"
  13.     echo -e "=================================================================="
  14.     echo -e "正在尝试打开浏览器..."
  15.     #判断是否安装chrome
  16.     if [ -f "/opt/google/chrome/chrome" ]; then
  17.         /opt/google/chrome/chrome --no-sandbox http://localhost:$port
  18.         exit;
  19.     fi
  20.     #判断是否安装firefox
  21.     if [ -f "/usr/lib/firefox/firefox" ]; then
  22.         /usr/lib/firefox/firefox http://localhost:$port
  23.         exit;
  24.     fi
  25.     echo -e "找不到chrome/firefox浏览器,请自行打开浏览器访问宝塔面板: http://localhost:$port"
  26.     exit;
  27. fi
Copy the Code







Reply Favorite View the author
All Replies
2 / 2
To page
avatar
hswddan
deepin
2017-10-21 03:41
#21
安装失败!!!
Reply View the author
avatar
hswddan
deepin
2017-10-21 04:04
#22
安装失败,如图:
Reply View the author
avatar
hswddan
deepin
2017-10-21 04:05
#23
安装失败,如图:
Reply View the author
avatar
a512154224
deepin
2017-10-21 17:50
#24
早就装好了,一直用宝塔,很好
Reply View the author
avatar
w1941474711
deepin
2017-11-02 03:16
#25
我安装这个宝塔后,编译安装lnmp直接把我软件全部卸载了,然后把自己也卸载了
Reply View the author
2 / 2
To page