How to modify hosts under centos

王林
Release: 2020-05-23 09:31:34
Original
2931 people have browsed it

How to modify hosts under centos

First open the /etc/hosts file

vim /etc/hosts
Copy after login

Then add the rules we need to set in the /etc/hosts file, for example:

How to modify hosts under centos

After the modification is completed, restart the network to take effect

/etc/init.d/network restart
Copy after login

Recommended tutorial: centos tutorial

The above is the detailed content of How to modify hosts under centos. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact [email protected]
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!