本文主要是介绍Linux——web建立wordpress,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
下载
[root@nfs-server ~]# yum install php
wget https://wordpress.org/latest.tar.gz
解压
/var/www/html
[root@nfs-server html]# tar -xzvf latest.tar.gz
[root@nfs-server html]# rm latest.tar.gz
授权
[root@nfs-server html]# chown -R www:www /var/www/html
添加文件备份
[root@nfs-server html]# cd wordpress[root@nfs-server html]# cp wp-config-sample.php wp-config.php
建立数据库
修改配置文件
[root@nfs-server ~]# vim /var/www/html/wordpress/wp-config.php
重启服务
[root@nfs-server ~]# systemctl restart httpd php-fpm
验证
IP地址/wordpress/wp-admin/install.php
这篇关于Linux——web建立wordpress的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!