小编Dav*_*ave的帖子

当我从网上运行CGI脚本时,为什么python不能找到一些模块?

我不知道这里可能出现什么问题:

我有一些来自Biopython的模块,我可以在使用交互式提示或通过命令行执行python脚本时轻松导入.

问题是,当我尝试在web可执行的cgi脚本中导入相同的biopython模块时,我得到一个"导入错误"

:没有名为Bio的模块

这里有什么想法?

python cgi bioinformatics biopython

7
推荐指数
1
解决办法
7191
查看次数

收集和Nginx插件无法正常工作

我的collectd配置看起来像:

LoadPlugin nginx
...
<Plugin "nginx">
    URL "http://localhost:8080/nginx_status?auto"
</Plugin>
Run Code Online (Sandbox Code Playgroud)

Nginx conf看起来像:

server {
  listen 8080;
  index index.html index.htm;
  server_name localhost;
  root  /var/www/default/;

  location / {
    try_files $uri $uri/ /index.html;
  }

  location /nginx_status {
    stub_status on;
    access_log   off;
    allow 127.0.0.1;
    deny all;
  }
}
Run Code Online (Sandbox Code Playgroud)

当我执行

$ curl http://localhost:8080/nginx_status?auto
Run Code Online (Sandbox Code Playgroud)

它输出:

Active connections: 1 
server accepts handled requests
 56 56 322 
Reading: 0 Writing: 1 Waiting: 0 
Run Code Online (Sandbox Code Playgroud)

但是当开放石墨时,没有nginx图可用.Collectd和Nginx重启了很多次.有什么建议?

nginx collectd

4
推荐指数
1
解决办法
4230
查看次数

标签 统计

bioinformatics ×1

biopython ×1

cgi ×1

collectd ×1

nginx ×1

python ×1