我关注了play官方网站上的"Learn“。我正在使用window 7+Chrome。
D:\tester\play>dir
Volume in drive D is APPLIS
Volume Serial Number is 9037-F7BD
Directory of D:\tester\play
07/15/2011 10:38 PM <DIR> .
07/15/2011 10:38 PM <DIR> ..
06/15/2011 11:00 AM 1,810 COPYING
07/15/2011 10:33 PM <DIR> documentation
07/15/2011 10:34 PM <DIR> framework
07/15/2011 10:35 PM <DIR> modules
06/06/2011 08:10 PM 5,858 play
06/06/2011 08:10 PM 50 play.bat
07/15/2011 10:35 PM <DIR> python
06/06/2011 08:10 PM 1,834 README.textile
07/15/2011 10:35 PM <DIR> resources
07/15/2011 10:33 PM <DIR> samples-and-tests
07/15/2011 10:35 PM <DIR> support
07/15/2011 10:53 PM <DIR> yabe
4 File(s) 9,552 bytes
10 Dir(s) 100,984,504,320 bytes free
D:\tester\play>play run
~ _ _
~ _ __ | | __ _ _ _| |
~ | '_ \| |/ _' | || |_|
~ | __/|_|\____|\__ (_)
~ |_| |__/
~
~ play! 1.2.2, http://www.playframework.org
~
~ Oops. conf/routes or conf/application.conf missing.
~ D:\tester\play does not seem to host a valid application.
~
D:\tester\play>play run yabe
~ _ _
~ _ __ | | __ _ _ _| |
~ | '_ \| |/ _' | || |_|
~ | __/|_|\____|\__ (_)
~ |_| |__/
~
~ play! 1.2.2, http://www.playframework.org
~
~ Ctrl+C to stop
~
Listening for transport dt_socket at address: 8000
23:09:24,780 INFO ~ Starting D:\tester\play\yabe
23:09:31,483 WARN ~ You're running Play! in DEV mode
23:09:32,615 ERROR ~ Could not bind on port 9000现在我正在等待解决这个问题,这样我就可以继续学习玩下一步。
我试着用谷歌搜索,但我没有得到我的案例的好答案。
有谁能帮帮我吗?
发布于 2011-07-16 08:00:17
Oops. conf/routes or conf/application.conf missing在误导您,这只是因为您尝试在没有指定要运行的应用程序的情况下启动播放应用程序。只键入play run将导致错误,因为当前目录中没有要运行的应用程序。相反,您只需输入play run yabe即可。
您的第二个错误,Unable to bind to port 9000通常意味着该端口上已经有正在运行的东西。
最简单的做法是更改运行Play的端口,然后重新启动服务器。
为此,只需打开yabe/app/conf/application.conf文件,并更改此行
# http.port=9000至
http.port=9001并不断递增该数字,直到找到空闲端口。如果您通过了9005,那么您最好做一个端口扫描,看看哪些端口正在使用中,而不是一直扫描下去!
https://stackoverflow.com/questions/6713100
复制相似问题