十一、命令行启动

11、命令行启动

在1.0-beta-3.1以后 Voovan 将支持命令行启动,目的是更好的支持将 Voovan 打包成一个 Docker 镜像,当然也可能在别的场景下更有用.下面我们来看看命令行的说明:

  1. Usage: java -jar voovan-framework.jar [Options]
  2. Start voovan webserver
  3. Options:
  4. -h Webserver bind host ip address
  5. -p Webserver bind port number
  6. -rt Socket read timeout
  7. -st Socket send timeout
  8. -r Context root path, contain webserver static file
  9. -i index file for client access to webserver
  10. -mri Match route ignore case
  11. --config Webserver config file
  12. --charset set default charset
  13. --noGzip Do not use gzip for client
  14. --noAccessLog Do not write access log to access.log
  15. --https.CertificateFile Certificate file for https
  16. --https.CertificatePassword ertificate file for https
  17. --https.KeyPassword Certificate file for https
  18. --help how to use this command
  19. -v Show the version information

都是一写很简单移动的参数.启动服务使用的是:java -jar voovan-framework.jar [Options]在 shell 或者 powershell 中运行。