56,677
社区成员
发帖
与我相关
我的任务
分享
global_defs {
notificationd LVS_DEVEL
}
vrrp_script chk_haproxy {
script "/etc/keepalived/chk.sh"
interval 2
}
vrrp_instance VI_1 {
state BACKUP
nopreempt
interface eth0
virtual_router_id 11
priority 110
advert_int 1
authentication {
auth_type PASS
auth_pass asd
}
virtual_ipaddress {
192.168.1.250
}
track_script {
chk_haproxy
}
notify_backup "/etc/init.d/haproxy restart"
notify_fault "/etc/init.d/haproxy stop"
}
#!/bin/bash
#
if [ $(ps -C haproxy --no-header | wc -l) -eq 0 ]; then
/etc/init.d/keepalived stop
fi
global
log 127.0.0.1 local2
chroot /var/lib/haproxy
pidfile /var/run/haproxy.pid
maxconn 4000
user haproxy
group haproxy
daemon
stats socket /var/lib/haproxy/stats
defaults
mode tcp
log global
option dontlognull
option redispatch
retries 3
timeout http-request 10s
timeout queue 1m
timeout connect 10s
timeout client 1m
timeout server 1m
timeout http-keep-alive 10s
timeout check 10s
maxconn 600
listen stats
mode http
bind :8888
stats enable
stats hide-version
stats uri /haproxyadmin?stats
stats realm Haproxy\ Statistics
stats auth admin:admin
frontend main
bind 0.0.0.0:3306
default_backend mysql
backend mysql
balance leastconn
server mysql1 192.168.1.9:3306 check port 3306 maxconn 300
[mysql-proxy]
user=root
admin-username=root
admin-password=root
proxy-address=192.168.1.162:4000
proxy-read-only-backend-addresses=192.168.1.162:3306
proxy-backend-addresses=192.168.1.33:3306
proxy-lua-script=/usr/local/mysql-proxy/lua/rw-splitting.lua
admin-lua-script=/usr/local/mysql-proxy/lua/admin-sql.lua
log-file=/var/log/mysql-proxy.log
log-level=debug
daemon=true
keepalive=true
/usr/local/mysql-proxy/bin/mysql-proxy -P 192.168.1.250:4000 --defaults-file=/etc/mysql-proxy.cnf &
jdbc.driver=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://192.168.1.250:4000/blog?characterEncoding=utf-8
jdbc.username=root
jdbc.password=root
Mon Dec 11 17:34:28 CST 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Mon Dec 11 17:34:29 CST 2017 WARN: Invalid value 'null' for server variable named 'auto_increment_increment', falling back to sane default of '1'.
2017-12-11 17:34:29,290 [Druid-ConnectionPool-Create-781348922] [com.alibaba.druid.pool.DruidDataSource]-[ERROR] create connection error
com.mysql.jdbc.PacketTooBigException: Packet for query is too large (27 > -1). You can change this value on the server by setting the max_allowed_packet' variable.
at com.mysql.jdbc.MysqlIO.readPacket(MysqlIO.java:577)
at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:417)
at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:3112)
at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:2341)
Mon Dec 11 17:34:29 CST 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2736)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2483)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2441)
at com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1381)
at com.mysql.jdbc.SQLError.convertShowWarningsToSQLWarnings(SQLError.java:704)
at com.mysql.jdbc.MysqlIO.scanForAndThrowDataTruncation(MysqlIO.java:4188)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2804)
at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2483)
at com.mysql.jdbc.ConnectionImpl.setupServerForTruncationChecks(ConnectionImpl.java:5150)
at com.mysql.jdbc.ConnectionImpl.initializePropsFromServer(ConnectionImpl.java:3393)
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2235)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2017)
at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:779)
at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
2017-12-14 14:35:19,226 [RMI TCP Connection(3)-127.0.0.1] [org.apache.ibatis.io.ResolverUtil]-[DEBUG] Checking to see if class com.geekfaith.entity.User matches criteria [is assignable to Object]
2017-12-14 14:35:19,228 [RMI TCP Connection(3)-127.0.0.1] [org.apache.ibatis.io.ResolverUtil]-[DEBUG] Checking to see if class com.geekfaith.entity.UserOperation matches criteria [is assignable to Object]
2017-12-14 14:35:19,229 [RMI TCP Connection(3)-127.0.0.1] [org.apache.ibatis.io.ResolverUtil]-[DEBUG] Checking to see if class com.geekfaith.entity.UserOperationType matches criteria [is assignable to Object]
2017-12-14 14:35:19,231 [RMI TCP Connection(3)-127.0.0.1] [org.mybatis.spring.SqlSessionFactoryBean]-[DEBUG] Scanned package: 'com.geekfaith.entity' for aliases
2017-12-14 14:35:19,231 [RMI TCP Connection(3)-127.0.0.1] [org.mybatis.spring.SqlSessionFactoryBean]-[DEBUG] Registered plugin: 'com.baomidou.mybatisplus.plugins.CachePaginationInterceptor@6ce0a0d0'
Thu Dec 14 14:35:19 CST 2017 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
14-Dec-2017 14:35:22.244 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deploying web application directory D:\Java\apache-tomcat-8.0.28\webapps\manager
14-Dec-2017 14:35:22.349 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDirectory Deployment of web application directory D:\Java\apache-tomcat-8.0.28\webapps\manager has finished in 103 ms
在网上各种找也没有找到原因,项目无法启动