|
100金钱
请大神指点,我换过ubuntu14.04 和 ubuntu16.04,每次安装都会出现提示,部署完成后,启动apache,会提示:
- AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using ::1. Set the 'ServerName' directive globally to suppress this message
复制代码
日志里是这样的:
- [Mon Nov 07 11:25:55.022520 2016] [wsgi:error] [pid 8692:tid 140677276653312] [remote 105.xx.xx.xx:57606] mod_wsgi (pid=8692): Target WSGI script '/var/www/zmirror/wsgi.py' cannot be loaded as Python module.
- [Mon Nov 07 11:25:55.022658 2016] [wsgi:error] [pid 8692:tid 140677276653312] [remote 105.xx.xx.xx:57606] mod_wsgi (pid=8692): Exception occurred processing WSGI script '/var/www/zmirror/wsgi.py'.
- [Mon Nov 07 11:25:55.022716 2016] [wsgi:error] [pid 8692:tid 140677276653312] [remote 105.xx.xx.xx:57606] Traceback (most recent call last):
- [Mon Nov 07 11:25:55.022957 2016] [wsgi:error] [pid 8692:tid 140677276653312] [remote 105.xx.xx.xx:57606] File "/var/www/zmirror/wsgi.py", line 9, in <module>
- [Mon Nov 07 11:25:55.022966 2016] [wsgi:error] [pid 8692:tid 140677276653312] [remote 105.xx.xx.xx:57606] from zmirror.zmirror import app as application
- [Mon Nov 07 11:25:55.024276 2016] [wsgi:error] [pid 8692:tid 140677276653312] [remote 105.xx.xx.xx:57606] File "/var/www/zmirror/zmirror/zmirror.py", line 23, in <module>
- [Mon Nov 07 11:25:55.024288 2016] [wsgi:error] [pid 8692:tid 140677276653312] [remote 105.xx.xx.xx:57606] from flask import Flask, request, make_response, Response, redirect
- [Mon Nov 07 11:25:55.024323 2016] [wsgi:error] [pid 8692:tid 140677276653312] [remote 105.xx.xx.xx:57606] ImportError: No module named 'flask'
- [Mon Nov 07 11:25:57.342697 2016] [wsgi:error] [pid 8692:tid 140677343794944] [remote 105.xx.xx.xx:44294] mod_wsgi (pid=8692): Target WSGI script '/var/www/zmirror/wsgi.py' cannot be loaded as Python module.
- [Mon Nov 07 11:25:57.342775 2016] [wsgi:error] [pid 8692:tid 140677343794944] [remote 105.xx.xx.xx:44294] mod_wsgi (pid=8692): Exception occurred processing WSGI script '/var/www/zmirror/wsgi.py'.
- [Mon Nov 07 11:25:57.342814 2016] [wsgi:error] [pid 8692:tid 140677343794944] [remote 105.xx.xx.xx:44294] Traceback (most recent call last):
- [Mon Nov 07 11:25:57.342858 2016] [wsgi:error] [pid 8692:tid 140677343794944] [remote 105.xx.xx.xx:44294] File "/var/www/zmirror/wsgi.py", line 9, in <module>
- [Mon Nov 07 11:25:57.342863 2016] [wsgi:error] [pid 8692:tid 140677343794944] [remote 105.xx.xx.xx:44294] from zmirror.zmirror import app as application
- [Mon Nov 07 11:25:57.342884 2016] [wsgi:error] [pid 8692:tid 140677343794944] [remote 105.xx.xx.xx:44294] File "/var/www/zmirror/zmirror/zmirror.py", line 23, in <module>
- [Mon Nov 07 11:25:57.342887 2016] [wsgi:error] [pid 8692:tid 140677343794944] [remote 105.xx.xx.xx:44294] from flask import Flask, request, make_response, Response, redirect
- [Mon Nov 07 11:25:57.342905 2016] [wsgi:error] [pid 8692:tid 140677343794944] [remote 105.xx.xx.xx:44294] ImportError: No module named 'flask'
复制代码 |
|