Before giving you a detailed introduction to the server, first let everyone know about the Ubuntu server, and then give a comprehensive introduction to the Ubuntu server, hoping to be useful to everyone. The Ubuntu team makes a public commitment to its users: Ubuntu is always free and there is no additional fee for the "Enterprise Edition". In the same free team, bring the best work results to everyone. A website is built in the lab and placed under the Ubuntu server in the VM. You need to configure the website so that it can be accessed within the LAN.
The VM is changed to the "bridge" mode.
(1) modify the IP address of ubuntu Server
Open
/Etc/Network/interfacessudo Vim/etc/Network/interfaces
Add the following statement:
Auto eth0iface eth0 Inet staticaddress XXX. XXX # IP address netmask XXX. XXX # subnet mask gateway XXX. XXX # Gateway
(2) modify the DNS of ubuntu Server
How to modify the DNS address of an Eni
Sudo Vim/etc/resolv. conf
Change to the following content:
Search localdomainnameserver 172.16.3.4 the DNS you want to modify to: dnsnameserver 172.16.3.3
(3) The last step of ubuntu server is also the most important step.
Add the command to restart the network configuration in RC. Local:
Sudo/etc/init. d/networking restart
Address: http:// OS .51cto.com/art/201001/175343.htm