缺省情况下,jRunadmin服务器是在端口8000上运行的,而不是端口80。按下面的步骤来改变一个服务器的端口:
1. 打开服务器SERVER-INF目录下的jrun.xml文件。
2. 在文件的末端,你应该可以找到一个<service>元素,它的类属性的值是“jrun.servlet.http.WebService”。
3. 在<service>元素下找到属性port,将port属性的值改成一个新的端口数字:
4. 保存JRun.xml文件。
5. 重新启动服务器。
1. 打开服务器SERVER-INF目录下的jrun.xml文件。
2. 在文件的末端,你应该可以找到一个<service>元素,它的类属性的值是“jrun.servlet.http.WebService”。
3. 在<service>元素下找到属性port,将port属性的值改成一个新的端口数字:
4. 保存JRun.xml文件。
5. 重新启动服务器。
更改端口简洁有效的办法:(前提为你需要设置得端口没有被使用)
1.在浏览器中输入:http://localhost:8000启动jrun的admin
2.点击进入你新建的服务目录:如cnc,默认http port为8101
3.在导航栏上点击进入Services
4.在进入的Active Web Servers 界面,在JRun Web Servers的管理界面处,点击"Add"
5.在Settings的管理界面中给Name添加一个名字,Web Server Port处添加你想要得端口,一般应该为80吧!点击Apply。
6.如果需要也可以在第4步骤禁用8101。
如有疑问:msn:[email protected]
at jrunx.kernel.DeploymentService.loadServices(DeploymentService.java:46
)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:16
28)
at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
23)
at jrunx.kernel.JRun.startServer(JRun.java:483)
at jrunx.kernel.JRun.<init>(JRun.java:401)
at jrunx.kernel.JRun$1.run(JRun.java:258)
at java.security.AccessController.doPrivileged(Native Method)
at jrunx.kernel.JRun.start(JRun.java:255)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at jrunx.kernel.JRun.invoke(JRun.java:179)
at jrunx.kernel.JRun.main(JRun.java:167)
09/23 09:49:55 info Deploying enterprise application "JRun Management Console" f