本文共 1691 字,大约阅读时间需要 5 分钟。
https://github.com/b3log/solo/wiki/standalone_mode
只要已经安装好了 Java 环境,一个命令就能启动!
解压 solo.war,然后修改如下配置:
latke.props
,比如修改域名、端口等,默认 http://localhost local.props
文件,其中 #### H2 runtime ####
段落的 jdbc.URL
值,默认数据存储路径 ~/b3log_solo_h2/db(~
表示用户家目录 ${user.home}) 在解压目录下执行:
java -cp WEB-INF/lib/*;WEB-INF/classes org.b3log.solo.Starter
java -cp WEB-INF/lib/*:WEB-INF/classes org.b3log.solo.Starter
默认是监听 8080
端口启动服务的,如果要使用其他端口,可以在上述命令后加入端口参数,比如-lp 9090 -sp 9090
。
更多信息请使用 -h
打印查看:
usage: java -cp WEB-INF/lib/*;WEB-INF/classes org.b3log.solo.Starter [-h] [-lp] [-rm ] [-sh ] [-sp ] [-ss ] [-ssh ] [-ssp ] [-sss ]Solo is a blogging system written in Java, feel free to create your oryour team own blog.Solo 是一个用 Java 实现的博客系统,为你或你的团队创建个博客吧。 -h,--help print help for the command -lp,--listen_port listen port, default is 8080 -rm,--runtime_mode runtime mode (DEVELOPMENT/PRODUCT ION), default is DEVELOPMENT -sh,--server_host browser visit domain name, default is localhost -sp,--server_port browser visit port, default is 8080 -ss,--server_scheme browser visit protocol, default is http -ssh,--static_server_host browser visit static resource domain name, default is localhost -ssp,--static_server_port browser visit static resource port, default is 8080 -sss,--static_server_scheme browser visit static resource protocol, default is httpReport bugs or request features please visit our project website:https://github.com/b3log/solo
转载地址:http://ehxlx.baihongyu.com/