0
我有一個很奇怪的問題,似乎並不存在互聯網上的任何地方...我遵循指南來安裝應用程序,我需要「創建一個用於AJP連接的新HTTP偵聽器「。我需要使用的不是進入管理控制檯所以這可以被自動命令行...Glassfish - bin/asadmin創建網絡偵聽器失敗
這裏是我試圖運行命令:
[email protected]:/home/glassfish$ sudo /home/glassfish/bin/asadmin create-network-listener –-address 127.0.0.1 --protocol http-listener-1 --listenerport 8009 --jkenabled true http-listener-ajp1
然後它要求以下的輸入
Enter the value for the listenerport option> 8009
Enter the value for the protocol option> http-listener-1
然後打印以下錯誤:
Command create-network-listener only accepts one operand
Usage: asadmin [asadmin-utility-options] create-network-listener
[--address <address>] --listenerport <listenerport>
[--threadpool <threadpool(default:http-thread-pool)>]
--protocol <protocol> [--transport <transport(default:tcp)>]
[--enabled[=<enabled(default:true)>]]
[--jkenabled[=<jkenabled(default:false)>]]
[--target <target(default:server)>] [-?|--help[=<help(default:false)>]]
name
Command create-network-listener failed.
於是我又試了一次,W第i個以下命令(不指定任何選項):
[email protected]:/home/glassfish$ sudo /home/glassfish/bin/asadmin create-network-listener http-listener-ajp1
Enter the value for the listenerport option> 8009
Enter the value for the protocol option> http-listener-1
,並得到這個錯誤:
remote failure: The specified protocol http-listener-1 is not yet configured
Command create-network-listener failed.