CherryPy Hello World error

前端 未结 10 1044
广开言路
广开言路 2020-12-31 07:32

When I am running CherryPy Hello World:

import cherrypy

class HelloWorld:
    def index(self):
        return \"Hello world!\"
    index.exposed = True

che         


        
10条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-31 08:16

    You've probably got something else listening on that port.

    On Linux do:

    netstat -pnl | grep 8080
    

    And see what process is listening on 8080

    On Windows use something like TCPView to do the same.

提交回复
热议问题