[LINUX] 우분투 설치할 때 자주쓰는 명령어
* 네트워크설정
/etc/network/interfaces
---
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.133
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
dns-nameservers 168.126.63.1
---
* DNS 설정
/etc/resolv.conf 에서
nameserver 168.126.63.1
* 네트워크 재시작
/etc/init.d/networking restart
* MySQL 시작
sudo service mysql restart
* 아파치 시작
sudo service apache2 restart
* SSH 업로드 실행
$ sudo apt-get install lrzsz
$ rz
/etc/network/interfaces
---
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.0.133
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
dns-nameservers 168.126.63.1
---
* DNS 설정
/etc/resolv.conf 에서
nameserver 168.126.63.1
* 네트워크 재시작
/etc/init.d/networking restart
* MySQL 시작
sudo service mysql restart
* 아파치 시작
sudo service apache2 restart
* SSH 업로드 실행
$ sudo apt-get install lrzsz
$ rz
댓글