Docker安装JPress

经验 2022-10-01

在CentOS上先安装Docker https://docs.docker.com/engine/install/centos/ 和Docker-Compose https://docs.docker.com/compose/install/#install-using-pip ,然后通过Docker安装JPress。

wget https://gitee.com/JPressProjects/jpress/raw/master/docker-compose.yml
docker-compose up -d

如果上传模版时遇到HTTP 413错误,可能是由于上传文件过大引起的。修改nginx配置文件,配置客户端请求大小和缓存大小。

输入命令:

vim /etc/nginx/nginx.conf

在http{}中输入:

        client_max_body_size 8M;
        client_body_buffer_size 128k;
        fastcgi_intercept_errors on;

重启nginx服务:

service nginx restart

全部评论

Top