Console Output

Started by user tophorsekj
Running as SYSTEM
Building in workspace /data/publish/jenkins-data/workspace/tophorse_server_install
[tophorse_server_install] $ /bin/sh -xe /data/setupfiles/tomcat7-8058-jdk1.8/temp/jenkins4906503380685649811.sh
+ /data/scripts/install/install.py c200 '--serverName=140.246.33.74-天翼云试用|s1005' '--installItems=5. 禁止root用户登录|v1004,6. 安装iptables防火墙,屏蔽默认firewall防火墙|v1008'
开始......禁止root用户登录
mkdir -p /data/share


[root@tkcuvxm2dwcxpe0z ~]# 
cd /data/share

[root@tkcuvxm2dwcxpe0z share]# 
rm -rf ./sshd-denyrootlogin.sh


[root@tkcuvxm2dwcxpe0z share]# 
wget http://software.tophorsekj.net/linux/shell/ss
shd/sshd-denyrootlogin.sh


--2023-04-21 13:17:06--  http://software.tophorsekj.net/linux/shell/sshd/sshd-denyrootlogin.sh
正在解析主机 software.tophorsekj.net (software.tophorsekj.net)... 
123.207.175.190
正在连接 software.tophorsekj.net (software.tophorsekj.net)|123.207.175.190|:80... 
已连接。
已发出 HTTP 请求,正在等待回应... 
200 OK
长度:310 [application/octet-stream]
正在保存至: “sshd-denyrootlogin.sh”


sshd-denyrootlogin.   0%[                    ]       0  --.-KB/s               
sshd-denyrootlogin. 100%[===================>]     310  --.-KB/s  用时 0s      

2023-04-21 13:17:06 (94.8 MB/s) - 已保存 “sshd-denyrootlogin.sh” [310/310])


[root@tkcuvxm2dwcxpe0z share]# 
chmod +x ./sshd-denyrootlogin.sh


[root@tkcuvxm2dwcxpe0z share]# 
./sshd-denyrootlogin.sh


[root@tkcuvxm2dwcxpe0z share]# 
******安装完成******
开始......安装iptables防火墙,屏蔽默认firewall防火墙
mkdir -p /data/share


[root@tkcuvxm2dwcxpe0z ~]# 
cd /data/share

[root@tkcuvxm2dwcxpe0z share]# 
rm -rf ./iptables.sh


[root@tkcuvxm2dwcxpe0z share]# 
wget http://software.tophorsekj.net/linux/shell/ip
ptables/iptables.sh


--2023-04-21 13:17:08--  http://software.tophorsekj.net/linux/shell/iptables/iptables.sh
正在解析主机 software.tophorsekj.net (software.tophorsekj.net)... 123.207.175.190
正在连接 software.tophorsekj.net (software.tophorsekj.net)|123.207.175.190|:80... 
已连接。
已发出 HTTP 请求,正在等待回应... 
200 OK
长度:1226 (1.2K) [application/octet-stream]
正在保存至: “iptables.sh”


iptables.sh           0%[                    ]       0  --.-KB/s               
iptables.sh         100%[===================>]   1.20K  --.-KB/s  用时 0s      

2023-04-21 13:17:08 (247 MB/s) - 已保存 “iptables.sh” [1226/1226])


[root@tkcuvxm2dwcxpe0z share]# 
chmod +x ./iptables.sh


[root@tkcuvxm2dwcxpe0z share]# 
./iptables.sh


Failed to stop iptables.service: Unit iptables.service not loaded.

上次元数据过期检查:0:01:20 前,执行于 2023年04月21日 星期五 13时15分49秒。

依赖关系解决。
================================================================================
 软件包                 架构        版本                      仓库         大小
================================================================================
安装:
 iptables-services      x86_64      1.8.4-23.0.1.an8.1        BaseOS       63 k
升级:
 iptables               x86_64      1.8.4-23.0.1.an8.1        BaseOS      613 k
 iptables-ebtables      x86_64      1.8.4-23.0.1.an8.1        BaseOS       72 k
 iptables-libs          x86_64      1.8.4-23.0.1.an8.1        BaseOS      108 k

