在lnmp上搭建wordpress

在lnmp安装完成后。
准备好已经下载完成的wordpress包。
进入xshell用rz命令传送到虚拟机中,查看。
[[email protected] ~]# ls
anaconda-ks.cfg wordpress-5.3.2.zip
zip文件解压需要用yum安装unzip。
[[email protected] ~]# yum -y install unzip
将其解压到/data/server/中。
[[email protected] ~]# unzip -n wordpress-5.3.2.zip -d /data/server/
进入查看wordpress文件是否存在。
[[email protected] server]# ls
libmcrypt-2.5.8 mysql mysql-5.6.19 nginx nginx-1.11.5 php php-7.2.0 wordpress
将wordpress文件移动到nginx下的html中。查看。
[[email protected] server]# mv wordpress/ /data/server/nginx/html/
[[email protected] server]# cd /data/server/nginx/html/
[[email protected] html]# ls
1.php 50x.html index.html wordpress
查看wordpress中的文件并将wp-config-sample.php改名。
[[email protected] wordpress]# cp wp-config-sample.php wp-config.php
编辑文件,按照图片修改,保存退出。
[[email protected] wordpress]# vi wp-config.php
在lnmp上搭建wordpress
创建mysql数据库。
[[email protected] wordpress]# mysql -uroot -p
在lnmp上搭建wordpress
关闭防火墙,启动服务,浏览器访问IP/wordpress。
在lnmp上搭建wordpress

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-17
  • 2021-11-11
  • 2022-12-23
  • 2021-09-18
  • 2021-06-22
猜你喜欢
  • 2021-09-06
  • 2021-05-10
  • 2021-12-13
  • 2021-06-28
  • 2021-05-31
  • 2021-05-17
  • 2022-12-23
相关资源
相似解决方案