nginx

nginx

nginx配置listen

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
server {
listen 88;
server_name localhost;
root /usr/share/nginx/wordpress;
index index.php;

location / {
try_files $uri $uri/ /index.php?$args;
}
#rewrite /wp-admin$ $scheme://$host$uri/ permanent;
location ~ \.php$        {
fastcgi_pass   127.0.0.1:9000;
fastcgi_index  index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include        fastcgi_params;
                        }
}

php

mysql

安装页面

1
http://192.168.68.80:88/wp-admin/setup-config.php

填写对应信息

若数据库不存在,提前创建

1
2
create database wordpress;
FLUSH PRIVILEGES;