Linux系统之安装Linux管理工具inpanel

举报
江湖有缘 发表于 2023/01/21 21:24:57 2023/01/21
【摘要】 Linux系统之安装Linux管理工具inpanel

一、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.查看硬件信息

在这里插入图片描述

【版权声明】本文为华为云社区用户原创内容,未经允许不得转载,如需转载请自行联系原作者进行授权。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。