Home Article Practice 红帽8

红帽8

2021-07-10 07:58  views:761  source:小键人2060801    

Root linux e linux 16 rd.break ctrl+x
switch_root# /sysroot /sysroot
switch_root# mount -o remount,rw /sysroot
/ /sysroot
switch_root# chroot /sysroot
shell
sh-4.2# passwd root #
new password:
retry password:
/.autorelabel
sh-4.2# touch /.autorelabel
exit
sh-4.2# exit
switch_root# exit
SELINUX
setenforce 1
getenforce
vim /etc/sysconfig/selinux
SELINUX=enforcing
SELINUXTYPE=targeted
http://classroom.example.com/content/rhel7.0/x86_64/dvd/
vim /etc/yum.repos.d/http.repo
[http]
name=http-repo
baseurl=http://classroom.example.com/content/rhel7.0/x86_64/dvd/
enabled=1
pgpcheck=0
yum repolist
vo, ext4,
/vo vo/dev/vda fdisk /dev/vda)
fdisk /dev/vda
pvcreate /dev/adc1
vgcreate vg1 /dev/vda1
lvcreate -n vo -L 200M vg1
mkfs.ext4 /dev/vg1/vo
mkdir /vo
blkid /dev/vg1/vo ( get UUID )
vim /etc/fstab
uuid /vo ext4 deafult 0 0 /dev/vg1/vo /vo ext4 defaults 0 0
mount -a
lvextend -L 290M /dev/vg1/vo
resizefs.ext4 /dev/vg1/vo
mount -a



Disclaimer: The above articles are added by users themselves and are only for typing and communication purposes. They do not represent the views of this website, and this website does not assume any legal responsibility. This statement is hereby made! If there is any infringement of your rights, please contact us promptly to delete it.

字符:    改为:
去打字就可以设置个性皮肤啦!(O ^ ~ ^ O)