事务概要
================================================================================
安装  1 软件包
升级  3 软件包

总下载:856 k
下载软件包:
(1/4): iptables-serv  0% [                    ] ---  B/s |   0  B     --:-- ETA
(1/4): iptables-services-1.8.4-23.0.1.an8.1.x86 379 kB/s |  63 kB     00:00    
(2-3/4): iptables-eb 12% [==                  ] 633 kB/s | 105 kB     00:01 ETA
(2/4): iptables-ebtables-1.8.4-23.0.1.an8.1.x86 397 kB/s |  72 kB     00:00    
(3-4/4): iptables-li 20% [====                ] 645 kB/s | 177 kB     00:01 ETA
(3/4): iptables-1.8.4-23.0.1.an8.1.x86_64.rpm   2.3 MB/s | 613 kB     00:00    
(4/4): iptables-libs 87% [=================   ] 750 kB/s | 748 kB     00:00 ETA
(4/4): iptables-libs-1.8.4-23.0.1.an8.1.x86_64. 772 kB/s | 108 kB     00:00    
--------------------------------------------------------------------------------
总计                                            2.7 MB/s | 856 kB     00:00     

运行事务检查

事务检查成功。
运行事务测试

事务测试成功。
运行事务


  准备中  :  [========                                                    ] 1/1
  准备中  :  [================                                            ] 1/1
  准备中  :  [=========================                                   ] 1/1
  准备中  :  [==================================                          ] 1/1
  准备中  :  [==========================================                  ] 1/1
  准备中  :  [===================================================         ] 1/1
  准备中  :                                                                 1/1 


  运行脚本: iptables-libs-1.8.4-23.0.1.an8.1.x86_64                         1/1 


  升级    : iptables-libs-1.8.4-23.0.1.an8 [                              ] 1/7

  升级    : iptables-libs-1.8.4-23.0.1.an8 [=====                         ] 1/7
  升级    : iptables-libs-1.8.4-23.0.1.an8 [=========                     ] 1/7
  升级    : iptables-libs-1.8.4-23.0.1.an8 [==============                ] 1/7
  升级    : iptables-libs-1.8.4-23.0.1.an8 [===================           ] 1/7
  升级    : iptables-libs-1.8.4-23.0.1.an8 [====================          ] 1/7
  升级    : iptables-libs-1.8.4-23.0.1.an8 [=========================     ] 1/7
  升级    : iptables-libs-1.8.4-23.0.1.an8 [============================= ] 1/7
  升级    : iptables-libs-1.8.4-23.0.1.an8.1.x86_64                         1/7 


  运行脚本: iptables-1.8.4-23.0.1.an8.1.x86_64                              2/7 


  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [                              ] 2/7

  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [=                             ] 2/7
  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [==                            ] 2/7
  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [===                           ] 2/7
  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [====                          ] 2/7

  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [=====                         ] 2/7
  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [======                        ] 2/7
  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [=======                       ] 2/7
  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [========                      ] 2/7
  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [=========                     ] 2/7

  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [==========                    ] 2/7
  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [===========                   ] 2/7
  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [============                  ] 2/7
  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [=============                 ] 2/7
  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [==============                ] 2/7

  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [===============               ] 2/7
  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [================              ] 2/7
  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [=================             ] 2/7
  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [==================            ] 2/7
  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [===================           ] 2/7

  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [====================          ] 2/7
  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [=====================         ] 2/7
  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [======================        ] 2/7
  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [=======================       ] 2/7
  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [========================      ] 2/7

  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [=========================     ] 2/7
  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [==========================    ] 2/7
  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [===========================   ] 2/7

  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [============================  ] 2/7

  升级    : iptables-1.8.4-23.0.1.an8.1.x8 [============================= ] 2/7
  升级    : iptables-1.8.4-23.0.1.an8.1.x86_64                              2/7 


  运行脚本: iptables-1.8.4-23.0.1.an8.1.x86_64                              2/7 


  安装    : iptables-services-1.8.4-23.0.1 [                              ] 3/7
  安装    : iptables-services-1.8.4-23.0.1 [=                             ] 3/7
  安装    : iptables-services-1.8.4-23.0.1 [==                            ] 3/7
  安装    : iptables-services-1.8.4-23.0.1 [===                           ] 3/7
  安装    : iptables-services-1.8.4-23.0.1 [====                          ] 3/7
  安装    : iptables-services-1.8.4-23.0.1 [=====                         ] 3/7
  安装    : iptables-services-1.8.4-23.0.1 [=================             ] 3/7
  安装    : iptables-services-1.8.4-23.0.1 [============================= ] 3/7
  安装    : iptables-services-1.8.4-23.0.1.an8.1.x86_64                     3/7 


  运行脚本: iptables-services-1.8.4-23.0.1.an8.1.x86_64                     3/7 


  升级    : iptables-ebtables-1.8.4-23.0.1 [                              ] 4/7
  升级    : iptables-ebtables-1.8.4-23.0.1 [=                             ] 4/7
  升级    : iptables-ebtables-1.8.4-23.0.1 [====                          ] 4/7
  升级    : iptables-ebtables-1.8.4-23.0.1 [=====                         ] 4/7
  升级    : iptables-ebtables-1.8.4-23.0.1 [============================= ] 4/7
  升级    : iptables-ebtables-1.8.4-23.0.1.an8.1.x86_64                     4/7 


  运行脚本: iptables-ebtables-1.8.4-23.0.1.an8.1.x86_64                     4/7 


  运行脚本: iptables-ebtables-1.8.4-22.0.2.an8.1.x86_64                     5/7 


  清理    : iptables-ebtables-1.8.4-22.0.2 [                              ] 5/7
  清理    : iptables-ebtables-1.8.4-22.0.2 [===                           ] 5/7
  清理    : iptables-ebtables-1.8.4-22.0.2 [======                        ] 5/7
  清理    : iptables-ebtables-1.8.4-22.0.2 [=========                     ] 5/7
  清理    : iptables-ebtables-1.8.4-22.0.2 [=============                 ] 5/7
  清理    : iptables-ebtables-1.8.4-22.0.2 [================              ] 5/7
  清理    : iptables-ebtables-1.8.4-22.0.2 [===================           ] 5/7
  清理    : iptables-ebtables-1.8.4-22.0.2 [=======================       ] 5/7
  清理    : iptables-ebtables-1.8.4-22.0.2 [==========================    ] 5/7
  清理    : iptables-ebtables-1.8.4-22.0.2.an8.1.x86_64                     5/7 

  运行脚本: iptables-ebtables-1.8.4-22.0.2.an8.1.x86_64                     5/7 


  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [                              ] 6/7
  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [=                             ] 6/7
  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [==                            ] 6/7
  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [===                           ] 6/7
  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [====                          ] 6/7
  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [=====                         ] 6/7
  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [======                        ] 6/7
  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [=======                       ] 6/7
  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [========                      ] 6/7
  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [=========                     ] 6/7
  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [==========                    ] 6/7
  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [===========                   ] 6/7
  清理    : iptables-1.8.4-22.0.2.an8
