ISO路徑 : "C:\\Users\\user\\Desktop\\我\\課業\\大三\\Linux\\CentOS-7-x86_64-LiveGNOME-1810.iso”
關閉防火牆 → gedit /etc/selinux/config (enforcing→disable) (reboot) (getenforce ⇒ Disabled)
→ systemctl stop firewalld (關閉firewalld伺服器)
→ systemctl disable firewalld (下次重開機時 停止啟用firewalld伺服器)
→ systemctl status firewalld (查看firewalld伺服器的狀態)
更改前面用戶名
hostnamectl set-hostname your_name
/* bash -> 將terminal 重新整理 */
使用hostname ping
gedit /etc/hosts
/*
ip_server hostname1_server
ip_client hostname1_client
*/
ping centos7-1
Server
getenforce /* 確認selinux關閉 */
setenforce 0 /* 暫時設定 */
systemctl status firewalld /* 確認防火牆關閉 */
systemctl disable firewalld /* 關閉防火牆 */
systemctl status sshd /* 確認SSH伺服器狀態 */
Client
ssh-keygen /* 產生公鑰和私鑰 */
ssh-copy-id root@server /* ex. ssh-copy-id root@centos7-1 */
ssh root@server /* 使用SSH直接登入 */
新增網路卡(Bridged模式),並選擇wifi網路卡(支援ipv6的)
選擇網卡 → Edit->virtual Network editor
確認IPV6_IP