十、命令行启动
八、命令行启动
在1.0-beta-3.1以后 Voovan 将支持命令行启动,目的是更好的支持将 Voovan 打包成一个 Docker 镜像,当然也可能在别的场景下更有用.下面我们来看看命令行的说明:
Usage: java -jar voovan-framework.jar [Options]
Start voovan webserver
Options:
-h Webserver bind host ip address
-p Webserver bind port number
-rt Socket read timeout
-st Socket send timeout
-r Context root path, contain webserver static file
-i index file for client access to webserver
-mri Match route ignore case
--config Webserver config file
--charset set default charset
--noGzip Do not use gzip for client
--noAccessLog Do not write access log to access.log
--https.CertificateFile Certificate file for https
--https.CertificatePassword ertificate file for https
--https.KeyPassword Certificate file for https
--help how to use this command
-v Show the version information
都是一写很简单移动的参数.启动服务使用的是:java -jar voovan-framework.jar [Options]
在 shell 或者 powershell 中运行。