1、搭建web环境
具体可见:
http://blog.csdn.net/qq_28616789/article/details/79262597
这是军哥的一键LNMP环境搭建。所以,下面安装Typecho也是在此环境下。
2、添加网站
具体可见:
http://blog.csdn.net/qq_28616789/article/details/79266249
这一步直接回车,选择other。
3、伪静态设置
进入/usr/local/nginx/conf/vhost 编辑yourdomain.conf
(1). 将
include other.conf替换为
include typecho.conf(2). 将
include enable-php.conf;替换为
include enable-php-pathinfo.conf;然后重启Nginx,使用命令:
/etc/init.d/nginx restart
#或
lnmp restart
#或
lnmp nginx restart到这里,你就可以打开你的网站进行各种设置了!
版权声明:本文为qq_28616789原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。