0、重置系統盤的,要掛載數據盤:
查看剛剛分配的磁盤號:fdisk -l
掛載磁盤,將/dev/vdb磁盤掛載(mount)到文件系統的/data目錄上
創建磁盤掛載目標文件夾:mkdir -p /opt
掛載磁盤:mount /dev/vdb /opt
設置開機啓動自動掛載磁盤分區
編輯/etc/fstab文件(防止系統重啓後掛載丟失)
/etc/fstab是在開機引導的時候自動掛載到linux的文件系統:
/dev/vdb /opt ext4 defaults 0 0
1、php
2、MariaDB
1)
https://blog.csdn.net/qq_39719589/article/details/81835330
必需改成10.3的版本。否則不能啓動。
[mariadb]
name = MariaDB
baseurl = https://mirrors.ustc.edu.cn/mariadb/yum/10.3/centos7-amd64/
gpgkey=https://mirrors.ustc.edu.cn/mariadb/yum/RPM-GPG-KEY-MariaDB
gpgcheck=1
2)
https://blog.csdn.net/ptianfeng/article/details/91419384
3、apache
修改apache配置/etc/httpd/conf/httpd.conf
將其中的
DocumentRoot “/var/www/html”
修改爲
DocumentRoot “/opt/www”
將
<Directory “/var/www/html”>
修改爲
<Directory “/opt/www”>
4、posix
# yum install php-process
#
yum install php-posix
https://blog.csdn.net/ptianfeng/article/details/91567008
5、SVN安裝配置