以文本方式查看主题

-  索沛CS1.6论坛 CS反作弊 CS1.6下载 amxx sma插件 cs对战平台  (http://216.73.216.28:27015:27015/index.asp)
--  Earth.Doom  (http://216.73.216.28:27015:27015/list.asp?boardid=53)
----  明天要考的UNIX系統  (http://216.73.216.28:27015:27015/dispbbs.asp?boardid=53&id=2246662)

--  作者:MrJohnny
--  发布时间:2015-06-24 20:32:00
--  明天要考的UNIX系統

# setup

IPADDR=172.24.10.20

NETMASK=255.255.255.0

GATEWAY=172.24.10.250

DNS1=172.24.10.250

Station.domain10.example.com

# service network restart

# ping 172.24.10.250

 

3# vim /etc/yum.repos.d/rhel.repo

[rhel] baseurl=http://host.domain10.example.com/x86_64/Server/ gpgcheck=0 [root@station~] # yum list

# yum install packagename

# yum install system-config-lvm (安裝 LVM 管理員)

驗證答案yum list httpd

 

4[root@station ~]# groupadd testgroup

[root@station ~]# useradd -G testgroup test1 -u 1234; passwd test 1

[root@station ~]# useradd -G testgroup test2; passwd test 2

[root@station ~]# useradd -s /sbin/nologin test3; passwd test3

 

9# mkdir /home/testdir

# chgrp testgroup /home/testdir

# chmod 2770 /home/testdir

驗證答案# ls -ld /home/testdir

 

10系統/管理/日期時間 加入host.domain10.example.com切記按ENTER確定

# chkconfig --list ntpd

# cat /etc/ntp.conf | grep host.domain10.example.com

驗證指令# ntpq –p

 


--  作者:MrJohnny
--  发布时间:2015-06-24 20:33:00
--  

11ftp://host.domain10.example.com/ pub/updates複製

# rpm -ivh kernel-firmware-2.6.32-71.7.1.el6.noarch.rpm

# rpm -ivh kernel-2.6.32-71.7.1.el6.x86_64.rpm

Reboot新核心

12#yum install sssd

系統->管理->認證 LDAP 認證模式

DN “dc=domain10,dc=example,dc=com”

 “ldap://host.domain10.example.com”依序輸入,並勾選使用 TLS 來為連線加密,最後點選下載 CA ftp://host.domain10.example.com/pub/domain10.crt 後確認再套用即可完成 LDAP 認證服務連接。

驗證指令# su – ldapuser10

 

13# vim /etc/auto.master

/rhome /etc/auto.ldapuser

# vim /etc/auto.ldapuser

*  -vers=3 host.domain10.example.com:/rhome/&

# chkconfig --list autofs

# service autofs restart

驗證指令# su – ldapuser10            $ pwd      exit

 

14# rpm -q vsftpd

# yum install vsftpd         y

# chkconfig vsftpd on

# chkconfig --list vsftpd

# service vsftpd start

# touch /var/ftp/pub/test.txt

# ftp station.domain10.example.com

ftp/cd pub/ls/get test.txt/put install.log/exit

驗證指令# ls -l test.txt

 

14# rpm -q vsftpd

# yum install vsftpd         y

# chkconfig vsftpd on

# chkconfig --list vsftpd

# service vsftpd start

# touch /var/ftp/pub/test.txt

# ftp station.domain10.example.com

ftp/cd pub/ls/get test.txt/put install.log/exit

驗證指令# ls -l test.txt

 


--  作者:MrJohnny
--  发布时间:2015-06-24 20:34:00
--  

16fdisk /dev/sda     p      n      e      4      ENTER ENTER  n  ENTER    +128M    

p t 5 82 p wq

#reboot

#mkswap -L SWAP /dev/sda5

#swapon /dev/sda5

#free -m

#vi /etc/fstab

/dev/sda5 swap swap defaults 0 0

驗證答案#free –m

 

17#fdisk –l

# fdisk /dev/sda      c      p      n      ENTER     ENTER     t       4      8e    p      wq

# partprobe

# reboot

# fdisk -l /dev/sda

# pvcreate /dev/sda4

# pvscan

# vgcreate -s 16M testvg /dev/sda4

# vgdisplay testvg

# lvcreate -l 10 -n testlv testvg

# lvdisplay /dev/testvg/testlv

# mkfs [TAB][TAB]

# mkfs.ext4 /dev/testvg/testlv

# mkdir /mnt/testlv

# vim /etc/fstab

# cat /etc/fstab | grep /dev/testvg/testlv

# mount –a

# mount | grep /mnt/testlv

 

18# df -h | grep vo

# umount /home

# e2fsck –f /dev/myvol/vo

# resize2fs /dev/myvol/vo 128M

# lvreduce –L 128M /dev/myvol/vo

驗證指令# df –h

 

19# lvscan | grep vo

# vgdisplay myvol

# lvextend -L 320M /dev/myvol/vo

# resize2fs /dev/myvol/vo

驗證指令# df -h

17#fdisk –l

# fdisk /dev/sda      c      p      n      ENTER     ENTER     t       4      8e    p      wq

# partprobe

# reboot

# fdisk -l /dev/sda

# pvcreate /dev/sda4

# pvscan

# vgcreate -s 16M testvg /dev/sda4

# vgdisplay testvg

# lvcreate -l 10 -n testlv testvg

# lvdisplay /dev/testvg/testlv

# mkfs [TAB][TAB]

# mkfs.ext4 /dev/testvg/testlv

# mkdir /mnt/testlv

# vim /etc/fstab

# cat /etc/fstab | grep /dev/testvg/testlv

# mount –a

# mount | grep /mnt/testlv

 

18# df -h | grep vo

# umount /home

# e2fsck –f /dev/myvol/vo

# resize2fs /dev/myvol/vo 128M

# lvreduce –L 128M /dev/myvol/vo

驗證指令# df –h

 

19# lvscan | grep vo

# vgdisplay myvol

# lvextend -L 320M /dev/myvol/vo

# resize2fs /dev/myvol/vo

驗證指令# df -h


--  作者:MrJohnny
--  发布时间:2015-06-24 20:35:00
--  
看來得要通宵背指令了图片点击可在新窗口打开查看图片点击可在新窗口打开查看
--  作者:Dortmund
--  发布时间:2015-06-24 21:34:00
--  
沒看懂
--  作者:Sup3rMari0
--  发布时间:2015-07-09 3:20:00
--  
What is that ??