Https://github.com/b3log/solo/wiki/standalone_mode
Standalone mode
As long as you have installed the Java environment, a command can be started!
- Instead of relying on a MySQL database, use an embedded H2 database
- Instead of relying on an external Servlet container, start with an inline Jetty
Configuration
Unzip the Solo.war, and then modify the following configuration:
- (optional) modification
latke.props
, such as changing the domain name, port, etc., by default http://localhost
- (optional) Modify
local.props
File, where#### H2 runtime ####
the jdbc.URL
value of the paragraph, default data store path ~/b3log_solo_h2/db ( ~
indicates user home directory ${user.home})
Run
Execute in the Unzip directory:
- Windows:
java -cp WEB-INF/lib/*;WEB-INF/classes org.b3log.solo.Starter
- Unix-like:
java -cp WEB-INF/lib/*:WEB-INF/classes org.b3log.solo.Starter
The default is to listen 8080
port to start the service, if you want to use a different port, you can add port parameters after the above command, such as -lp 9090-sp 9090
.
For more information, please use -h
Print view:
USAGE:JAVA-CP web-inf/lib/*; Web-inf/classes Org.b3log.solo.Starter [-h] [-lp <listen_port>] [-rm <runtime_mode>] [-sh <server_hos T>] [-sp <server_port>] [-ss <server_scheme>] [-ssh <static_server_host>] [-SSP <STATI C_server_port>] [-sss <static_server_scheme>]solo is a blogging system written in Java, feel free to create your Oryour Team own blog. Solo is a Java-implemented blogging system that creates a blog for you or your team. -H,--help print Help for the Command-lp,--listen_port <LISTEN_PORT> Listen port, default is 8080-RM,--runtime_mode <RUNTIME_MODE> Runtime mode (development/product ION), default I S DEVelopment-sh,--server_host <SERVER_HOST> Browser visit domain Name, default is LOCALHOST-SP,--server_port < ; Server_port> Browser Visit PORT, default is 8 080-ss,--server_scheme <SERVER_SCHEME> Browser visit Protocol, default is Http-ssh,--static_server_host <stati C_server_host> Browser visit static resource domain Name, default is Localho ST-SSP,--static_server_port <STATIC_SERVER_PORT> Browser visit static ResourcePort, default is 8080-sss,--static_server_scheme <static_server_s Cheme> Browser visit static resource protocol, Default is Httpreport bugs or request features to visit our project Website:https: Github.com/b3log/solo
Unofficial documents
- Zempty: deploying solo under Eclipse
- Ansen: Solo BAE Deployment Beginner's Guide
- Ansen: B3log deployment to OpenShift series Tutorials
- Flaming flames: Solo skin Transplant Video
- Vanessa: Introduction to Solo skin
- Uncle: Eclipse local debugging solo source
- Y: Solo's thermal deployment scenario under Eclipse. docx
B3log Deployment Documentation