$sudo vim /etc/apache2/apache2.conf
加入
ServerName 127.0.0.1
重新啟動.....OK
$sudo vim /etc/apache2/apache2.conf
加入
ServerName 127.0.0.1
重新啟動.....OK
當mail服務器架設好了之後,往往很容易被當成廣告信Server來寄信,利用SMTP Auth認證方式,只有透過帳號密碼認證過的User才能寄信
1.安裝SASL套件
$sudo apt-get install sasl2-bin
2.新增並編輯此檔
$sudo vim /etc/postfix/sasl/smtpd.conf
log_level: 3
pwcheck_method: saslauthd
mech_list: plain login
要查看哪些服務有啟動or要設定啟動狀態不需要一筆一筆輸入指令,安裝sysv-rc.conf就可以直接做設定
$ sudo apt-get install sysv-rc-conf
輸入指令查看
$ sudo sysv-rc-conf
上下左右鍵:移動,空白space鍵:選擇是否啟動,q鍵:離開
一開始選擇安裝SSH服務or下指令安裝
$sudo apt-get install openssh-server
編輯sshd_config
$sudo /etc/ssh/sshd_config
Port 2233
PermitRootLogin yes
進階設定連結IP與服務
$sudo vim /etc/hosts.allow
#設定此網段可以透過ssh連接Ubuntu Server
sshd: 192.168.0.0/24 : allow
$sudo vim /etc/hosts.deny
#設定此IP不能透過ssh連接Server
sshd:123.34.33.212:deny
#靜止所有的連接
ALL:ALL
說明:如果有[hosts.allow]設定,則過濾條件後在過濾[hosts.deny]設定。
變更Port號後,使用SSH連接的指令
ssh -p 2233 localhost
1.下載套件
http://www.webmin.com/
我是在Ubunto10 Server安裝,之前下載webmin_1.510-2_all.deb無法安裝成功,
所以下載webmin_1.510_all.deb就可以安裝成功,如果不行請多試試以前的版本吧
安裝postfix
$sudo apt-get install postfix
接下來會有兩個設定
1.選擇[Internet Site]
2.輸入@後面的顯示方式[abc.com.tw]
使用PieTTY 登入Linux系統可以顯示中文字
進入設定畫面,點選
[windows]=>[Translation]=>[Received data assumed.......character set:]將[Use font encoding]下拉選擇
[UTF-8] 就可以顯示中文字囉
安裝套件
$ sudo apt-get install vsftpd
安裝NTP套件
$ sudo apt-get install ntp
更新日期時間指令
$ sudo ntpdate time.stdtime.gov.tw
如果出現以下訊息:請先停止ntp服務
27 May 15:37:14 ntpdate[2466]: the NTP socket is in use, exiting
$ sudo /etc/init.d/ntp stop
$ sudo ntpdate time.stdtime.gov.tw
查看BIOS時間
$ sudo hwclock -r
更新BIOS時間
$ sudo hwclock -w
將每天更新時間
$ sudo crontab -e
0 0 * * * /usr/sbin/ntpdate time.stdtime.gov.tw > /dev/null 2 > &1
完成
安裝squid proxy
$ sudo apt-get install squid