标签:disk mkdir isa def 文件夹 mysq 分区挂载 service sys
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
标签:disk mkdir isa def 文件夹 mysq 分区挂载 service sys
原文地址:https://www.cnblogs.com/virgosnail/p/9663539.html