1. 1
3 Installing Linux in a3 Installing Linux in a
Server ConfigurationServer Configuration
P1 Installing Linux as a ServerP1 Installing Linux as a Server
2. 2
N畛i dungN畛i dung
T坦m t畉t c叩c b動畛c ci 畉t.
Ki畛m tra s畛 h畛 tr畛 ph畉n c畛ng.
C畉u h狸nh m畉ng.
Linux file system.
Linux boot loader.
C叩c mode ho畉t 畛ng c畛a Linux.
3. 3
C叩c b動畛c ci 畉tC叩c b動畛c ci 畉t
Ch畛n l畛a ki畛u ci 畉t:
T畛 CD local.
Qua m担i tr動畛ng m畉ng.
T畛 m畛t volume tr棚n network server.
D湛ng CD shared t畛 m叩y t鱈nh kh叩c
Qua FTP, HTTP.
4. 4
C叩c b動畛c ci 畉t (tt)C叩c b動畛c ci 畉t (tt)
Ki畛m tra s畛 h畛 tr畛 ph畉n c畛ng.
Ph但n chia partition:
Ph但n chia t畛 畛ng ho畉c theo 畛nh d畉ng ri棚ng.
B畉t bu畛c ph畉i c坦 ph但n v湛ng / v /swap.
Chia c叩c ph但n v湛ng c嘆n l畉i theo nhu c畉u.
C畉u h狸nh m畉ng.
Ch畛n l畛a software 畛 ci 畉t.
Ch畛n l畛a boot loader.
Ti畉n hnh ci 畉t.
7. 7
Linux file systems (tt)Linux file systems (tt)
M畉c 畛nh, c叩c ph但n v湛ng 動畛c mount tr棚n ph但n
v湛ng /
/swap: virtual memory.
/bin: l畛nh quan tr畛ng.
/boot: file c畉u h狸nh boot loader.
/dev: file devices.
/etc: file c畉u h狸nh.
/home: d畛 li畛u c畛a users.
/lib: file th動 vi畛n quan tr畛ng, v kernel module.
8. 8
C畉u h狸nh m畉ngC畉u h狸nh m畉ng
Thi畉t l畉p c叩c th担ng s畛 c畉u h狸nh m畉ng cho
server:
IP Address
Netmask
Gateway IP Address
Nameserver IP Address
Domain name
Hostname
9. 9
Linux boot loaderLinux boot loader
Boot loader
LILO
GRUB
Boot loader cho ph辿p ch畛n h畛 i畛u hnh
no 畛 boot.
T畉i boot loader, c坦 th畛 can thi畛p b畉ng
command 畛 thay 畛i c叩c tham s畛 boot.
10. 10
Linux boot loader (tt)Linux boot loader (tt)
File grub.conf
boot=/dev/sda
default=0
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Linux Fedora (2.6.5-1.358smp)
root (hd0,0)
kernel /vmlinuz-2.6.5-1.358smp ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.5-1.358smp.img
title Windows 2000
rootnoverify (hd0,0)
chainloader +1
11. 11
Mode ho畉t 畛ng c畛a LinuxMode ho畉t 畛ng c畛a Linux
Linux c坦 c叩c mode ho畉t 畛ng sau:
0: shutdown.
1: single mode.
2: multi user without networking.
3: multi user with networking.
4: unused.
5: graphic.
6: reboot.