1. 程式人生 > >pinnet 計算雲分區

pinnet 計算雲分區

x86_64 rpm fstab mct mysql -m tty log x86

fdisk /dev/xvde
m
n
e

m
n
l
Enter
Enter

9G-98G-98G-478M-28G-28G-28G

m
w

#設置文件格式
mkfs -t ext4 /dev/xvde5
mkfs -t ext4 /dev/xvde6
mkfs -t ext4 /dev/xvde7
mkfs -t ext4 /dev/xvde8
mkfs -t ext4 /dev/xvde9
mkfs -t ext4 /dev/xvde10
mkfs -t ext4 /dev/xvde11

#創建文件夾
mkdir -p /srv/ftpd/log
mkdir -p /srv/ftp/wit/ftpd
mkdir -p /opt/mysql/data
mkdir -p /opt/mysql/databackup

#分區掛載
mount /dev/xvde5 /home
mount /dev/xvde6 /opt
mount /dev/xvde7 /srv/ftpd/log
mount /dev/xvde8 /boot
mount /dev/xvde9 /opt/mysql/data
mount /dev/xvde10 /opt/mysql/databackup
mount /dev/xvde11 /srv/ftp/wit/ftpd

#立即生效
systemctl stop firewalld.service
systemctl disable firewalld.service

#開啟掛載
vi /etc/fstab

/dev/xvde5 /home ext4 defaults 0 0

/dev/xvde6 /opt ext4 defaults 0 0
/dev/xvde7 /srv/ftpd/log ext4 defaults 0 0
/dev/xvde8 /boot ext4 defaults 0 0
/dev/xvde9 /opt/mysql ext4 defaults 0 0
/dev/xvde10 /opt/mysql/databackup ext4 defaults 0 0
/dev/xvde11 /srv/ftp/wit/ftpd ext4 defaults 0 0

rpm -e akonadi-mysql
rpm -e mariadb-server
rpm -e mariadb
yum remove mariadb-libs.x86_64

/etc/sudoers
// 將這條註釋放開
Defaults requiretty

setenforce 0

pinnet 計算雲分區