我想運行一個簡單的基於Python的網絡服務器here。如何更改套接字的權限?
我也得到了以下錯誤消息:
Traceback (most recent call last):
File "webserver.py", line 63, in <module>
main()
File "webserver.py", line 55, in main
server = HTTPServer(('', 80), MyHandler)
File "/usr/lib/python2.5/SocketServer.py", line 330, in __init__
self.server_bind()
File "/usr/lib/python2.5/BaseHTTPServer.py", line 101, in server_bind
SocketServer.TCPServer.server_bind(self)
File "/usr/lib/python2.5/SocketServer.py", line 341, in server_bind
self.socket.bind(self.server_address)
File "<string>", line 1, in bind
socket.error: (13, 'Permission denied')
據我瞭解我的防火牆阻止用戶訪問一個插座?我對嗎?如果是這種情況,我該如何更改權限?更改這些權限有危險嗎?
http://www.unixguide.net/network/socketfaq/4.8.shtml – 2010-02-23 22:54:41
@ THC4k連接:感謝您的附加參考;我已經將其納入我的答案。 – 2010-02-23 23:22:54