(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80

* Restarting web server apache2                                        
    (98)Address already in use: make_sock: could not bind to address [::]:8080
    (98)Address already in use: make_sock: could not bind to address 0.0.0.0:8080
    no listening sockets available, shutting down
    Unable to open logs
    Action 'start' failed.
    The Apache error log may have more information.                                                                  [fail]

继续阅读(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80

Apache Flask 单页面URL增加尾随斜线(Ubuntu 14.04)

环境

  • 系统环境: Ubuntu 14.04; Apache2, Tomcat6集群配置.
  • Flask Template文件夹中仅有一个server.html文件.
  • views.py中仅有一个route.
@app.route('/')
    def server():
        return render_template("server.html")

需求

在浏览器中输入http://example.com/page, URL自动跳转到http://example.com/page/. 继续阅读Apache Flask 单页面URL增加尾随斜线(Ubuntu 14.04)