linux常用设置

1、修改主机名

hostnamectl set-hostname desktop.group8.example.com

 

2、命令修改ip    

nmcli connection modify eth0 ipv4.addresses 172.24.8.10/24 ipv4.gateway 172.24.8.254 ipv4.dns 172.24.8.254 ipv4.dns-search group8.example.com ipv4.method manual connection.autoconnet yes connection.interfaces-name eth0
nmcli connection reload
nmcli connection down eth0
nmcli connection up eth0
  

3、 修改selinux
vim /etc/selinux/config

 

4、 配置yum仓库
yum-config-manager --add-repo=””

posted @ 2020-12-21 10:47  祝福满地  阅读(124)  评论(0编辑  收藏  举报