You are on page 1of 7

500MB /data, ext3,

470-520MB
1. /home 750mb
2. /home 7 00MB
3.

raid0 1024mb. ext3, /storage

4. swap 512MB
5. redhat
dd if=/dev/zero of=/home/redhat/file bs=1024 count=30

Dd if=/dev/zero of=/home/redhat/file bs=1024 count=70


( KB 1KB=1024byte 1byte=8bite )
KB.

2.

root redhat2009

/etc/sysconfig/network-script/ifcfg-eth0

/etc/resolve.conf
3. ip_forward
4 icmp
5

http://Server1.example.com/pub/kernel/kernel-PAE-2.6.1853.el5.i686.rpm

rpm-ivh http://Server1.example.com/pub/kernel/kernel-PAE-2.6.1853.el5.i686.rpm
6.
PAE 32GB
4GB
7 redhat crontab,
cpu 10
comm,pid,uid, /tmp/cpu.txt,
root 9 11 2 10
Ps axo %cpu,%mem,comm,pid,uid | sort -r -k 1 | head n 11

*/10 9,11,14 * * * /bin/ps axo %cpu,%mem,comm,pid,uid | sort r k


1 | head n 11 >>/tmp/cpu.txt
Su redhat
Crontab e
ps axo o

Touch /tmp/process.txt
Vim process.txt
/bin/ps axo %cpu,%mem,comm,pid,uid | sort r k 1 | head n 11
>>/tmp/cpu.txt
Chmod o+x /tmp/process.txt( )
-4567890-=

*/10 9,11,14 * * * /tmp/process.txt

tpp server1.example.com
stationx,x station number

http://server1.example.com/printer/stationx
system-config-printer
printer name printer forward
ipp Hostname
server1.example.com
Printername station6
text-only printer
Default Printer
lpr /etc/fstab /etc/fstab

Lpq
/var/spool/cups d
lpr

user1,user2,user3 rhce user1


rhce

user1 /storage rhce


,user2 user3

/storage 755,

setfacl m u:user1:rwx /storage


ls ld /storage drwxrwxr-x+,
7 5 getfacl /storage
r-x,
Facl mask
rwx, r-x, getfacl
mask rwx rwx
3

/data root
/data root
(g+s)

User3

/storage . example.com

FTP Server

FTP Server
example.com FTP Server
user1 user3
home

home selinux
Setsebool P ftp_home_dir = 1
SAMBA
samba
1. smbgroup

2. /storage shared
3. user1
password
4.
5. rhce valid user
context
Chcon t samba_share_t /shared( )
6 example.com

Web Server
1.

http://server1.example.com/pub/cert/station.html
index.html
example.com

wget http://server1.example.com/pub/cert/station.html
station.heml /var/www/html
cp selinux context
mv selinux mv
context
2.

http://server1.example.com/pub/cert/www.html
index.html,
wwwx.example.com stationx.example.com dns
192.168.0.x,

alice bob stationx.example.com


station.html

wwwx.example.com

www.html

Squid
squid.
1

squid 8080

example.com

rar wav mp3


3

news,mail

http://station26.example.com /mail
http://station26.example.com/new

example.com
cracker.org

REJECT
2

user1 user2

/var/spool/mail user3

user2 10mb

context , ,
/var/spool/mail context 777
755 context
5 example.com pop3
6 ssl

You might also like