.1.x8 [============                  ] 6/7

  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [=============                 ] 6/7

  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [==============                ] 6/7

  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [===============               ] 6/7

  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [================              ] 6/7
  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [=================             ] 6/7

  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [==================            ] 6/7

  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [===================           ] 6/7
  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [====================          ] 6/7
  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [=====================         ] 6/7

  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [======================        ] 6/7
  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [=======================       ] 6/7

  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [========================      ] 6/7
  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [=========================     ] 6/7
  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [==========================    ] 6/7
  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [===========================   ] 6/7
  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [============================  ] 6/7
  清理    : iptables-1.8.4-22.0.2.an8.1.x8 [============================= ] 6/7

  清理    : iptables-1.8.4-22.0.2.an8.1.x86_64                              6/7 

  运行脚本: iptables-1.8.4-22.0.2.an8.1.x86_64                              6/7 


  清理    : iptables-libs-1.8.4-22.0.2.an8 [                              ] 7/7
  清理    : iptables-libs-1.8.4-22.0.2.an8 [=                             ] 7/7
  清理    : iptables-libs-1.8.4-22.0.2.an8 [==                            ] 7/7
  清理    : iptables-libs-1.8.4-22.0.2.an8 [===                           ] 7/7
  清理    : iptables-libs-1.8.4-22.0.2.an8 [=====                         ] 7/7
  清理    : iptables-libs-1.8.4-22.0.2.an8 [======                        ] 7/7
  清理    : iptables-libs-1.8.4-22.0.2.an8 [========                      ] 7/7
  清理    : iptables-libs-1.8.4-22.0.2.an8 [=========                     ] 7/7
  清理    : iptables-libs-1.8.4-22.0.2.an8 [==========                    ] 7/7
  清理    : iptables-libs-1.8.4-22.0.2.an8 [============                  ] 7/7
  清理    : iptables-libs-1.8.4-22.0.2.an8 [=============                 ] 7/7
  清理    : iptables-libs-1.8.4-22.0.2.an8 [===============               ] 7/7
  清理    : iptables-libs-1.8.4-22.0.
