You are on page 1of 39

www.linuxidc.

com

Linux

LinuxLinuxIDC.com 2006 9 25 Linux


IDCLinuxIDC
Linux

LinuxIDC.comUbuntuFedoraSUSEITLinux

V1.0

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

1 2010.9.26 V1.0

10

1 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com


1 ................................................................................................................... 6
1.1 ............................................................................................................... 6
1.2 ........................................................................................... 6
2 Linux ............................................................................................. 7
2.1 ........................................................................................................... 7
2.2 ................................................................................................................... 8
2.2.1 boot............................................................................................................ 8
2.2.2 LVM .......................................................................................................... 8
2.2.3 ............................................................................................................. 10
2.2.4 Swap ........................................................................................................ 10
2.3 IP ............................................................................................................. 11
2.4 ............................................................................................................. 12
2.5 ................................................................................................................. 12
2.6 ................................................................................................................. 13
2.7 ............................................................................................................. 13
2.7.1 ......................................................................................................... 13
2.7.2 ......................................................................................................... 14
2.7.3 ......................................................................................................... 14
2.7.4 ............................................................................................................. 15
2.7.5 ......................................................................................................... 15
2.7.6 ............................................................................................................. 15
2.7.7 ................................................................................................................. 16
2.8 ............................................................................................................. 17
2.8.1 ..................................................................................................... 17
2.8.2 SELinux........................................................................................................... 17
2.9 ............................................................................................................. 18
2.9.1 ................................................................................................. 18
2.9.2 Root ................................................................................. 18
2.9.3 ............................................................................................. 18
2.10 ......................................................................................... 19
3 Oracle .......................................................................... 19
3.1 ......................................................................................................... 19
3.2 ................................................................................................................. 19
3.2.1 boot.......................................................................................................... 20
3.2.2 LVM ........................................................................................................ 20
3.2.3 ............................................................................................................. 20
3.2.4 Swap ........................................................................................................ 20
3.2.5 tmp........................................................................................................... 20
3.2.6 var............................................................................................................ 21
3.2.7 usr ............................................................................................................ 21
3.2.8 u01 .......................................................................................................... 22
3.3 IP ............................................................................................................. 22
3.4 ............................................................................................................. 22
2 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

3.5 ................................................................................................................. 23
3.6 ................................................................................................................. 23
3.7 ............................................................................................................. 23
3.7.1 ......................................................................................................... 23
3.7.2 ......................................................................................................... 23
3.7.3 ......................................................................................................... 23
3.7.4 ............................................................................................................. 23
3.7.5 ......................................................................................................... 23
3.7.6 ............................................................................................................. 24
3.7.7 ................................................................................................................. 24
3.8 ............................................................................................................. 24
3.8.1 ..................................................................................................... 24
3.8.2 SELinux........................................................................................................... 24
3.9 ............................................................................................................. 24
3.9.1 ................................................................................................. 24
3.9.2 Root ................................................................................. 25
3.9.3 ............................................................................................. 25
3.10 ................................................................................................. 25
3.10.1 ................................................................................................. 26
3.11 ............................................................................................. 27
4 IDS .......................................................................................... 27
4.1 ......................................................................................................... 27
4.2 ................................................................................................................. 28
4.2.1 boot.......................................................................................................... 28
4.2.2 LVM ........................................................................................................ 28
4.2.3 ............................................................................................................. 28
4.2.4 Swap ........................................................................................................ 28
4.2.5 var............................................................................................................ 29
4.2.6 opt............................................................................................................ 29
4.3 IP ............................................................................................................. 30
4.4 ............................................................................................................. 30
4.5 ................................................................................................................. 30
4.6 ................................................................................................................. 30
4.7 ............................................................................................................. 30
4.7.1 ......................................................................................................... 30
4.7.2 ......................................................................................................... 30
4.7.3 ......................................................................................................... 30
4.7.4 ............................................................................................................. 31
4.7.5 ......................................................................................................... 31
4.7.6 ............................................................................................................. 31
4.7.7 ................................................................................................................. 31
4.8 ............................................................................................................. 31
4.8.1 ..................................................................................................... 31
4.8.2 SELinux........................................................................................................... 32
4.9 ............................................................................................................. 32
4.9.1 ................................................................................................. 32
4.9.2 Root ................................................................................. 32
4.9.3 ............................................................................................. 32

3 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

4.10 ......................................................................................... 33
5 WAS ........................................................................................ 33
5.1 ......................................................................................................... 33
5.2 ................................................................................................................. 34
5.2.1 boot.......................................................................................................... 34
5.2.2 LVM ........................................................................................................ 34
5.2.3 ............................................................................................................. 34
5.2.4 Swap ........................................................................................................ 34
5.2.5 opt............................................................................................................ 35
5.3 ............................................................................................................. 35
5.4 ................................................................................................................. 35
5.5 ................................................................................................................. 35
5.6 ............................................................................................................. 36
5.6.1 ......................................................................................................... 36
5.6.2 ......................................................................................................... 36
5.6.3 ......................................................................................................... 36
5.6.4 ............................................................................................................. 36
5.6.5 ......................................................................................................... 36
5.6.6 ............................................................................................................. 36
5.6.7 ................................................................................................................. 36
5.7 ............................................................................................................. 37
5.7.1 ..................................................................................................... 37
5.7.2 SELinux........................................................................................................... 37
5.8 ............................................................................................................. 37
5.8.1 ................................................................................................. 37
5.8.2 Root ................................................................................. 37
5.8.3 ............................................................................................. 38
5.9 ............................................................................................. 38

