2011年12月13日 星期二

Ubuntu Server 安裝筆記

from:http://blog.yam.com/leo2016/article/19679466


雖然Ubuntu Server 安裝已經非常的簡單,但還是記錄一下好了,當作日後參考的依據,畢竟人老了,腦子無法記憶太多東西,只好靠筆記來補強了

安裝SSHD
sudo apt-get install ssh

安裝LAMP套件
sudo apt-get install apache2-mpm-prefork libapache2-mod-php5 php5-gd php5-imagick php5-mysql mysql-server

將IP設定成固定IP
sudo vi /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.2.250
netmask 255.255.255.0
gateway 192.168.2.1

# sudo /etc/init.d/networking restart

顯示英文資訊
export LC_ALL=C

沒有留言:

張貼留言