proxy pass 端口换成 另一个 跟原来的不冲突

[root@ayibang-server soft_ware]# cp s10day11/demo.* s10ops/
[root@ayibang-server soft_ware]# cd s10ops/
[root@ayibang-server s10ops]# ls
aa.py db.sqlite3 demo.ini demo.py demo.pyc hosts manage.py s10ops statics templates uploads ????????
[root@ayibang-server s10ops]# vim demo.ini

[uwsgi]
socket = 0.0.0.0:9999
processes = 30
chdir = /data/soft_ware/s10ops/
pythonpath = /usr/local/bin/python
env = DJANGO_SETTINGS_MODULE=s10ops.settings
module = django.core.wsgi:get_wsgi_application()

[root@ayibang-server s10ops]# vim demo.py

#!/usr/bin/env python
#coding:utf-8
import os
from django.core.wsgi import get_wsgi_application
os.environ['DJANGO_SETTINGS_MODULE']='s10ops.settings'
application = get_wsgi_application()

[root@ayibang-server s10ops]# cd /etc/nginx/conf.d/
[root@ayibang-server conf.d]# ls
admin.conf api.conf.bak cms.conf default.conf django.conf img.conf.bak redmine.conf ssl.conf virtual.conf www.conf.bak
[root@ayibang-server conf.d]# cp django.conf office_djaong_uvpv.conf
[root@ayibang-server conf.d]# vim office_djaong_uvpv.conf

server {
listen 8888;
server_name 192.168.1.200;
location / {
include uwsgi_params;
uwsgi_pass 0.0.0.0:9999;
}
location /static {
alias /data/soft_ware/s10ops/statics;
}
}

平滑重启 nginx

[root@ayibang-server conf.d]# /etc/init.d/nginx reload
Reloading nginx: [ OK ]

报错

