🚀 Is building a website too difficult? Let me guide you step by step—Learn about the 「Naibabiji WordPress Website Building Coaching Service」 →

Solution for No Internet After Installing CentOS7 on VMware Virtual Machine

In order to record for novice usersWebsite Building Video Tutorial, Naiba installed a CentOS7 system using a VMware virtual machine on his computer. After installation, it couldn't connect to the internet. After searching, he found the reason: after a default minimal installation of CentOS7 on a virtual machine, the default network card is not set to start on boot. So, you just need to manually enable it.The method is as follows:Use the following command to edit the file (yours might not be ifcfg-ens33)
vi /etc/sysconfig/network-scripts/ifcfg-ens33
Change ONBOOT=no to ONBOOT=yes, which means start on boot. If you don't know how to edit, please enter the code in the following order
i //进入编辑模式
用键盘上下左右,移动到ONBOOT=no
删除no,并且修改为yes
按ESC
输入:wq回车
Then restart the network card: service network restart Use ip addr to view the assigned IP address. Ping blog.naibabiji.com; if it pings successfully, it proves the CentOS7 system inside the virtual machine can access the internet.

🚀 Still feeling confused after reading the tutorial? Let me guide you step-by-step.

「Naibabiji WordPress Website Building Coaching Service」—From choosing a domain and buying hosting, to installing a Theme and publishing content, I「ll coach you through every step, helping you avoid detours and reach your goal directly.

👉 Learn about the Website Building Coaching Service
🔒

Comments are closed

The comment function for this article is closed. If you have any questions, please feel free to contact us through other channels.

×
二维码

Scan QR Code to Follow

AI Website Building Assistant

🤖
Hello! I am the Naibabiji AI Assistant. How can I help you?
Quick Consultation: