首页 > 其他 > 详细

Centos

时间:2017-01-21 09:12:28      阅读:194      评论:0      收藏:0      [点我收藏+]

cmd命令

①services iptables status 查看 iptables的状态 

   :unrecognized service 表示尚未安装

②find -name iptables  查找iptables 文件

③firewall-cmd --state 查看firewall状态

④reboot 重启   reboot -r now 立刻重启

⑤halt 关机   poweroff立刻关机

⑥:q! 强制不保存退出 

  :wq! 强制保存退出

⑦编辑网络配置

   cd /etc/sysconfig/network-scripts/ 

   ls 查找目录下的所有文件

   vi 编辑

   services network restart 重启网络
⑧tar -zxvf xxx.tar.gz 解压

    分别是四个参数 x : 从 tar 包中把文件提取出来

                         z : 表示 tar 包是被 gzip 压缩过的,所以解压时需要用 gunzip 解压

                         v : 显示详细信息

                         f xxx.tar.gz : 指定被处理的文件    是 xxx.tar.gz

⑨source /etc/profile 编译文件

 

Centos

原文:http://www.cnblogs.com/jiningning/p/5849707.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!