linux部署wordpress

废话不多说,直接开整

两台节点:

  1.  client:nginx、php-fpm.service
  2. server:mysql

安装php:

  1. 192.168.200.120
    rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
    yum install php php-fpm php-mysql nginx mariadb-server -y
    yum install php-gd* -y
    
    ## 启动 ##
    systemctl start nginx
    systemctl start php-fpm.service

准备安装包:

[root@slb-nginx /]# ls
bin   dev  home  lib64  mnt  proc  run   srv  tmp  var
boot  etc  lib   media  opt  root  sbin  sys  usr  wordpress-4.7.4-zh_CN.tar.gz

解压:

[root@slb-nginx /]# tar xf wordpress-4.7.4-zh_CN.tar.gz 
[root@slb-nginx /]# ls
bin   dev  home  lib64  mnt  proc  run   srv  tmp  var        wordpress-4.7.4-zh_CN.tar.gz
boot  e

你可能感兴趣的:(nginx,linux,php,服务器)