Redhat7.0搭建LAMP個人論壇
阿新 • • 發佈:2018-09-13
ima 安裝包 mark 圖片 51cto ice 文件 cfb secure 搭建LAMP
systemctl restart mariadb.service #重啟MariaDB
創建數據庫
步驟2:
安裝Apache
systemctl start httpd.service #啟動apache
systemctl stop httpd.service #停止apache
systemctl restart httpd.service #重啟apache
systemctl enable httpd.service #設置apache開機啟動
步驟3:
安裝PHP
安裝PHP組件,使PHP支持 MariaDB
systemctl restart mariadb.service #重啟MariaDB
systemctl restart httpd.service #重啟apache
測試
傳入安裝包並解壓
修改文件權限
成功
步驟1:
安裝mariadb
systemctl start mariadb.service #啟動MariaDB
systemctl stop mariadb.service #停止MariaDB
systemctl restart mariadb.service #重啟MariaDB
systemctl enable mariadb.service #設置開機啟動
為root賬戶設置密碼
mysql_secure_installation
回車,根據提示輸入Y
輸入2次密碼,回車
根據提示一路輸入Y
最後出現:Thanks for using MySQL!
MySql密碼設置完成,重新啟動 MySQL:
創建數據庫
步驟2:
安裝Apache
systemctl start httpd.service #啟動apache
systemctl stop httpd.service #停止apache
systemctl restart httpd.service #重啟apache
systemctl enable httpd.service #設置apache開機啟動
步驟3:
安裝PHP
安裝PHP組件,使PHP支持 MariaDB
systemctl restart mariadb.service #重啟MariaDB
測試
傳入安裝包並解壓
修改文件權限
成功
Redhat7.0搭建LAMP個人論壇