版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_28616789/article/details/79340236
1.上传chevereto程序
下载chevereto程序到网站目录,chevereto下载地址为:
https://github.com/Chevereto/Chevereto-Free/archive/1.0.9.tar.gz
github地址为:
https://github.com/Chevereto/Chevereto-Free
在网站的根目录下使用wget命令下载。如下(tc.runtofuture.cn替换为你自己的网站名,后文同理):
cd /home/wwwroot/tc.runtofuture.cn
wget https://github.com/Chevereto/Chevereto-Free/archive/1.0.9.tar.gz
然后解压:
tar zvxf 1.0.9.tar.gz
2.赋权限
再执行非常重要的一步:
chown www:www -R /home/wwwroot/tc.runtofuture.cn
3.创建settings.php
文件
在app
目录新建settings.php
文件并给予可写入权限:
cd /home/wwwroot/tc.runtofuture.cn/app
touch settings.php
chmod -R 777 settings.php
4.修改配置文件
修改网站配置文件/usr/local/nginx/conf/vhost/tc.runtofuture.cn.conf
,在server
中添加以下代码:
扫描二维码关注公众号,回复:
3198247 查看本文章
location / {
try_files $uri $uri/ /index.php?$query_string;
}
然后重启Nginx
,使用命令:
/etc/init.d/nginx restart
#或
lnmp restart
#或
lnmp nginx restart