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. [转]把动态页面.aspx 生成静态页面.html

    本文转自:http://blog.csdn.net/csb5201314/article/details/5391688 如果要把主页Index.aspx 生成静态页面 Index.html后输出会提 ...

  2. windows 下安装Yii2 高级版本

    1.  首先安装 Composer 2.  执行  composer global require "fxp/composer-asset-plugin:~1.1.1" 3. 执行 ...

  3. 背景图片与 CSS的那些事

    在CSS中,背景图片的定位方法有3种: 1)关键字:background-position: top left; 2)像素:background-position: 0px 0px; 3)百分比:ba ...

  4. Web 在线文件管理器学习笔记与总结(11)获取文件夹信息 (12)返回上一级操作

    (11)获取文件夹信息 文件夹没有修改操作. index.php: <?php require 'dir.func.php'; require 'file.func.php'; require ...

  5. OAuth2.0协议

    简介  OAuth(Open Authorization),协议为用户资源的授权提供了一个安全的.开放而又简易的标准.与以往的授权方式不同之处是OAuth的授权不会使第三方触及到用户的帐号信息(如用户 ...

  6. Summary of java stream classes

    Java’s stream classes are good for streaming sequences of bytes, but they’re not good for streaming ...

  7. 用户登录验证例题用的ajax

    1.登录页面 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www. ...

  8. Difference Search Path

    1.Framework Search Path           where to search frameworks (.framework bundles) in addition to sys ...

  9. GCD的简单介绍

    一)GCD 的使用方式 dispatch_async(dispatch_queue_t queue, dispatch_block_t block); async表明运行方式 queue则是你把任务交 ...

  10. linq查询结果指定列的两种方式

    方式一: var results = from product in products orderby product.Price descending select new { product.Na ...