[root@tiejiang src]# cd /usr/local/nginx/html/
[root@tiejiang html]# mkdir ecshop #把ecshop的源代码程序都放在这个文件夹里面
[root@tiejiang nginx]# cd /usr/local/nginx/html/ecshop/
给下面这四个文件夹执行的权限,否则ecshop无法安装
[root@tiejiang ecshop]# chmod o+w cert -R
[root@tiejiang ecshop]# chmod o+w images -R
[root@tiejiang ecshop]# chmod o+w data -R
[root@tiejiang ecshop]# chmod o+w temp -R
[root@tiejiang ecshop]# chmod o+w themes -R
[root@tiejiang ecshop]# vim /usr/local/fastphp/lib/php.ini
;date.timezone = 改为 date.timezone = "Asia/Shanghai"
[root@tiejiang ecshop]# pkill -9 php-fpm #杀掉当先系统的php进程
[root@tiejiang ecshop]# /usr/local/fastphp/sbin/php-fpm #重启一下php的进程
设置一个没有的页面跳转到指定页面
[root@tiejiang ecshop]# cd /usr/local/nginx/
[root@tiejiang nginx]# vim conf/nginx.conf
location /ecshop{
root html;
rewrite "goods-(\d{1,7})\.html" goods.php?id=$1;
}