|
[楼主] windows 移植到linux 下问题 用的mono 2.6.3 jexus 3.3 路径和权限都没问题,不知道是什么原因,哪位兄弟遇到过类似的问题,帮下忙 jexus 能正常访问 http://192.168.1.252/ Welcome to Jexus! 在网站物理路径下放了个 index.aspx 文件,访问时 http://192.168.1.252/index.aspx 出现以下问题 Jexus web server uptime: 0 days, 0:23:13 Server Error in '/' Application -------------------------------------------------------------------------------- The resource cannot be found. Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly. Requested URL: /index.aspx [1楼] 回复:windows 移植到linux 下问题 你看到欢迎界面只能说明jexus已经正常工作,不表示你的配制是正确的。 你所指的问题,应该是配置文件有问题。 请注意网站配置文件中的“path=”和“root=”这两个字段。 “path=” 后面要接网站的物理路径,比如: path=/var/www/default “root=”后面指的是这个网站的虚拟路径,一般都是"root=/" 还有一个参数是host,如果这个站不用域名或任意域名,就写成hosts=* 另外,看看你的jexus文件夹中的jws.conf这个文件,注意里面的字段所指网站配置的文件夹一定要是你放配置文件的文件夹,否则就会因找不到配置文件而使用默认值,默认值的网站文件夹是你的jexus安装文件夹! [2楼] 回复:windows 移植到linux 下问题 谢谢 已经解决,重启了下电脑 ,可以了 我的jexus 中 jsw.restart 直接运行怎么显示 [root@localhost jws]# jsw.restart -bash: jsw.restart: command not found [3楼] 回复:windows 移植到linux 下问题 您打错字了,应该是 jws.restart [4楼] 回复:windows 移植到linux 下问题 [root@localhost jws]# ll total 604 -rw-r--r-- 1 root root 55 May 14 15:29 jws.conf -rw-r--r-- 1 root root 37 Nov 15 2009 jws.conf~ -rw-r--r-- 1 root root 71680 Jan 1 23:07 jws.exe -rwxr-xr-x 1 root root 127 Dec 27 20:17 jws.regsvr -rwxr-xr-x 1 root root 310 Nov 20 00:29 jws.restart -rwxr-xr-x 1 root root 175 Nov 20 00:29 jws.start -rwxr-xr-x 1 root root 201 Nov 20 00:29 jws.stop -rw-r--r-- 1 root root 79872 Jan 1 23:07 jwsHttpd.exe -rw-r--r-- 1 root root 43520 Jan 1 23:07 jwsState.exe -rw-r--r-- 1 root root 58368 Jan 1 23:07 jwsWorker.exe -rw-r--r-- 1 root root 92672 Jan 1 23:07 jxAspx.dll -rw-r--r-- 1 root root 131072 Jan 1 23:07 jxHost.dll drwxr-xr-x 2 root root 4096 May 16 20:02 logs -rw-r--r-- 1 root root 6827 Dec 27 20:45 readme.txt drwxr-xr-x 2 root root 4096 May 14 18:07 sites -rw-r--r-- 1 root root 734 Nov 15 2009 state.conf [root@localhost jws]# jws.restart -bash: jws.restart: command not found 还是不行 [5楼] 回复:windows 移植到linux 下问题 以root身份,进入jws文件后,命令应该是: ./jws.restart [6楼] 回复:windows 移植到linux 下问题 好了 谢谢 | |