Confluence不能保存不能编辑问题解决

Nginx配置反向代理

参考:https://confluence.atlassian.com/confkb/how-to-use-nginx-to-proxy-requests-for-confluence-313459790.html

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
server {
listen 80;
server_name cf.appblog.cn;

location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;

set $backend "http://127.0.0.1:8090";
proxy_pass $backend;
proxy_redirect http://127.0.0.1:8090 http://$host/;
proxy_set_header Authorization "";
}
location /synchrony-proxy {
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://localhost:8091/synchrony;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "Upgrade";
}
location /synchrony {
set $backend "http://127.0.0.1:8091";
proxy_pass $backend;
proxy_redirect http://127.0.0.1:8091 http://$host/;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Server $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Authorization "";
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
}

重启Confluence前记得干掉synchrony进程

Confluence启动有两个进程,主进程confluence及协同进程synchrony,重启需要同时干掉confluencesynchrony进程

1
2
3
4
5
ps -ef | grep confluence

root 1765 1 90 10:37 pts/0 00:05:11 /usr/local/java/jdk1.8.0_231/jre/bin/java -Djava.util.logging.config.file=/data/www/confluence/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djdk.tls.ephemeralDHKeySize=2048 -Djava.protocol.handler.pkgs=org.apache.catalina.webresources -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 -XX:ReservedCodeCacheSize=256m -XX:+UseCodeCacheFlushing -Djdk.tls.server.protocols=TLSv1.1,TLSv1.2 -Djdk.tls.client.protocols=TLSv1.1,TLSv1.2 -Dconfluence.context.path= -Djava.locale.providers=JRE,SPI,CLDR -Dorg.apache.tomcat.websocket.DEFAULT_BUFFER_SIZE=32768 -Dsynchrony.enable.xhr.fallback=true -Xms1024m -Xmx1024m -XX:+UseG1GC -Datlassian.plugins.enable.wait=300 -Djava.awt.headless=true -XX:G1ReservePercent=20 -Xloggc:/data/www/confluence/logs/gc-2020-05-12_10-37-43.log -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=5 -XX:GCLogFileSize=2M -Xlog:gc+age=debug:file=/data/www/confluence/logs/gc-2020-05-12_10-37-43.log::filecount=5,filesize=2M -XX:-PrintGCDetails -XX:+PrintGCDateStamps -XX:-PrintTenuringDistribution -XX:+IgnoreUnrecognizedVMOptions -Dignore.endorsed.dirs= -classpath /data/www/confluence/bin/bootstrap.jar:/data/www/confluence/bin/tomcat-juli.jar -Dcatalina.base=/data/www/confluence -Dcatalina.home=/data/www/confluence -Djava.io.tmpdir=/data/www/confluence/temp org.apache.catalina.startup.Bootstrap start

root 2075 1765 8 10:39 pts/0 00:00:22 /usr/local/java/jdk1.8.0_231/jre/bin/java -classpath /data/www/confluence/temp/3.1.0-master-022ca438.jar:/data/www/confluence/confluence/WEB-INF/lib/mysql-connector-java-8.0.18.jar -Xss2048k -Xmx1g synchrony.core sql

Powered by AppBlog.CN     浙ICP备14037229号

Copyright © 2012 - 2020 APP开发技术博客 All Rights Reserved.

访客数 : | 访问量 :