3 月 252017
 

Tomcat及Java配置并使用http proxy的方法

系统全局代理

export https_proxy=http://172.191.1.64:3128
export http_proxy=http://172.191.1.64:3128

在bin/catalina.sh增加配置

JAVA_OPTS="-Dhttp.proxyHost=172.191.1.64 -Dhttp.proxyPort=3128 \
-Dhttps.proxyHost=172.191.1.64 -Dhttps.proxyPort=3128 \
-Dhttp.nonProxyHosts='localhost|appserver1|127.*|10.*|100.*'"

在conf/catalina.properties增加配置
在/usr/java/jdk1.7.0_80/jre/lib/net.properties增加配置

http.proxyHost=172.191.1.64
http.proxyPort=3128
https.proxyHost=172.191.1.64
https.proxyPort=3128
http.nonProxyHosts=localhost|appserver1|127.*|10.*|100.*

在代码中指定连接代理配置

https://docs.oracle.com/javase/7/docs/technotes/guides/net/proxies.html
http://memorynotfound.com/configure-http-proxy-settings-java/
3 月 072017
 

 

[mysqld]
ssl-ca=/etc/mysql-ssl/ca-cert.pem
ssl-cert=/etc/mysql-ssl/server-cert.pem
ssl-key=/etc/mysql-ssl/server-key.pem
ssl-cipher=AES128+EECDH:AES128+EDH
# replication:
GRANT REPLICATION SLAVE ON *.* to ‘repl’@’%’ REQUIRE SSL;
STOP SLAVE;
CHANGE MASTER MASTER_SSL=1,
MASTER_SSL_CA=’/etc/mysql-ssl/ca-cert.pem’,
MASTER_SSL_CERT=’/etc/mysql-ssl/client-cert.pem’,
MASTER_SSL_KEY=’/etc/mysql-ssl/client-key.pem';
SHOW SLAVE STATUS\G;
START SLAVE;
SHOW SLAVE STATUS\G;

内容引用:
(1)cipherlist