Linux 包的安装

下载软件

yum

  1. yum 是一种集成式的安装工具,详见 yum介绍
  2. 实际上是先分析一个包的依赖,然后将所有依赖与包一起安装
  3. 常用安装包安装
    • ifconfig yum install -y net-tools
    • nginx nginx 不能直接使用yum 下载,需要先下载nginx 安装包,配置yum 本地仓库,再使用 yum 安装
      	# 下载对应的nginx rpm包
      
  4. 常见 yum 命令 yum使用, yum-config-manager 通过 yum install -y yum-untils
  5. yum 下载过程中可能会卡住不动,现象是速度以及时间还有进度都会冻住,这时敲击回车,它就会继续显示

rpm

防火墙 systemctl stop firewalld.service

  • centos 7 使用的是firewalld
  • centos 6 以前使用的是 iptables

chkconfig

systemctl

firewalld

ps

grep

  • 防火墙可以禁用端口,常用命令, 一般服务后都有一个 d
    	systemctl stop
    	systemctl start
    	systemctl restart
    	systemctl disable filewalld
    

猜你喜欢

转载自blog.csdn.net/weixin_42290927/article/details/86213313