p; html/bbs;
index index.html index.htmi index.php;
location ~ .*\.(php|php5)?$ #此时不{}内不指定目录的话就直接读取上面html/bbs下的php文件
{
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi.conf;
}
}
[root@localhost conf]# cd /application/nginx/html/www/
[root@localhost www]# vim index.php
[root@localhost www]# /application/nginx/sbin/nginx -t
[root@localhost www]# /application/nginx/sbin/nginx -s reload
wiki软件
[root@localhost www]# mysql
mysql> create database wiki;
mysql> grant all on wiki.* to wiki@'localhost' identified by 'wiki';
mysql> flush privileges ;
mysql> quit
http://kaiyuan.baike.com/download/(wiki下载HDwiki)
[root@localhost www]# wget http://kaiyuan.hudong.com/download.php?n=HDWiki-v6.0GBK-20170209.zip(注意www)
[root@localhost www]# unzip download.php\?n\=HDWiki-v6.0GBK-20170209.zip
[root@localhost www]# rm -f download.php\?n\=HDWiki-v6.0GBK-20170209.zip
[root@localhost www]# mv hdwiki/* .
[root@localhost www]# cd ../
[root@localhost html]# chown -R nginx.nginx www/