合 Linux监控之宝塔面板
简介
2分钟装好面板,一键管理服务器
集成LAMP/LNMP环境安装,网站、FTP、数据库、文件管理、软件安装等功能
安装
linux安装
1 | yum install -y wget && wget -O install.sh https://download.bt.cn/install/install_6.0.sh && sh install.sh ed8484bec |
Windows安装
配置、启动、修复等
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | [root@lhrdb ~]# rm -f /www/server/panel/data/*.login [root@lhrdb ~]# bt ===============宝塔面板命令行================== (1) 重启面板服务 (8) 改面板端口 (2) 停止面板服务 (9) 清除面板缓存 (3) 启动面板服务 (10) 清除登录限制 (4) 重载面板服务 (11) 设置是否开启IP + User-Agent验证 (5) 修改面板密码 (12) 取消域名绑定限制 (6) 修改面板用户名 (13) 取消IP访问限制 (7) 强制修改MySQL密码 (14) 查看面板默认信息 (22) 显示面板错误日志 (15) 清理系统垃圾 (23) 关闭BasicAuth认证 (16) 修复面板(检查错误并更新面板文件到最新版) (24) 关闭动态口令认证 (17) 设置日志切割是否压缩 (25) 设置是否保存文件历史副本 (18) 设置是否自动备份面板 (0) 取消 (29) 取消访问设备验证 =============================================== 请输入命令编号: bt 1 #重启面板 bt 16 #修复面板 bt 14 #查看面板登录信息 [root@lhrdb ~]# bt status Bt-Panel (pid 15954 3679463) already running Bt-Task (pid 16037 3679591) already running [root@lhrdb ~]# systemctl status bt ● bt.service - LSB: starts bt Loaded: loaded (/etc/rc.d/init.d/bt; bad; vendor preset: disabled) Active: active (running) since Mon 2023-03-20 14:00:12 CST; 2 months 16 days ago Docs: man:systemd-sysv-generator(8) Tasks: 37 Memory: 1.0G CGroup: /system.slice/bt.service ├─ 126189 nginx: worker process ├─ 126190 nginx: worker process ├─ 126191 nginx: worker process ├─ 126192 nginx: worker process ├─ 126193 nginx: worker process ├─ 126194 nginx: worker process ├─ 126195 nginx: worker process ├─ 126196 nginx: worker process ├─ 126197 nginx: worker process ├─ 126198 nginx: worker process ├─ 126199 nginx: worker process ├─ 126200 nginx: worker process ├─ 126201 nginx: worker process ├─ 126202 nginx: worker process ├─ 126203 nginx: worker process ├─ 126204 nginx: worker process ├─ 126205 nginx: cache manager process ├─3651292 nginx: master process /www/server/nginx/sbin/nginx -c /www/server/nginx/conf/nginx.conf ├─3679463 /www/server/panel/pyenv/bin/python3 /www/server/panel/BT-Panel └─3679591 /www/server/panel/pyenv/bin/python3 /www/server/panel/BT-Task Mar 20 13:59:55 lhrdb systemd[1]: Starting LSB: starts bt... Mar 20 14:00:12 lhrdb bt[1362]: Starting Bt-Panel.... done Mar 20 14:00:12 lhrdb bt[1362]: Starting Bt-Tasks... done Mar 20 14:00:12 lhrdb systemd[1]: Started LSB: starts bt. Apr 12 09:14:18 lhrdb yum[1757734]: Erased: bt-mysql57-5.7.40-1.el7.x86_64 Apr 26 10:01:56 lhrdb groupadd[106802]: group added to /etc/group: name=redis, GID=1014 Apr 26 10:01:56 lhrdb groupadd[106802]: group added to /etc/gshadow: name=redis Apr 26 10:01:56 lhrdb groupadd[106802]: new group: name=redis, GID=1014 Apr 26 10:01:56 lhrdb useradd[106806]: new user: name=redis, UID=1015, GID=1014, home=/home/redis, shell=/sbin/nologin |
软件安装
所有的软件安装在目录: /www/server/
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | [root@lhrdb server]# ll total 12 drwxr-xr-x 2 root root 6 Feb 13 18:02 bt_tomcat_web drwxr-x--- 5 mysql mysql 4096 Feb 14 08:41 data drwxr-xr-x 3 root root 19 Feb 13 18:02 go_project -rw-r--r-- 1 root root 64 Feb 13 17:52 lib.pl drwxr-xr-x 10 root root 222 Feb 13 18:17 mysql drwxr-xr-x 13 root root 231 Feb 13 18:17 nginx drwxr-xr-x 3 root root 19 Feb 13 18:02 nodejs drwxr-xr-x 4 root root 33 Feb 13 18:02 other_project drw------- 17 root root 4096 Feb 13 18:12 panel drwxr-xr-x 3 root root 16 Feb 13 18:02 php drwxr-xr-x 3 root root 83 Feb 13 18:17 phpmyadmin drwxr-xr-x 6 root root 95 Feb 14 12:01 pure-ftpd drwxr-xr-x 2 root root 24 Feb 13 17:40 stop [root@lhrdb server]# pwd /www/server [root@lhrdb server]# |
论坛
https://www.bt.cn/bbs/portal.php