尝试将Java应用程序放入NGINX单元时,将引发错误:
root@localhost:~# curl -X PUT [email protected] '127.0.0.1:8443/config/'
{
"error": "Invalid configuration.",
"detail": "The module to run \"java\" is not found among the available application modules."
}
使用单元版本1.8.0
这里可能缺少什么?
显然,JSC模块必须单独安装:
# apt update
# apt install unit
# apt install unit-dev unit-go1.9 unit-go1.10 unit-jsc8 unit-jsc10 unit-php \
unit-perl unit-python2.7 unit-python3.6 unit-ruby
安装后,将可以部署Java应用程序。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句