/data/soft_ware/s10ops/hosts/backends
[pid: 5418|app: 0|req: 4/33] 192.168.1.19 () {50 vars in 949 bytes} [Thu Dec 3 08:21:22 2015] POST /hosts/submit_task/ => generated 16 bytes in 109 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 0)
Traceback (most recent call last):
File "/data/soft_ware/s10ops/hosts/backends/multi_task.py", line 26, in <module>
import paramiko_handle #多进程 批量处理脚本 文件
File "/data/soft_ware/s10ops/hosts/backends/paramiko_handle.py", line 4, in <module>
import paramiko,json #
ImportError: No module named paramiko
179
--res--task-- [{'bind_host__host__ip_addr': u'124.205.209.42', 'bind_host__host_user__username': u'root', 'event_log': u'N/A', 'bind_host__host__hostname': u'ubantu-1', 'result': u'unknown', 'date': datetime.datetime(2015, 12, 3, 8, 21, 22, 498018, tzinfo=<UTC>), 'id': 224}]
[pid: 5414|app: 0|req: 3/34] 192.168.1.19 () {42 vars in 819 bytes} [Thu Dec 3 08:21:22 2015] GET /hosts/gettaskresult/?task_id=179 => generated 214 bytes in 8 msecs (HTTP/1.1 200) 3 headers in 102 bytes (1 switches on core 0)
179
--res--task-- [{'bind_host__host__ip_addr': u'124.205.209.42', 'bind_host__host_user__username': u'root', 'event_log': u'N/A', 'bind_host__host__hostname': u'ubantu-1', 'result': u'unknown',‘

centos 安装 paramiko

[root@ayibang-server conf.d]# pip install paramiko
Collecting paramiko
Downloading paramiko-1.16.0-py2.py3-none-any.whl (169kB)
100% |################################| 172kB 6.5MB/s
Collecting ecdsa>=0.11 (from paramiko)
Downloading ecdsa-0.13-py2.py3-none-any.whl (86kB)
100% |################################| 90kB 58kB/s
Collecting pycrypto!=2.4,>=2.1 (from paramiko)
Downloading pycrypto-2.6.1.tar.gz (446kB)
100% |################################| 446kB 88kB/s
Installing collected packages: pycrypto, ecdsa, paramiko
Running setup.py install for pycrypto
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for __gmpz_init in -lgmp... no
checking for __gmpz_init in -lmpir... no
checking whether mpz_powm is declared... no
checking whether mpz_powm_sec is declared... no
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for inttypes.h... (cached) yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdint.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking for inline... inline
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for int8_t... yes
checking for size_t... yes

重新拷贝 新项目 发现不显示 原来是 paramiko 没有装的更多相关文章

  1. 在AndroidStudio v1.2.0中导入或增加新项目或工程(导入第三方类库或工程)

    以下说明基于AndroidStdudio版本v1.2 由于AndroidStudio项目止录与Eclipse中的Worksapce在意义上的改变,所以导入新包或建立新项目时并不和以前那样了. 下面是我 ...

  2. 【Cocos2d-x for WP8 学习整理】(1)创建一个新项目

    喜大普奔                         10.1假期之前看到了一个很振奋的消息,就是随着Cocos2d-x 2.2的发布,WP8/WIN8有史以来第一次的合并到主版本了. 之前 V2 ...

  3. cocos2d-x3.2创建新项目失败的一种可能性(cygwin自带的python2.6被抢先执行)

    之前一直使用cocos2d-x2.2写游戏,写了几个游戏后,想尝试下3.x版本的新功能,就下载了cocos2d-x3.2版本. 参照官方文档的说法,cocos2d-x3.x版本需要python2.7环 ...

  4. 复制新项目 ,tomcat部署时名字还是旧项目名

    基于一个就项目 copy 成新项目   关于项目名注意点: 在工作空间下  copy一份新项目 1首先在目录将项目名字更改. 2.在新项目下 找到 [.project]文件  将里面的nama更改 3 ...

  5. 用Kotlin开发Android应用(II):创建新项目

    这是关于Kotlin的第二篇.各位高手发现问题,请继续“拍砖”. 原文标题:Kotlin for Android(II): Create a new project 原文链接:http://anton ...

  6. cocos2d-x 3.2 创建新项目问题

    cocos2d-x 3.2 执行cocos2d-x\tools\cocos2d-console\console下的cocos2d.py,输入相应的参数即可创建一个新的项目,具体参数网上介绍一大堆,就不 ...

  7. myeclipse下拷贝的项目,tomcat下部署名称和导出为war包的名称默认值修改

    拷贝一个项目,作为一个新的项目,给它换了名字,这时候默认的部署名称等都是原来项目的,这时候要在属性里面修改一下.

  8. 如何向Openstack社区提交一个新项目

    前几天有个朋友问我:自己有一个idea不错的项目,也把基本的框架写好了,想贡献到Openstack社区,却不知道应该怎么做.正好之前我有过类似的经历,那么来分享一下我是如何向Openstack社区提交 ...

  9. MyEclipse中拷贝J2EE项目,发布到tomcat中名字一样的解决办法

    修改Eclipse工作空间下新拷贝项目下.settings文件夹中org.eclipse.wst.common.component的两个属性值. 为新项目名字: <?xml version=&q ...

随机推荐

  1. WPF DataGrid的分页实现

    原理:其实分页功能的实现大家都清楚,无非就是把一个记录集通过运算来刷选里面对应页码的记录. 接来下我们再次添加新的代码 <Grid> <DataGrid  Name="da ...

  2. Html - SPA页面收集(有图)

    场景,左图,又字段的布局 <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> ...

  3. VSS错误自动修复

    公司项目开发源代码管理一直用vss,从vss6.0用到vss8.0(vss2005),在近两年的试用中碰到一些大大小小的问题:1:vss服务迁移,这个比较好办,直接将整个vss目录拷贝过去,加上相应的 ...

  4. java类的继承

    继承就是在一个现有类型的基础上,通过增加新的方法或者重定义已有方法(重写)的方式,产生一个新的类型.继承是面向对 象的三个基本特征--封装.继承.多态的其中之一,我们在使用java时编写的每一个类都是 ...

  5. 移动端 :meta标签1万个作用

    meta标签 <meta charset="utf-8"> <meta http-equiv="Content-Type" content=& ...

  6. PHP 错误与异常 笔记与总结(9)自定义错误处理器

    自定义错误处理器更加智能. <?php class myErrorHandler{ //$message:错误信息 //$filename:错误文件名 //$line:错误行号 //$vars: ...

  7. PHP网络操作函数汇总

    PHP网络操作函数汇总 投稿:junjie 字体:[增加 减小] 类型:转载   这篇文章主要介绍了PHP网络操作函数汇总,本文列举了如gethostbyaddr.gethostbyname.head ...

  8. PHP开发绝对不能违背的安全铁则

    PHP开发绝对不能违背的安全铁则 [来源] 达内    [编辑] 达内   [时间]2012-12-27 使用 mysql_real_escape_string() 作为用户输入的包装器,就可以避免用 ...

  9. 21335592 ROWS

    CREATE TABLE w_big  SELECT * FROM  ( SEELCT * FROM w_tab UNION ALL SELECT * FROM w_tab_copy_modify ) ...

  10. EFDC主控文件efdc.inp文件的xml格式化处理——转载http://blog.sina.com.cn/s/articlelist_1584892573_0_1.html

    在对EFDC模型进行系统集成时,虽然可以通过一行一行读来进行解析处理,但那将是一个繁琐的工作.我们经过xml格式化处理后,再经xsd转成Dataset类对象,那么整个主控文件就是一个数据库表集合,对其 ...