共计 3964 个字符,预计需要花费 10 分钟才能阅读完成。
@TOC
一、inpanel 介绍
1.inpanel 简介
inpanel 是一个基于 Web 的 Linux 开源管理工具。这个我的项目的指标是做出最简略、最疾速、最无痛的 Linux VPS 治理形式。
2.inpanel 特点
- 收费、简略、开源
- 疾速在线装置、玲珑与节俭资源
- 以后反对 CentOS/Redhat 5.4+、6.x、7.x、8.x
- 基于公布版本软件源的软件管理机制
- 轻松架构 Linux + Nginx + MySQL + PHP 环境
- 弱小的在线文件治理和回收站机制作
- 疾速创立和装置多种站点
- 丰盛实用的零碎工具
二、查看本地零碎环境
1. 查看零碎版本
[root@ecs-ffcd ~]# cat /etc/os-release
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"
CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
2. 查看零碎内核版本
[root@ecs-ffcd ~]# uname -r
3.10.0-1160.53.1.el7.x86_64
三、下载 inpanel 软件包
1. 创立下载目录
[root@ecs-ffcd ~]# mkdir -p /data/inpanel
[root@ecs-ffcd ~]# cd /data/inpanel/
[root@ecs-ffcd inpanel]#
2. 下载 inpanel 软件
[root@ecs-ffcd inpanel]# git clone https://github.com/inpanel/inpanel.git
Cloning into 'inpanel'...
remote: Enumerating objects: 4634, done.
remote: Counting objects: 100% (847/847), done.
remote: Compressing objects: 100% (334/334), done.
remote: Total 4634 (delta 530), reused 772 (delta 480), pack-reused 3787
Receiving objects: 100% (4634/4634), 3.32 MiB | 0 bytes/s, done.
Resolving deltas: 100% (3239/3239), done.
3. 查看源码 inpanel 文件
[root@ecs-ffcd inpanel]# cd inpanel/
[root@ecs-ffcd inpanel]# ll
total 76
-rw-r--r-- 1 root root 13223 Jan 15 13:34 CHANGELOG.md
-rwxr-xr-x 1 root root 3068 Jan 15 13:34 config.py
drwxr-xr-x 4 root root 4096 Jan 15 13:34 core
drwxr-xr-x 2 root root 4096 Jan 15 13:34 data
-rw-r--r-- 1 root root 14982 Jan 15 13:34 install.py
drwxr-xr-x 3 root root 4096 Jan 15 13:34 lib
-rw-r--r-- 1 root root 1667 Jan 15 13:34 LICENSE
drwxr-xr-x 4 root root 4096 Jan 15 13:34 plugins
-rw-r--r-- 1 root root 1928 Jan 15 13:34 README.md
drwxr-xr-x 5 root root 4096 Jan 15 13:34 scripts
-rwxr-xr-x 1 root root 3369 Jan 15 13:34 server.py
drwxr-xr-x 7 root root 4096 Jan 15 13:34 static
-rw-r--r-- 1 root root 1647 Jan 15 13:34 TODOLIST.md
四、部署 inpanel 利用
1. 一键装置 inpanel
- 间接应用 python 一键装置 inpanel
python install.py
[root@ecs-ffcd inpanel]# python install.py
Platform centos 7.6.1810 [Linux]
* Checking Platform... centos ...OK
Package epel-release-7-14.noarch already installed and latest version
Package wget-1.14-18.el7_6.1.x86_64 already installed and latest version
Package net-tools-2.0-0.25.20131004git.el7.x86_64 already installed and latest version
Package 2:vim-enhanced-7.4.629-8.el7_9.x86_64 already installed and latest version
Package psmisc-22.20-17.el7.x86_64 already installed and latest version
Package rsync-3.1.2-12.el7_9.x86_64 already installed and latest version
Package GeoIP-1.5.0-14.el7.x86_64 already installed and latest version
Delta RPMs disabled because /usr/bin/applydeltarpm not installed.
* Install Dependent Software... [OK]
* Current Python Version is [2.7] ... [OK]
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Package git-1.8.3.1-23.el7_8.x86_64 already installed and latest version
Nothing to do
* Install GIT ... [OK]
* Installing InPanel
Repository : https://github.com/inpanel/inpanel.git
Branch : main
Install path : /usr/local/inpanel
Cloning into '/usr/local/inpanel'...
remote: Enumerating objects: 4634, done.
remote: Counting objects: 100% (847/847), done.
remote: Compressing objects: 100% (334/334), done.
remote: Total 4634 (delta 531), reused 772 (delta 480), pack-reused 3787
Receiving objects: 100% (4634/4634), 3.32 MiB | 5.04 MiB/s, done.
Resolving deltas: 100% (3240/3240), done.
Admin Username [default: admin]:
Admin Password [default: admin]:
* Username and password set successfully!
InPanel Port [default: 8888, minimum: 5000]:
* InPanel will work on port "8888"
FirewallD is not running
* Config firewall... [OK]
Starting inpanel (via systemctl): [OK]
============================
* *
* INSTALL COMPLETED *
* *
============================
The URL of your InPanel is: http://119.8.186.24:8888/
Username is: admin
Password is: admin
Wish you a happy life !
2. 查看服务端口
[root@ecs-ffcd inpanel]# netstat -tunlp |grep 8888
tcp 0 0 0.0.0.0:8888 0.0.0.0:* LISTEN 18207/python
tcp6 0 0 :::8888 :::* LISTEN 18207/python
五、敞开防火墙和 selinux
- 敞开 selinux
sed -i 's/SELINUX=enforcing/SELINUX=disabled/' /etc/selinux/config
setenforce 0
- 敞开防火墙
systemctl stop firewalld && systemctl disable firewalld
六、拜访 inpanel 治理面板
1. 登录 inpanel
http://119.8.186.24:8888/#/
admin/admin
2. 进入 inpanel 首页
3. 查看零碎信息
4. 查看硬件信息
正文完