侧边栏壁纸
  • 累计撰写 101 篇文章
  • 累计创建 89 个标签
  • 累计收到 9 条评论

Linux常见问题和命令

bearjun
2021-01-11 / 0 评论 / 0 点赞 / 1,487 阅读 / 488 字 / 正在检测是否收录...
温馨提示:
本文最后更新于 2021-01-11,若内容或图片失效,请留言反馈。部分素材来自网络,若不小心影响到您的利益,请联系我们删除。

zip/unzip: command not found

linux系统没有自带的压缩解压工具;需要我们自己安装;当用到zip或者unzip如果没有安装就会出现unzip: Command Not Found 或 zip: Command Not Found;出现这个事因为没有安装unzip和zip;

  • Ubuntu
sudo apt-get install zip
  • CentOS
yum install -y unzip zip

Linux防火墙

  • 查看防火状态
systemctl status firewalld

service  iptables status
  • 暂时关闭防火墙
systemctl stop firewalld

service  iptables stop
  • 永久关闭防火墙
systemctl disable firewalld

chkconfig iptables off
  • 重启防火墙
systemctl enable firewalld

service iptables restart
  • 永久关闭后重启
//暂时还没有试过
chkconfig iptables on

wget命令

-bash : wget :未找到命令

yum -y install wget 

等待下载完成之后就可以用了

0

评论区