2.an8 [================              ] 7/7
  清理    : iptables-libs-1.8.4-22.0.2.an8 [=================             ] 7/7
  清理    : iptables-libs-1.8.4-22.0.2.an8 [==================            ] 7/7
  清理    : iptables-libs-1.8.4-22.0.2.an8 [====================          ] 7/7
  清理    : iptables-libs-1.8.4-22.0.2.an8 [=====================         ] 7/7
  清理    : iptables-libs-1.8.4-22.0.2.an8 [=======================       ] 7/7
  清理    : iptables-libs-1.8.4-22.0.2.an8 [========================      ] 7/7
  清理    : iptables-libs-1.8.4-22.0.2.an8 [=========================     ] 7/7
  清理    : iptables-libs-1.8.4-22.0.2.an8 [===========================   ] 7/7
  清理    : iptables-libs-1.8.4-22.0.2.an8 [============================  ] 7/7
  清理    : iptables-libs-1.8.4-22.0.2.an8.1.x86_64                         7/7 


  运行脚本: iptables-libs-1.8.4-22.0.2.an8.1.x86_64                         7/7 


  验证    : iptables-services-1.8.4-23.0.1.an8.1.x86_64                     1/7 

  验证    : iptables-1.8.4-23.0.1.an8.1.x86_64                              2/7 

  验证    : iptables-1.8.4-22.0.2.an8.1.x86_64                              3/7 

  验证    : iptables-ebtables-1.8.4-23.0.1.an8.1.x86_64                     4/7 

  验证    : iptables-ebtables-1.8.4-22.0.2.an8.1.x86_64                     5/7 

  验证    : iptables-libs-1.8.4-23.0.1.an8.1.x86_64                         6/7 

  验证    : iptables-libs-1.8.4-22.0.2.an8.1.x86_64                         7/7 



已升级:
  iptables-1.8.4-23.0.1.an8.1.x86_64                                            
  iptables-ebtables-1.8.4-23.0.1.an8.1.x86_64                                   
  iptables-libs-1.8.4-23.0.1.an8.1.x86_64                                       
已安装:
  iptables-services-1.8.4-23.0.1.an8.1.x86_64                                   

完毕!

ipset v7.1, protocol version: 7
Warning: Kernel support protocol versions 6-6 while userspace supports protocol versions 6-7

--2023-04-21 13:17:11--  http://software.tophorsekj.net/linux/shell/iptables/iptables
正在解析主机 software.tophorsekj.net (software.tophorsekj.net)... 
123.207.175.190
正在连接 software.tophorsekj.net (software.tophorsekj.net)|123.207.175.190|:80... 
已连接。
已发出 HTTP 请求,正在等待回应... 
200 OK
长度:1011 [application/octet-stream]
正在保存至: “iptables”


iptables              0%[                    ]       0  --.-KB/s               
iptables            100%[===================>]    1011  --.-KB/s  用时 0s      

2023-04-21 13:17:11 (324 MB/s) - 已保存 “iptables” [1011/1011])


[root@tkcuvxm2dwcxpe0z share]# 
******手动启动命令:systemctl start iptables.service
******安装完成******
Finished: SUCCESS