我就是奇迹

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Linux常用命令(2)

1. SSH服务


(1)service sshd restart  重启SSH服务。
  service sshd start 启动服务
  service sshd stop 停止服务
(2)chkconfig sshd on 设置开机启动

2.  解压.tgz

首先:打开终端
(1)进入下载路径下,比如我的就是进入/opt/module/sofeware下。
输入命令: cd /opt/module/sofeware
(2)解压到当前文件夹
输入:tar zxvf  文件名.tgz -C ./
(3)解压到指定文件夹下
 输入:tar  zxvf  文件名.tgz  -C /指定路径

3.  iptables防火墙

# 查看防火墙状态
service iptables status
# 停止防火墙
service iptables stop
# 启动防火墙
service iptables start  
 # 重启防火墙
service iptables restart
  
# 永久关闭防火墙
chkconfig iptables off  
 # 永久关闭后重启
chkconfig iptables on

 

posted on 2020-06-07 15:35  我就是奇迹  阅读(61)  评论(0)    收藏  举报