小小小丶盘子

t-io 官网部署记录(Windows)

发表于:2019-5-5 23:00:45 点击量:0 赞:未知

t-io 官网部署记录(Windows)

准备工作

  • JDK 1.8或以上版本
    java -version
    java version "1.8.0_131"
    Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
    Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)
    
  • mysql 5.7或以上版本
    select version();
    5.7.17-log
    
  • redis 3或以上版本
    127.0.0.1:6379> info
    # Server
    redis_version:3.2.100
    
  • zookeeper 3.5.2或以上版本
    由于我的电脑没有zookeeper,安装一个

    • 下载 zookeeper,我下的版本是zookeeper-3.5.4-beta
    • 下载完解压,启动即可,这个不是重点,所以简单写一下。
      D:\>cd D:\Program Files\zookeeper-3.5.4-beta\bin
      D:\Program Files\zookeeper-3.5.4-beta\bin>zkServer.cmd
      
  • maven 3.x版本

    mvn -version
    Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-04T03:39:06+08:00)
    Maven home: C:\Program Files\Maven\apache-maven-3.5.0\bin\..
    Java version: 1.8.0_131, vendor: Oracle Corporation
    Java home: C:\Program Files\Java\jdk1.8.0_131\jre
    Default locale: zh_CN, platform encoding: GBK
    OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"
    

打包

cd E:\tio官网源码\src\all
[E:\tio官网源码\src\all]$ package-windows.bat

E:\tio官网源码\src\all>cd ..\jfinal\ 

E:\tio官网源码\src\jfinal>call mvn clean install 
[INFO] Scanning for projects...
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Building JFinal 3.5
[INFO] ------------------------------------------------------------------------
Downloading: http://192.168.187.129:9005/nexus/content/groups/public/org/apache/maven/plugins/maven-enforcer-plugin/1.0/maven-enforcer-plugin-1.0.pom
..... waiting......

中间遇到了一个Error,忘记我自己搭建了私服了。

