安装shellinabox-master

时间:2021-07-23 08:57:55

安装shellinabox-master

1
插件介绍:通过web页面管理linux主机(电脑版)

a. 安装

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
#安装依赖包
   
yum install git openssl-devel pam-devel zlib-devel autoconf automake libtool -y
   
mkdir -/home/nulige/tools
   
cd /home/nulige/tools
   
#下载软件包
git clone https://github.com/shellinabox/shellinabox.git && cd shellinabox
   
   
#安装软件需要的组件
autoreconf -i
   
   
#编译安装软件
 ./configure --prefix=/usr/local/shellinabox
   
make && make install
  
#创建普通用户,root用户需要设置后网页才能登录
  
useradd tom
passwd tom
   
#进入软件目录
cd /usr/local/shellinabox/bin
   
#启动软件
./shellinaboxd --b 

b. 检查4200端口是否启动

1
2
3
4
5
6
7
[root@paramiko-server ~]# netstat -lnt
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address               Foreign Address             State     
tcp        0      0 0.0.0.0:22                  0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:4200                0.0.0.0:*                   LISTEN     
tcp        0      0 0.0.0.0:80                  0.0.0.0:*                   LISTEN     
tcp        0      0 :::22                       :::*                        LISTEN

c. 访问网站

安装shellinabox-master