【Centos7】WordPress的安裝


准備工作:

掛載光盤,安裝本地yum庫

#yum install httpd -y  ///安裝Apache服務
#systemctl stop firewalld.service  ///臨時關閉firewalld防火牆
#setenforce 0  /// 臨時關閉selinux防火牆
#ststemctl  restart httpd.servicer  ///重啟Apache服務
#yum install php  -y  ///安裝PHP服務
#yum install php-mysql  -y  ///安裝php-mysql服務

一丶進入MySQL

#MySQL -u root -p
Enter  password:
Alter user 'root'@'localhost' identified by 'Kong@159357';  ///重置密碼,不然無法創建用戶
create user 'aa02'@'192.168.100.134' identified by '159357'; ///創建用戶
show databases; ///查看數據庫
create database wordpress; ///創建數據庫
grant all  privileges on wordpress.* to 'aa02'@'192.168.100.134'; ///指定某個數據庫給某個用戶

二丶將WordPress的tar文件上傳至/opt目錄

# tar zxf wordpress-4.5.3-zh_CN.tar.gz    
# mv wordpress/* .

 將文件移動到/var/www/html下

#ststemctl  restart httpd.servicer  ///重啟Apache服務

 

三丶進入域名進行管理

瀏覽器地址輸入 192.168.100.134 按提示進行配置 

在/var/www/html 目錄下創建一個名為 wp-config.php的文件,內容為提示部分。

然后安裝成功。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM