雖然是有匯出成OVA
不過還是留著筆記以防以後老人癡呆
目的是為單一主機設定為web service 用
另設定sftp之後踹完再說
#ntp 校時
yum -y install ntp
ntpdate tick.stdtime.gov.tw
#安裝Mariadb
yum -y install mariadb-server
service mariadb start
/usr/bin/mysql_secure_installation
mysql -u root -p
#搬移DB位置
service mariadb stop
service mariadb status
vim /etc/my.cnf
cp -R -p /var/lib/mysql /cldb/lib/
service mariadb start
#掛載光碟
mount /dev/sr0 /mnt
df -h
#安裝epel套件
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh epel-release-latest-7.noarch.rpm
#安裝php套件
service httpd stop
service mariadb stop
yum -y install mariadb-server
yum install phpmyadmin
yum install php php-mysql php-pdo php-gd php-mbstring
#設定phpmyadmin
vim /etc/httpd/conf.d/phpMyAdmin.conf
#設定變更#
Require all granted
##
service httpd start
service mariadb start
yum install vsftp
vim /etc/vsftpd/vsftpd.conf
###待續
沒有留言:
張貼留言