[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
[INFO] Scanning for projects...
Downloading: http://192.168.187.129:9005/nexus/content/groups/public/org/t-io/tio-zoo-parent/3.2.9.v20190401-RELEASE/tio-zoo-parent-3.2.9.v20190401-RELEASE.pom
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for org.t-io:tio-site-parent:1.0.0-tio-site-qijian: Could not transfer artifact org.t-io:tio-zoo-parent:pom:3.2.9.v20190401-RELEASE from/to nexus (http://192.168.187.129:9005/nexus/content/groups/public/): Connect to 192.168.187.129:9005 [/192.168.187.129] failed: Connection timed out: connect and 'parent.relativePath' points at wrong local POM @ line 13, column 10
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project org.t-io:tio-site-parent:1.0.0-tio-site-qijian (E:\tio官网源码\src\parent\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for org.t-io:tio-site-parent:1.0.0-tio-site-qijian: Could not transfer artifact org.t-io:tio-zoo-parent:pom:3.2.9.v20190401-RELEASE from/to nexus (http://192.168.187.129:9005/nexus/content/groups/public/): Connect to 192.168.187.129:9005 [/192.168.187.129] failed: Connection timed out: connect and 'parent.relativePath' points at wrong local POM @ line 13, column 10 -> [Help 2]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

修改maven的配置,不使用私服,重新打包。

 <!-- <mirror> -->
        <!-- <id>nexus</id> -->
        <!-- <mirrorOf>*</mirrorOf> -->
        <!-- <url>http://192.168.187.129:9005/nexus/content/groups/public/</url> -->
        <!-- <name>mirror in local</name> -->
      <!-- </mirror> -->
      <mirror>
       <id>mirrorAliyun</id>
       <mirrorOf>central</mirrorOf>
       <name>centrl mirror in china</name>
       <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
    </mirror>

正如文档中所说,下载了一大堆jar,这里稍微慢一点,waiting…

[INFO] 
[INFO] --- maven-install-plugin:2.5.2:install (default-install) @ tio-site-all ---
[INFO] Installing E:\tio官网源码\src\all\target\tio-site-all.jar to D:\maven\repository\org\t-io\tio-site-all\1.0.0-tio-site-qijian\tio-site-all-1.0.0-tio-site-qijian.jar
[INFO] Installing E:\tio官网源码\src\all\pom.xml to D:\maven\repository\org\t-io\tio-site-all\1.0.0-tio-site-qijian\tio-site-all-1.0.0-tio-site-qijian.pom
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] tio-site-parent .................................... SUCCESS [ 19.006 s]
[INFO] tio-site-service ................................... SUCCESS [ 32.931 s]
[INFO] tio-site-im-common ................................. SUCCESS [  3.050 s]
[INFO] tio-site-im-server ................................. SUCCESS [  1.170 s]
[INFO] tio-site-http-server-api ........................... SUCCESS [ 16.377 s]
[INFO] tio-site-http-server-view .......................... SUCCESS [  5.167 s]
[INFO] tio-site-all ....................................... SUCCESS [ 33.076 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:53 min
[INFO] Finished at: 2019-05-05T21:08:07+08:00
[INFO] Final Memory: 250M/770M
[INFO] ------------------------------------------------------------------------

创建数据库

  • 创建三个库
    -- 配置库
    CREATE SCHEMA `tio_sitex_conf` DEFAULT CHARACTER SET utf8mb4 ;
    -- 业务主库
    CREATE SCHEMA `tio_sitex_main` DEFAULT CHARACTER SET utf8mb4 ;
    -- 统计库
    CREATE SCHEMA `tio_sitex_stat` DEFAULT CHARACTER SET utf8mb4 ;
    
  • 导入脚本
    在导入 tio_sitex_main时报了一个错(MySQL Workbench客户端的提示)。
    21:27:51    update chat_record_p2p set twouid = CONCAT(GREATEST(uid, touid), '_', LEAST(uid, touid))    Error Code: 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column To disable safe mode, toggle the option in Preferences -> SQL Editor and reconnect.    0.000 sec
    
    加了一个 where id > 0就好了。

修改app-env.properties

配置文件基本没动,修改了几个文件路径和数据库的密码。

res.root=F:/tio/upload
# 视图资源目录,包含html, js, css, 图片等,其中非res目录下的html、js、css是支持freemarker的
# nginx.conf有个配置项:location ~ /res/.+/.*$ {...}
http.view.page=E:/tio官网源码/src/all/src/main/resources/config/page

其他配置(未改)

修改nginx配置

使用默认配置,仅修改了几处路径

 # 页面所在目录
set $pages_dir E:/tio官网源码/src/all/src/main/resources/config/page/;
 #upload.t-io.org.conf
 location / {
    root F:/tio/upload;
 }

修改邮箱服务器

update tio_sitex_conf.email_server set email='myemail@tio.org',pwd='123456' where 1=1

启动

由于我使用的 run.bat 启动,所以重新打包后执行 run.bat

[E:\tio官网源码\src\all\target\tio-site-all]$ run.bat
22:26:59,098 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback-test.xml]
22:26:59,098 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Could NOT find resource [logback.groovy]
22:26:59,098 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [logback.xml] at [file:/E:/tio%e5%ae%98%e7%bd%91%e6%ba%90%e7%a0%81/src/all/target/tio-site-all/config/logback.xml]
22:26:59,258 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Will scan for changes in [file:/E:/tio%e5%ae%98%e7%bd%91%e6%ba%90%e7%a0%81/src/all/target/tio-site-all/config/logback.xml] 
22:26:59,258 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - Setting ReconfigureOnChangeTask scanning period to 10 seconds
22:26:59,268 |-INFO in ch.qos.logback.classic.joran.action.ContextNameAction - Setting logger context name as [tio-site]
22:26:59,268 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.ConsoleAppender]
22:26:59,268 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [console]
22:26:59,278 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
22:26:59,338 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
22:26:59,348 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [root-file-all]
22:26:59,368 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@2136344592 - Will use zip compression
22:26:59,368 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@2136344592 - Will use the pattern /logs/tio-sitex/all.%d{yyyy-MM-dd}.%i.log for the active file
22:26:59,378 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@5cc7c2a6 - The date pattern is 'yyyy-MM-dd' from file name pattern '/logs/tio-sitex/all.%d{yyyy-MM-dd}.%i.log.zip'.
22:26:59,378 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@5cc7c2a6 - Roll-over at midnight.
22:26:59,378 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@5cc7c2a6 - Setting initial period to Sun May 05 22:26:55 CST 2019
22:26:59,378 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@5cc7c2a6 - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
22:26:59,378 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@5cc7c2a6 - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
22:26:59,389 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
22:26:59,392 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[root-file-all] - Active log file name: /logs/tio-sitex/all.log
22:26:59,392 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[root-file-all] - File property is set to [/logs/tio-sitex/all.log]
22:26:59,396 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
22:26:59,396 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [root-file-error]
22:26:59,397 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1463757745 - Will use zip compression
22:26:59,397 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1463757745 - Will use the pattern /logs/tio-sitex/error.%d{yyyy-MM-dd}.%i.log for the active file
22:26:59,398 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@5ae9a829 - The date pattern is 'yyyy-MM-dd' from file name pattern '/logs/tio-sitex/error.%d{yyyy-MM-dd}.%i.log.zip'.
22:26:59,399 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@5ae9a829 - Roll-over at midnight.
22:26:59,406 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@5ae9a829 - Setting initial period to Sun May 05 22:26:03 CST 2019
22:26:59,406 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@5ae9a829 - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
22:26:59,406 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@5ae9a829 - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
22:26:59,407 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
22:26:59,413 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[root-file-error] - Active log file name: /logs/tio-sitex/error.log
22:26:59,413 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[root-file-error] - File property is set to [/logs/tio-sitex/error.log]
22:26:59,414 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
22:26:59,415 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [root-file-warn]
22:26:59,417 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1458849419 - Will use zip compression
22:26:59,417 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1458849419 - Will use the pattern /logs/tio-sitex/warn.%d{yyyy-MM-dd}.%i.log for the active file
22:26:59,417 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@6cc4c815 - The date pattern is 'yyyy-MM-dd' from file name pattern '/logs/tio-sitex/warn.%d{yyyy-MM-dd}.%i.log.zip'.
22:26:59,417 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@6cc4c815 - Roll-over at midnight.
22:26:59,417 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@6cc4c815 - Setting initial period to Sun May 05 22:26:55 CST 2019
22:26:59,417 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@6cc4c815 - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
22:26:59,417 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@6cc4c815 - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
22:26:59,417 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
22:26:59,427 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[root-file-warn] - Active log file name: /logs/tio-sitex/warn.log
22:26:59,428 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[root-file-warn] - File property is set to [/logs/tio-sitex/warn.log]
22:26:59,429 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
22:26:59,433 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [root-file-info]
22:26:59,436 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@981661423 - Will use zip compression
22:26:59,437 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@981661423 - Will use the pattern /logs/tio-sitex/info.%d{yyyy-MM-dd}.%i.log for the active file
22:26:59,453 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@100fc185 - The date pattern is 'yyyy-MM-dd' from file name pattern '/logs/tio-sitex/info.%d{yyyy-MM-dd}.%i.log.zip'.
22:26:59,454 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@100fc185 - Roll-over at midnight.
22:26:59,456 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@100fc185 - Setting initial period to Sun May 05 22:26:03 CST 2019
22:26:59,457 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@100fc185 - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
22:26:59,471 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@100fc185 - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
22:26:59,478 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
22:26:59,480 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[root-file-info] - Active log file name: /logs/tio-sitex/info.log
22:26:59,494 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[root-file-info] - File property is set to [/logs/tio-sitex/info.log]
22:26:59,496 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
22:26:59,500 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [root-file-debug]
22:26:59,502 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1681595665 - Will use zip compression
22:26:59,502 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1681595665 - Will use the pattern /logs/tio-sitex/debug.%d{yyyy-MM-dd}.%i.log for the active file
22:26:59,506 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@2ef5e5e3 - The date pattern is 'yyyy-MM-dd' from file name pattern '/logs/tio-sitex/debug.%d{yyyy-MM-dd}.%i.log.zip'.
22:26:59,522 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@2ef5e5e3 - Roll-over at midnight.
22:26:59,525 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@2ef5e5e3 - Setting initial period to Sun May 05 22:26:03 CST 2019
22:26:59,526 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@2ef5e5e3 - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
22:26:59,528 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@2ef5e5e3 - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
22:26:59,548 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
22:26:59,554 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[root-file-debug] - Active log file name: /logs/tio-sitex/debug.log
22:26:59,554 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[root-file-debug] - File property is set to [/logs/tio-sitex/debug.log]
22:26:59,555 |-INFO in ch.qos.logback.classic.joran.action.RootLoggerAction - Setting level of ROOT logger to WARN
22:26:59,555 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [root-file-all] to Logger[ROOT]
22:26:59,571 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [root-file-error] to Logger[ROOT]
22:26:59,572 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [root-file-warn] to Logger[ROOT]
22:26:59,573 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [root-file-info] to Logger[ROOT]
22:26:59,575 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [root-file-debug] to Logger[ROOT]
22:26:59,594 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [console] to Logger[ROOT]
22:26:59,601 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.tio.sitexxx] to false
22:26:59,602 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.tio.sitexxx level set to WARN
22:26:59,602 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [root-file-all] to Logger[org.tio.sitexxx]
22:26:59,604 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [root-file-error] to Logger[org.tio.sitexxx]
22:26:59,605 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [root-file-warn] to Logger[org.tio.sitexxx]
22:26:59,621 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [root-file-info] to Logger[org.tio.sitexxx]
22:26:59,623 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [root-file-debug] to Logger[org.tio.sitexxx]
22:26:59,624 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [console] to Logger[org.tio.sitexxx]
22:26:59,640 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [org.tio] to false
22:26:59,641 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - org.tio level set to WARN
22:26:59,643 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [root-file-all] to Logger[org.tio]
22:26:59,655 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [root-file-error] to Logger[org.tio]
22:26:59,657 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [root-file-warn] to Logger[org.tio]
22:26:59,658 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [root-file-info] to Logger[org.tio]
22:26:59,659 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [root-file-debug] to Logger[org.tio]
22:26:59,671 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [console] to Logger[org.tio]
22:26:59,674 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
22:26:59,677 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [sqlupdate-log]
22:26:59,682 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1659791576 - Will use zip compression
22:26:59,683 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1659791576 - Will use the pattern /logs/tio-sitex/sqlupdate.%d{yyyy-MM-dd}.%i.sql for the active file
22:26:59,684 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@735b5592 - The date pattern is 'yyyy-MM-dd' from file name pattern '/logs/tio-sitex/sqlupdate.%d{yyyy-MM-dd}.%i.sql.zip'.
22:26:59,684 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@735b5592 - Roll-over at midnight.
22:26:59,685 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@735b5592 - Setting initial period to Sun May 05 22:26:03 CST 2019
22:26:59,700 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@735b5592 - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
22:26:59,703 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@735b5592 - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
22:26:59,706 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
22:26:59,718 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[sqlupdate-log] - Active log file name: /logs/tio-sitex/sqlupdate.sql
22:26:59,719 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[sqlupdate-log] - File property is set to [/logs/tio-sitex/sqlupdate.sql]
22:26:59,721 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [updatesqlLog] to false
22:26:59,722 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - updatesqlLog level set to INFO
22:26:59,724 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [sqlupdate-log] to Logger[updatesqlLog]
22:26:59,725 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
22:26:59,728 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [sqlquery-log]
22:26:59,730 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1483022288 - Will use zip compression
22:26:59,731 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1483022288 - Will use the pattern /logs/tio-sitex/sqlquery.%d{yyyy-MM-dd}.%i.sql for the active file
22:26:59,735 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@4520ebad - The date pattern is 'yyyy-MM-dd' from file name pattern '/logs/tio-sitex/sqlquery.%d{yyyy-MM-dd}.%i.sql.zip'.
22:26:59,735 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@4520ebad - Roll-over at midnight.
22:26:59,737 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@4520ebad - Setting initial period to Sun May 05 22:26:17 CST 2019
22:26:59,738 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@4520ebad - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
22:26:59,739 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@4520ebad - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
22:26:59,742 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
22:26:59,754 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[sqlquery-log] - Active log file name: /logs/tio-sitex/sqlquery.sql
22:26:59,755 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[sqlquery-log] - File property is set to [/logs/tio-sitex/sqlquery.sql]
22:26:59,757 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [querysqlLog] to false
22:26:59,757 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - querysqlLog level set to INFO
22:26:59,770 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [sqlquery-log] to Logger[querysqlLog]
22:26:59,772 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
22:26:59,776 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [sqlslow-log]
22:26:59,777 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1410986873 - Will use zip compression
22:26:59,778 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@1410986873 - Will use the pattern /logs/tio-sitex/sqlslow.%d{yyyy-MM-dd}.%i.sql for the active file
22:26:59,783 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@7dc7cbad - The date pattern is 'yyyy-MM-dd' from file name pattern '/logs/tio-sitex/sqlslow.%d{yyyy-MM-dd}.%i.sql.zip'.
22:26:59,783 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@7dc7cbad - Roll-over at midnight.
22:26:59,786 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@7dc7cbad - Setting initial period to Sun May 05 22:26:04 CST 2019
22:26:59,787 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@7dc7cbad - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
22:26:59,788 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@7dc7cbad - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
22:26:59,791 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
22:26:59,792 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[sqlslow-log] - Active log file name: /logs/tio-sitex/sqlslow.sql
22:26:59,792 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[sqlslow-log] - File property is set to [/logs/tio-sitex/sqlslow.sql]
22:26:59,794 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [slowsqlLog] to false
22:26:59,795 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - slowsqlLog level set to INFO
22:26:59,796 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [sqlslow-log] to Logger[slowsqlLog]
22:26:59,802 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - About to instantiate appender of type [ch.qos.logback.core.rolling.RollingFileAppender]
22:26:59,803 |-INFO in ch.qos.logback.core.joran.action.AppenderAction - Naming appender as [sqlerror-log]
22:26:59,807 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@221036634 - Will use zip compression
22:26:59,807 |-INFO in c.q.l.core.rolling.TimeBasedRollingPolicy@221036634 - Will use the pattern /logs/tio-sitex/sqlerror.%d{yyyy-MM-dd}.%i.sql for the active file
22:26:59,809 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@4f933fd1 - The date pattern is 'yyyy-MM-dd' from file name pattern '/logs/tio-sitex/sqlerror.%d{yyyy-MM-dd}.%i.sql.zip'.
22:26:59,823 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@4f933fd1 - Roll-over at midnight.
22:26:59,825 |-INFO in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@4f933fd1 - Setting initial period to Sun May 05 22:26:04 CST 2019
22:26:59,838 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@4f933fd1 - SizeAndTimeBasedFNATP is deprecated. Use SizeAndTimeBasedRollingPolicy instead
22:26:59,839 |-WARN in ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP@4f933fd1 - For more information see http://logback.qos.ch/manual/appenders.html#SizeAndTimeBasedRollingPolicy
22:26:59,855 |-INFO in ch.qos.logback.core.joran.action.NestedComplexPropertyIA - Assuming default type [ch.qos.logback.classic.encoder.PatternLayoutEncoder] for [encoder] property
22:26:59,856 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[sqlerror-log] - Active log file name: /logs/tio-sitex/sqlerror.sql
22:26:59,859 |-INFO in ch.qos.logback.core.rolling.RollingFileAppender[sqlerror-log] - File property is set to [/logs/tio-sitex/sqlerror.sql]
22:26:59,861 |-INFO in ch.qos.logback.classic.joran.action.LoggerAction - Setting additivity of logger [errorsqlLog] to false
22:26:59,861 |-INFO in ch.qos.logback.classic.joran.action.LevelAction - errorsqlLog level set to INFO
22:26:59,862 |-INFO in ch.qos.logback.core.joran.action.AppenderRefAction - Attaching appender named [sqlerror-log] to Logger[errorsqlLog]
22:26:59,864 |-INFO in ch.qos.logback.classic.joran.action.ConfigurationAction - End of configuration.
22:26:59,867 |-INFO in ch.qos.logback.classic.joran.JoranConfigurator@7c16905e - Registering current configuration as safe fallback point
05-05 22:27:03 WARN  o.t.s.i.s.PacketDispatcher[120]
command mapping
{"HEARTBEAT_REQ":"org.tio.sitexxx.im.server.handler.HeartbeatReqHandler","HANDSHAKE_REQ":"org.tio.sitexxx.im.server.handler.HandshakeReqHandler","JOIN_GROUP_REQ":"org.tio.sitexxx.im.server.handler.JoinGroupReqHandler","P2P_CHAT_REQ":"org.tio.sitexxx.im.server.handler.P2PChatReqHandler","GROUP_CHAT_REQ":"org.tio.sitexxx.im.server.handler.GroupChatReqHandler","P2P_QUERY_CHAT_RECORD_REQ":"org.tio.sitexxx.im.server.handler.P2pQueryChatRecordReqHandler","PAGE_ONLINE_REQ":"org.tio.sitexxx.im.server.handler.PageOnlineReqHandler","UNSEND_MSG_REQ":"org.tio.sitexxx.im.server.handler.UnSendMsgReqHandler","P2P_ALREADY_READ_REQ":"org.tio.sitexxx.im.server.handler.P2PAlreadyReadReqHandler","P2P_NOT_READ_COUNT_REQ":"org.tio.sitexxx.im.server.handler.P2PNotReadCountReqHandler","DEMO_REQ":"org.tio.sitexxx.im.server.handler.DemoReqHandler"
}


|----------------------------------------------------------------------------------------|
| Tio on github     | https://github.com/tywo45/t-io                                     |
| Tio site address  | https://www.t-io.org/                                              |
| Tio version       | 3.2.9.v20190401-RELEASE                                            |
| ---------------------------------------------------------------------------------------|
| GroupContext name | Tio Site App Im Server                                             |
| Started at        | 2019-05-05 22:27:03                                                |
| Listen on         | 0.0.0.0:9326                                                       |
| Main Class        | org.tio.sitexxx.all.Starter                                        |
| Jvm start time    | 4289 ms                                                            |
| Tio start time    | 10 ms                                                              |
| Pid               | 17648                                                              |
|----------------------------------------------------------------------------------------|


|----------------------------------------------------------------------------------------|
| Tio on github     | https://github.com/tywo45/t-io                                     |
| Tio site address  | https://www.t-io.org/                                              |
| Tio version       | 3.2.9.v20190401-RELEASE                                            |
| ---------------------------------------------------------------------------------------|
| GroupContext name | Tio Site WS Im Server                                              |
| Started at        | 2019-05-05 22:27:03                                                |
| Listen on         | 0.0.0.0:9325                                                       |
| Main Class        | org.tio.sitexxx.all.Starter                                        |
| Jvm start time    | 4292 ms                                                            |
| Tio start time    | 2 ms                                                               |
| Pid               | 17648                                                              |
|----------------------------------------------------------------------------------------|


|----------------------------------------------------------------------------------------|
| Tio on github     | https://github.com/tywo45/t-io                                     |
| Tio site address  | https://www.t-io.org/                                              |
| Tio version       | 3.2.9.v20190401-RELEASE                                            |
| ---------------------------------------------------------------------------------------|
| GroupContext name | Tio-Site Api HttpServer                                            |
| Started at        | 2019-05-05 22:27:12                                                |
| Listen on         | 0.0.0.0:6060                                                       |
| Main Class        | org.tio.sitexxx.all.Starter                                        |
| Jvm start time    | 13819 ms                                                           |
| Tio start time    | 4 ms                                                               |
| Pid               | 17648                                                              |
|----------------------------------------------------------------------------------------|

05-05 22:27:12 WARN  o.t.s.v.h.TioSiteViewModelGenerator[89]
command mapping
{
    "/blog/r/blog-view-onlyhtml.html":"org.tio.sitexxx.view.http.pathmodel.BlogViewPathModelGenerator",
    "/blog/r/index.html":"org.tio.sitexxx.view.http.pathmodel.BlogViewPathModelGenerator",
    "/blog/u/index.html":"org.tio.sitexxx.view.http.pathmodel.BlogUpdatePathModelGenerator",
    "/doc/site/index.html":"org.tio.sitexxx.view.http.pathmodel.BlogViewPathModelGenerator",
    "/doc/tio/index.html":"org.tio.sitexxx.view.http.pathmodel.BlogViewPathModelGenerator"
}


|----------------------------------------------------------------------------------------|
| Tio on github     | https://github.com/tywo45/t-io                                     |
| Tio site address  | https://www.t-io.org/                                              |
| Tio version       | 3.2.9.v20190401-RELEASE                                            |
| ---------------------------------------------------------------------------------------|
| GroupContext name | Tio-Site View HttpServer                                           |
| Started at        | 2019-05-05 22:27:13                                                |
| Listen on         | 0.0.0.0:10160                                                      |
| Main Class        | org.tio.sitexxx.all.Starter                                        |
| Jvm start time    | 14531 ms                                                           |
| Tio start time    | 2 ms                                                               |
| Pid               | 17648                                                              |
|----------------------------------------------------------------------------------------|

但是启动nginx报错

nginx-start.bat
E:\tio官网源码\src\all\target\tio-site-all\config\config\page\nginx>nginx.exe
nginx: [emerg] CreateFile() "E:\tio官网源码\src\all\target\tio-site-all\config\config\page\nginx/conf/nginx.conf" failed (1113: No mapping for the Unicode character exists in the target multi-byte code page)
E:\tio官网源码\src\all\target\tio-site-all\config\config\page\nginx>pause

查了一下,原来是中文路径导致的。(┬_┬),修改路径和配置文件之后重新运行,大功告成。

2019-05-07 补充 使用 smtp.qq.com 发送邮件

  • 首先登录QQ邮箱,点击 设置 -> 账户
  • 找到 POP3/SMTP 服务,点击开启
  • 发送一个确认短信,发送成功之后,会展示授权码,这个授权码拷贝留用
  • 然后修改配置数据库(auth code 对应上文中的授权码,注意不是你的邮箱密码)
    update tio_sitex_conf.email_server set email='your email address',pwd = 'auth code'
    
  • 重启项目注册一个用户吧,邮件发送成功!!
TCP连接数:, IP数:
    发 送