首页 IT正文

chevereto安装教程

admin IT 2022-12-24 273 0
说明:chevereto是目前最好的图床之一了。功能也非常强大。其免费版和收费版的区别,在于收费版多了硬盘扩展,社交分享功能和技术支持。硬盘扩展指的是你可以通过sftp等方式把上传的文件储存在其他服务器上。所以个人觉得,这个免费版已经足够使用了。而且chevereto的安装也非常简单,并且支持中文。网上很多教程都写得不是很清楚,这里就发个详细安装教程吧。
官网:https://chevereto.com/DEMO:https://demo.chevereto.com/

15416600301274.png

安装

环境要求:Apache/Nginx、PHP 5.5+、MySQL 5.0+

1、搭建web环境

我们可以用lnmp、lamp一键包或者宝塔之类的面板来搭建web环境。lnmp安装方法可参考:https://www.tracymc.cn/archives/649。宝塔安装方法可看:https://www.tracymc.cn/archives/858。

2、上传chevereto程序

搭建好web环境后,添加网站并解析,再上传chevereto程序到网站目录,chevereto下载地址:https://github.com/Chevereto/Chevereto-Free
这里以lnmp为例,执行命令:

cd /home/wwwroot/www.yourdomain.com
wget https://www.moerats.com/usr/down/Chevereto_v1.0.8.tar.gztar zfvx Chevereto_v1.0.8.tar.gz
chmod -R 775 ./*

修改网站配置文件/usr/local/nginx/conf/vhost/xx.com.conf,在server中添加以下代码。

location / {try_files $uri $uri/ /index.php?$query_string;}

然后重启Nginx,使用命令:

/etc/init.d/nginx restart#或者lnmp restart

最后就可以打开你的网站按要求填入数据库信息进行安装了。

注意:经测试,使用v1.0.7程序的打开网站后可能会出现Chevereto can’t create the app/settings.php file. You must manually create this file该错误,这时在app目录新建settings.php文件并给予可写入权限即可,也可使用命令,以lnmp为例:

cd /home/wwwroot/xx.com/app
touch settings.php
chmod -R 777 settings.php


汉化覆盖即可:https://github.com/keven1024/chevereto-free-multi-language

当然本教程使用的是最新版v1.0.8暂时没遇到过该问题。
注:本文转自https://www.moerats.com/archives/390/

本文标题:chevereto安装教程
本文链接:https://xl.cndyun.com/post/742.html
作者授权:除特别说明外,本文由 admin 原创编译并授权 小龙的博客 刊载发布。
版权声明:本文不使用任何协议授权,您可以任何形式自由转载或使用。
«    2024年3月    »
123
45678910
11121314151617
18192021222324
25262728293031

分享:

支付宝

微信