Centos7.x 修改hostname

  1. 修改hostname
hostnamectl set-hostname new_host_name
  1. 關閉防火牆
systemctl status firewalld
systemctl stop firewalld
systemctl disable firewalld
  1. 配置host
192.168.40.x  nx
  1. 配置免密
ssh-keygen
ssh-copy-id -i id_rsa.pub nx  # 注意不同用戶的authorized_keys不一樣
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章