What is JPress?
JPress
It isJava
aWordPress
similar product developed with , which supports multi-site, multi-language automatic switching, etc. (JPress
starting2015
in )
At present, there are already 10w+
websites using JPress
to drive, including many government agencies, 200+
listed companies, Chinese Academy of Sciences, Red + Character Society, etc.
foreword
Lao Su originally wanted to use the version that comes with Synology MariaDB
, but JPress
only supports mysql 5.6
version or 5.7
version , and MariaDB 5
the version that comes with the system is not enough
Lao Su did not try it out, and installed it with a containermysql
command line installation
If you are familiar with the command line, it may be docker cli
faster
# 新建文件夹 jpress 和 子目录
mkdir -p /volume2/docker/jpress/{
addons,attachment,data,templates/dockers,WEB-INF/addons,wp-content}
# 进入 jpress 目录
cd /volume2/docker/jpress
# 运行 mysql 容器
docker run -d \
--restart always \
--name jpress-db \
-v $(pwd)/data:/var/lib/mysql \
-e MYSQL_ROOT_PASSWORD=jpress \
-e MYSQL_DATABASE=jpress \
-e MYSQL_USER=jpress \
-e MYSQL_PASSWORD=jpress \
mysql:5.7 \
--default-authentication-plugin=mysql_native_password
# 运行 jpress 容器
docker run -d \
--restart always \
--name jpress-web \
--link jpress-db:db \
-p 8882:8080 \
-v $(pwd)/attachment:/opt/jpress/webapp/attachment \
-v $(pwd)/addons:/opt/jpress/webapp/addons \
-v $(pwd)/WEB-INF/addons:/opt/jpress/webapp/WEB-INF/addons \
-v $(pwd)/wp-content:/opt/jpress/webapp/wp-content \
-v $(pwd)/templates/dockers:/opt/jpress/webapp/templates/dockers \
-e TZ=Asia/Shanghai \
-e JPRESS_DB_HOST=db \
-e JPRESS_DB_PORT=3306 \
-e JPRESS_DB_NAME=jpress \
-e JPRESS_DB_USER=jpress \
-e JPRESS_DB_PASSWORD=jpress \
fuhai/jpress:v5.0.8
You can also use docker-compose
the installation , save the following content as docker-compose.yml
a file
version: '3.1'
services:
db:
image: mysql:5.7
container_name: jpress-db
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: jpress
MYSQL_DATABASE: jpress
MYSQL_USER: jpress
MYSQL_PASSWORD: jpress
volumes:
- ./data:/var/lib/mysql
jpress:
image: fuhai/jpress:v5.0.8
container_name: jpress-web
restart: always
ports:
- 8882:8080
volumes:
- ./attachment:/opt/jpress/webapp/attachment
- ./addons:/opt/jpress/webapp/addons
- ./WEB-INF/addons:/opt/jpress/webapp/WEB-INF/addons
- ./wp-content:/opt/jpress/webapp/wp-content
- ./templates/dockers:/opt/jpress/webapp/templates/dockers
environment:
TZ: Asia/Shanghai
JPRESS_DB_HOST: db
JPRESS_DB_PORT: 3306
JPRESS_DB_NAME: jpress
JPRESS_DB_USER: jpress
JPRESS_DB_PASSWORD: jpress
Then execute the following command
# 新建文件夹 jpress 和 子目录
mkdir -p /volume2/docker/jpress/{
addons,attachment,data,templates/dockers,WEB-INF/addons,wp-content}
# 进入 jpress 目录
cd /volume2/docker/jpress
# 将 docker-compose.yml 放入当前目录
# 一键启动
docker-compose up -d
run
Type in the browserhttp://群晖IP:8882
Setup Wizard
The first time you need to set up, it will automatically adjust to the setting interface, just click下一步
Because we have set it in the environment variable, so just 下一步
click
Next set 网站信息
and超级管理员
Click 完成
to start the installation
After completion, there will be a pop-up window prompt
确定
After clicking, you will see the login interface
The main interface after login
Then you can JPress
build your own website with
- Website address:
http://群晖IP:8882
- Background management address:
http://群晖IP:8882/admin
reference documents
JPressProjects/jpress: JPress, a website building artifact developed in Java, currently has 100,000+ websites driven by JPress, including many government agencies, 200+ listed companies, Chinese Academy of Sciences, Red + Character Society, etc.
Address: https://github.com/JPressProjects/jpress
JPress Introduction | JPress Official Document
Address: http://doc.jpress.cn/manual/
JPress official website - a CMS system developed in Java.
Address: http://www.jpress.cn/