4 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com


Linux
Linux
Linux

Linux Linux


XXX

5 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

1.1

1. CPU 32 64

2.

Linux RedHat AS5 Update4

1.2

1.

2.

3. IP IPV6

4.

5.

6. SELinux

6 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

2 Linux

2.1

Linux AS5

7 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

2.2

/boot LVM

LVM /dev/sda2
[-Swap -/boot ]

/dev/sd3 Swap

2.2.1 boot


/boot /dev/sda1

2.2.2 LVM


LVM LVM

8 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

LVM LVM LVM

LVMgroup

9 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

2.2.3

LVM

=-Swap -/boot
20GBSwap 2GB 100MB
18352MB 18000MB
352MB

root

2.2.4 Swap

Swap
1024

4GB 4GB 8GB 8GB

Swap *2 *1.5 *1

Swap

10 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

Swap swap

2.3 IP

IPV6 IP
DNS

11 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

2.4

2.5

12 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

2.6

2.7

2.7.1

X GNOME

13 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

2.7.2

Editors

2.7.3


gcc

14 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

2.7.4

FTP windows server


2.7.5

2.7.6

15 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

2.7.7

16 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

2.8

Linux AS5 SELinux

2.8.1

2.8.2 SELinux

SELinux ,

17 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

2.9

2.9.1

X
vi /etc/inittab
id:3:initdefault: // 3

2.9.2 Root

root
root
vi /etc/ssh/sshd_config
PermitRootLogin no //
root

2.9.3


# setup

yum-updatesdbluetoothekrb5-telnetgssftpkrb5-telnetvsftpd

18 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

sendmail

2.10

# cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0.bak
# cp /etc/fstab /etc/fstab.bak
# cp /etc/system /etc/system.bak
# cp /etc/rc.d/rc.sysinit /etc/rc.d/rc.sysinit.bak

3 Oracle

Oracle Linux AS5.4

2 Linux

3.1

Linux AS5

3.2

73GB 2 Linux
146GB

Oracle

Swap /tmp/var/usr/u01

19 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

3.2.1 boot


/boot /dev/sda1

3.2.2 LVM


LVM LVM

LVM LVM LVM

LVMgroup

3.2.3

LVM 2

=-Swap -/boot
-

root

3.2.4 Swap

Swap
1024

2GB 2GB 8GB 8GB

Swap *1.5 *1 *0.75

Swap swap

3.2.5 tmp

/tmp 5GB 1024 5120MBtmp

20 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

3.2.6 var

/var 10GB 1024 10240MBvar

3.2.7 usr

/usr 10GB 1024 10240MBusr

21 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

3.2.8 u01

/u01 30GB 1024 30720MBu01

3.3 IP

IPV6 IP
DNS

3.4

22 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

3.5

3.6

3.7

3.7.1

X GNOME

3.7.2

Editors

3.7.3


gcc

3.7.4

FTP windows server


3.7.5

23 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

3.7.6

3.7.7

3.8

Linux AS5 SELinux

3.8.1

3.8.2 SELinux

SELinux ,

3.9

3.9.1


X
vi /etc/inittab
id:3:initdefault: // 3

24 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

3.9.2 Root

root
root
vi /etc/ssh/sshd_config
PermitRootLogin no //
root

3.9.3


# setup

yum-updatesdbluetoothekrb5-telnetgssftpkrb5-telnetsendmail
vsftpd

3.10

oracle oracle

# rpm -q gcc gcc-c++ glibc make openmotif setarch compat-db compat-gcc compat-gcc-c++ compat-libstdc++
compat-libstdc++-devel

25 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

Linux AS5.4 64

openmotif is not installed


package compat-db is not installed
package compat-gcc is not installed
package compat-gcc-c++ is not installed
package compat-libstdc++ is not installed
package compat-libstdc++-devel is not installed

3.10.1

openmotif libXp.so.6()(64bit)

# mount /dev/cdrom /mnt


# cd /mnt/server
# rpm -ivh libXp-1.0.0-8.1.el5.x86_64.rpm
warning: libXp-1.0.0-8.1.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:libXp ########################################### [100%]
# rpm -ivh openmotif-2.3.1-2.el5.x86_64.rpm
warning: openmotif-2.3.1-2.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:openmotif ########################################### [100%]
# rpm -q openmotif
openmotif-2.3.1-2.el5

compat-db

