关于centos的笔记

centos密码:cen111
centos查看ip:ip addr
centos开启默认关闭的网关:https://blog.csdn.net/dancheren/article/details/73611878
centos重启:reboot
centos查看防火墙状态:firewall-cmd --state
centos停止firewall:systemctl stop firewalld.service
centos禁止firewall开启启动:systemctl disable firewalld.service
centos里没有pip命令:1)查看是否需要修改nameserve(/etc/resolv.conf)
    2)查看是否安装依赖包,没安装先安装:yum install epel-release
  3)更新文件库:yum -y update
    4)安装pip:yum -y install python-pip

猜你喜欢

转载自blog.csdn.net/weixin_40306397/article/details/82986418