as3:~/GarfieltBlog-webpy# ls
apps index.py LICENSE.txt sessions template
data install.py models setting.py
GarfieltBlog.jpg libs README.md static
as3:~/GarfieltBlog-webpy# python index.py
0.0 (1): SELECT * FROM Garfielt_kvdata WHERE kv_name='setting'
http://0.0.0.0:8080/
Traceback (most recent call last):
File "index.py", line 115, in
app.run()
File "/usr/local/lib/python2.7/site-packages/web/application.py", line 313, in run
return wsgi.runwsgi(self.wsgifunc(*middleware))
File "/usr/local/lib/python2.7/site-packages/web/wsgi.py", line 54, in runwsgi
return httpserver.runsimple(func, validip(listget(sys.argv, 1, '')))
File "/usr/local/lib/python2.7/site-packages/web/httpserver.py", line 157, in runsimple
server.start()
File "/usr/local/lib/python2.7/site-packages/web/wsgiserver/init.py", line 1753, in start
raise socket.error(msg)
socket.error: No socket could be created
as3:~/GarfieltBlog-webpy# python install.py
as3:~/GarfieltBlog-webpy# ls
apps index.py libs README.md setting.pyc
data install.py LICENSE.txt sessions static
GarfieltBlog.jpg install.pyc models setting.py template
as3:~/GarfieltBlog-webpy# cd data
as3:~/GarfieltBlog-webpy/data# ls
cache Garfielt.db
as3:~/GarfieltBlog-webpy/data#
hi.
as3:~/GarfieltBlog-webpy# ls apps index.py LICENSE.txt sessions template data install.py models setting.py GarfieltBlog.jpg libs README.md static as3:~/GarfieltBlog-webpy# python index.py 0.0 (1): SELECT * FROM Garfielt_kvdata WHERE kv_name='setting' http://0.0.0.0:8080/ Traceback (most recent call last): File "index.py", line 115, in
app.run()
File "/usr/local/lib/python2.7/site-packages/web/application.py", line 313, in run
return wsgi.runwsgi(self.wsgifunc(*middleware))
File "/usr/local/lib/python2.7/site-packages/web/wsgi.py", line 54, in runwsgi
return httpserver.runsimple(func, validip(listget(sys.argv, 1, '')))
File "/usr/local/lib/python2.7/site-packages/web/httpserver.py", line 157, in runsimple
server.start()
File "/usr/local/lib/python2.7/site-packages/web/wsgiserver/init.py", line 1753, in start
raise socket.error(msg)
socket.error: No socket could be created
as3:~/GarfieltBlog-webpy# python install.py
as3:~/GarfieltBlog-webpy# ls
apps index.py libs README.md setting.pyc
data install.py LICENSE.txt sessions static
GarfieltBlog.jpg install.pyc models setting.py template
as3:~/GarfieltBlog-webpy# cd data
as3:~/GarfieltBlog-webpy/data# ls
cache Garfielt.db
as3:~/GarfieltBlog-webpy/data#
我是新手,可否写个详细的安装教程?