Jolly

一款强大好用的个人图床:chevereto安装教程
说明:chevereto是目前最好的图床之一了。功能也非常强大。其免费版和收费版的区别,在于收费版多了硬盘扩展,社...
扫描右侧二维码阅读全文
12
2019/06

一款强大好用的个人图床:chevereto安装教程

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

官网:https://chevereto.com/
DEMO:https://demo.chevereto.com/

如下:
WX20190418-1642542x.png

安装

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

1、搭建web环境

我们可以用lnmp、lamp一键包或者宝塔之类的面板来搭建web环境。
lnmp安装方法可参考:

wget -c http://soft.vpser.net/lnmp/lnmp1.4.tar.gz && tar zxf lnmp1.4.tar.gz && cd lnmp1.4 && ./install.sh lnmp

2、上传chevereto程序

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

cd /home/wwwroot/
mkdir chevereto
cd chevereto
wget https://github.com/Chevereto/Chevereto-Free/archive/1.0.9.tar.gz
tar zvxf 1.0.9.tar.gz

赋权限

再执行非常重要的一步:

chown www:www -R /home/wwwroot/chevereto

创建settings.php文件

在app目录新建settings.php文件并给予可写入权限:

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

修改nginx配置文件

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

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

再将程序根路径指向chevereto文件夹:

root /home/wwwroot/chevereto;

然后重启Nginx,使用命令:

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

3、生成chevereto图床所需的数据库

将安装lnmp自动生成的default文件夹中phpmyadmin拷贝到chevereto文件夹里

cp -R /home/wwwroot/default/phpmyadmin /home/wwwroot/chevereto

浏览器访问http://IP/phpmyadmin, 登录。
新增chevereto数据库
新增chevereto用户,并且赋权限

4、开始安装chevereto

浏览器访问http://IP/
然后开始填写数据库信息:
chevereto03.png

随后安装成功!

Last modification:July 1st, 2020 at 08:51 am
如果觉得我的文章对你有用,请随意赞赏

Leave a Comment

🌓