Nhung thong tin huu ich ve ubuntu server

login as root
sudo -i
using VIM editor Instead of using vi
apt-get install vim-full

Config Network
view config:
ifconfig
set ip:
ifconfig eth0 192.168.1.12 netmask 255.255.255.0
set gateway
route add default gw 192.168.1.1 dev eth0

this setting will lost when you restart server or networking serv
to set static ip for server
edit /etc/network/interfaces file
vim
/etc/network/interfaces
####################################
auto eth0:1
iface eth0:1 inet static
address 192.168.1.12
netmask 255.255.255.0
network x.x.x.x
broadcast x.x.x.x
gateway x.x.x.x
####################################
/etc/init.d/networking restart
####################################
view hostname = view
/etc/hostname file or using command:
hostname
or
/bin/hostname
set new hostname
hostname newname
or
/bin/hostname newname
Setting up DNS edit /etc/resolv.conf file
vim /etc/resolv.conf
nameserver 203.162.4.191 vnn
nameserver 210.245.24.20 fpt

Nhận xét

Bài đăng phổ biến từ blog này

Ký tự viết tắt trong chat & email

dung lượng RAM lớn nhất mà HĐH cấu trúc 32-bit nhận được

Ubuntu LAMP Server