赞
踩
systemctl status 1panel
root@armbian:~# systemctl status 1panel ● 1panel.service - 1Panel, a modern open source linux panel Loaded: loaded (/etc/systemd/system/1panel.service; enabled; vendor preset: enabled) Active: active (running) since Fri 2023-06-16 10:36:54 CST; 1min 32s ago Main PID: 4021 (1panel) Tasks: 12 (limit: 4382) Memory: 58.1M CPU: 3.597s CGroup: /system.slice/1panel.service └─4021 /usr/bin/1panel Jun 16 10:39:23 armbian 1panel[4021]: [GIN] 2023/06/16 - 10:39:23 | 200 | 46.814801ms | 192.168.1.9 | POST "/api/v1/apps/search" Jun 16 10:39:23 armbian 1panel[4021]: [GIN] 2023/06/16 - 10:39:23 | 200 | 5.213473ms | 192.168.1.9 | GET "/api/v1/apps/tags" Jun 16 10:39:24 armbian 1panel[4021]: Jun 16 10:39:24 armbian 1panel[4021]: 2023/06/16 10:39:24 github.com/1Panel-dev/1Panel/backend/app/repo/app.go:69 Jun 16 10:39:24 armbian 1panel[4021]: [4.063ms] [rows:31] SELECT * FROM `app_tags` WHERE `app_tags`.`app_id` IN (15,3,10,22,12,19,18,25,1,2,4,5,6,7,8,9,11,13> Jun 16 10:39:24 armbian 1panel[4021]: Jun 16 10:39:24 armbian 1panel[4021]: 2023/06/16 10:39:24 github.com/1Panel-dev/1Panel/backend/app/repo/app.go:69 Jun 16 10:39:24 armbian 1panel[4021]: [34.066ms] [rows:31] SELECT * FROM `apps` ORDER BY recommend asc LIMIT 50 Jun 16 10:39:24 armbian 1panel[4021]: [GIN] 2023/06/16 - 10:39:24 | 200 | 91.596712ms | 192.168.1.9 | POST "/api/v1/apps/search" Jun 16 10:39:24 armbian 1panel[4021]: [GIN] 2023/06/16 - 10:39:24 | 200 | 4.81477ms | 192.168.1.9 | GET "/api/v1/apps/tags"
root@armbian:~# systemctl status 1panel
Unit 1panel.service could not be found.
dpkg -l | grep 1panel
systemctl list-unit-files | grep panel
root@armbian:~# systemctl list-unit-files | grep panel
1panel.service enabled enabled
查看 “/etc/os-release” 文件:
cat /etc/os-release
查看 “/etc/issue” 文件:
cat /etc/issue
使用 “lsb_release” 命令(适用于Debian/Ubuntu):
lsb_release -a
查看 “/etc/redhat-release” 文件(适用于RedHat/CentOS):
cat /etc/redhat-release
root@armbian:~# cat /etc/os-release
PRETTY_NAME="Armbian 23.05.0-trunk Bullseye"
NAME="Debian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && bash quick_start.sh
请根据机器使用的系统选择不同的安装命令
curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && sh quick_start.sh
curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && sudo bash quick_start.sh
curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && bash quick_start.sh
提示:安装的方式是交互式,意味着在安装的过程中,你可以设置用户名和密码(当然没有设置,会生成默认的用户名和密码,然后访问相应的地址,登录即可)
root@armbian:~# curl -sSL https://resource.fit2cloud.com/1panel/package/quick_start.sh -o quick_start.sh && bash quick_start.sh 开始下载 1Panel v1.3.4 版本在线安装包 安装包下载地址: https://resource.fit2cloud.com/1panel/package/stable/v1.3.4/release/1panel-v1.3.4-linux-arm64.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 42.5M 100 42.5M 0 0 15.6M 0 0:00:02 0:00:02 --:--:-- 15.6M 1panel-v1.3.4-linux-arm64/1panel.service 1panel-v1.3.4-linux-arm64/1pctl 1panel-v1.3.4-linux-arm64/LICENSE 1panel-v1.3.4-linux-arm64/README.md 1panel-v1.3.4-linux-arm64/install.sh 1panel-v1.3.4-linux-arm64/1panel ██╗ ██████╗ █████╗ ███╗ ██╗███████╗██╗ ███║ ██╔══██╗██╔══██╗████╗ ██║██╔════╝██║ ╚██║ ██████╔╝███████║██╔██╗ ██║█████╗ ██║ ██║ ██╔═══╝ ██╔══██║██║╚██╗██║██╔══╝ ██║ ██║ ██║ ██║ ██║██║ ╚████║███████╗███████╗ ╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝╚══════╝ [1Panel Log]: ======================= 开始安装 ======================= 设置 1Panel 安装目录(默认为/opt): [1Panel Log]: 您选择的安装路径为 /opt [1Panel Log]: 检测到 Docker 已安装,跳过安装步骤 [1Panel Log]: 启动 Docker [1Panel Log]: ... 在线安装 docker-compose % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 43.3M 100 43.3M 0 0 28.1M 0 0:00:01 0:00:01 --:--:-- 28.1M [1Panel Log]: docker-compose 安装成功 设置 1Panel 端口(默认为14676): [1Panel Log]: 您设置的端口为:14676 设置 1Panel 用户名称(默认为9ad551c171):root [1Panel Log]: 您设置的用户名称为:root 设置 1Panel 用户密码(默认为ee3102965b): 错误:用户密码仅支持字母、数字、特殊字符(!@#$%*_,.?),长度 8-30 位 设置 1Panel 用户密码(默认为ee3102965b): [1Panel Log]: 配置 1Panel Service Created symlink /etc/systemd/system/multi-user.target.wants/1panel.service → /etc/systemd/system/1panel.service. 1234[1Panel Log]: 启动 1Panel 服务 5678[1Panel Log]: 1Panel 服务启动成功! [1Panel Log]: [1Panel Log]: =================感谢您的耐心等待,安装已经完成================== [1Panel Log]: [1Panel Log]: 请用浏览器访问面板: [1Panel Log]: 面板地址: http://$LOCAL_IP:14676/7250624307 [1Panel Log]: 用户名称: root [1Panel Log]: 用户密码: 12345678 [1Panel Log]: [1Panel Log]: 项目官网: https://1panel.cn [1Panel Log]: 项目文档: https://1panel.cn/docs [1Panel Log]: 代码仓库: https://github.com/1Panel-dev/1Panel [1Panel Log]: [1Panel Log]: 如果使用的是云服务器,请至安全组开放 14676 端口 [1Panel Log]: [1Panel Log]: ================================================================
1pctl user-info
root@armbian:~# 1pctl user-info
username: root
password: 12345678
port: 1234
ssl: disable
entrance: 7250624307
假设你的系统上已正确安装并使用了名为 “1panel” 的服务单元。如果你使用的是不同的服务名称,请相应地替换命令中的 “1panel”
可以在1Panel面板的面板设置->面板->面板别名中进行修改
查看运行状态命令:显示 1Panel 服务的当前状态,包括是否正在运行以及相关的日志信息。
systemctl status 1panel
启动命令:如果服务已经在运行,则该命令不会产生任何输出
systemctl start 1panel
停止 1Panel 服务:
systemctl stop 1panel
重启 1Panel 服务
systemctl restart 1panel
设置 1Panel 服务开机自启动
systemctl enable 1panel
禁用 1Panel 服务开机自启动
systemctl disable 1panel
命令总结:
命令 | 描述 |
---|---|
systemctl start 1panel | 启动 1Panel 服务 |
systemctl stop 1panel | 停止 1Panel 服务 |
systemctl restart 1panel | 重启 1Panel 服务 |
systemctl status 1panel | 查看 1Panel 服务的状态 |
systemctl enable 1panel | 设置 1Panel 服务开机自启动 |
systemctl disable 1panel | 禁用 1Panel 服务开机自启动 |
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。