# rpm -ivh compat-db-4.2.52-5.1.x86_64.rpm


warning: compat-db-4.2.52-5.1.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
Preparing... ########################################### [100%]
1:compat-db ########################################### [100%]
# rpm -q compat-db

gcc

# rpm -ivh compat-gcc-7.3-2.96.128.i386.rpm


warning: compat-gcc-7.3-2.96.128.i386.rpm: Header V3 DSA signature: NOKEY, key ID 025e513b
26 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

Preparing... ########################################### [100%]


1:compat-gcc ########################################### [100%]
# rpm -e compat-libstdc++-296-2.96-138.i386
# rpm -ivh compat-libstdc++-7.3-2.96.128.i386.rpm
warning: compat-libstdc++-7.3-2.96.128.i386.rpm: Header V3 DSA signature: NOKEY, key ID 025e513b
Preparing... ########################################### [100%]
1:compat-libstdc++ ########################################### [100%]
# rpm -ivh compat-libstdc++-devel-7.3-2.96.128.i386.rpm
warning: compat-libstdc++-devel-7.3-2.96.128.i386.rpm: Header V3 DSA signature: NOKEY, key ID
025e513b
Preparing... ########################################### [100%]
1:compat-libstdc++-devel ########################################### [100%]
# rpm -ivh compat-gcc-c++-7.3-2.96.128.i386.rpm
warning: compat-gcc-c++-7.3-2.96.128.i386.rpm: Header V3 DSA signature: NOKEY, key ID 025e513b
Preparing... ########################################### [100%]

3.11

# cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0.bak
# cp /etc/fstab /etc/fstab.bak
# cp /etc/system /etc/system.bak
# cp /etc/rc.d/rc.sysinit /etc/rc.d/rc.sysinit.bak

4 IDS

IDS Linux AS5.4

IDS

2 Linux

4.1

Linux AS5

27 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

4.2

73GB 2 Linux
146GB

Oracle

Swap /var/opt

4.2.1 boot


/boot /dev/sda1

4.2.2 LVM


LVM LVM

LVM LVM LVM

LVMgroup

4.2.3

LVM 2

=-Swap -/boot
-

root

4.2.4 Swap

Swap
1024

Swap swap

28 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

4GB 4GB 8GB 8GB

Swap *2 *1.5 *1

4.2.5 var

/var 30GB 1024 30720MBvar

4.2.6 opt

/opt 30GB 1024 30720MBopt

29 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

4.3 IP

IPV6 IP
DNS

4.4

4.5

4.6

4.7

4.7.1

X GNOME

4.7.2

Editors

4.7.3

30 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

4.7.4

FTP windows server


4.7.5

4.7.6

4.7.7

4.8

Linux AS5 SELinux

4.8.1

31 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

4.8.2 SELinux

SELinux ,

4.9

4.9.1


X
vi /etc/inittab
id:3:initdefault: // 3

4.9.2 Root

root
root
vi /etc/ssh/sshd_config
PermitRootLogin no //
root

4.9.3


# setup

32 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

yum-updatesdbluetoothekrb5-telnetgssftpkrb5-telnetsendmail
vsftpd

4.10

# cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0.bak
# cp /etc/fstab /etc/fstab.bak
# cp /etc/system /etc/system.bak
# cp /etc/rc.d/rc.sysinit /etc/rc.d/rc.sysinit.bak

5 WAS

WAS Linux AS5.4

WAS

2 Linux

5.1

Linux AS5

33 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

5.2

73GB 2 Linux
146GB

Oracle

Swap /opt

5.2.1 boot


/boot /dev/sda1

5.2.2 LVM


LVM LVM

LVM LVM LVM

LVMgroup

5.2.3

LVM 2

=-Swap -/boot
-

root

5.2.4 Swap

Swap
1024

Swap swap

34 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

4GB 4GB 8GB 8GB

Swap *2 *1.5 *1

5.2.5 opt

/opt 30GB 1024 30720MBopt

IP

IPV6 IP
DNS

5.3

5.4

5.5

35 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

5.6

5.6.1

X GNOME

5.6.2

Editors

5.6.3


java

5.6.4

FTP windows server


5.6.5

5.6.6

5.6.7

36 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

5.7

Linux AS5 SELinux

5.7.1

5.7.2 SELinux

SELinux ,

5.8

5.8.1


X
vi /etc/inittab
id:3:initdefault: // 3

5.8.2 Root

root
root
vi /etc/ssh/sshd_config
PermitRootLogin no //
root

37 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux
www.linuxidc.com

5.8.3


# setup

yum-updatesdbluetoothekrb5-telnetgssftpkrb5-telnetsendmail
vsftpd

5.9

# cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0.bak
# cp /etc/fstab /etc/fstab.bak
# cp /etc/system /etc/system.bak
# cp /etc/rc.d/rc.sysinit /etc/rc.d/rc.sysinit.bak

==========

38 38

Linux(LinuxIDC.com) Ubuntu,Fedora,SUSEITLinux

You might also like