无聊的IT

导航

2018年5月24日 #

easy ui Uncaught Error: cannot call methods on tooltip prior to initialization; attempted to call method 'hide'

摘要: 今天bootstrap 和easy ui混用时候报了这么一个错误,本来可以点击编辑的,但是现在一点击就报错, 后来看到如下一个连接可以解决错误原来是 https://stackoverflow.com/questions/30190437/uncaught-error-cannot-call-met 阅读全文

posted @ 2018-05-24 14:13 秦寒 阅读(696) 评论(0) 推荐(0) 编辑

2018年4月10日 #

zlib+pcre+openssl+nginx安装

摘要: 安装nginx之前首先有3个包先要安装,一个是zlib,一个是pcr3,还有一个openssl http://nginx.org/en/docs/configure.html,这个是Nginx的安装手册,我们可以看到pcre和zlib都是有版本限制的,这个要注意下 pcre 安装开始 首先下载pcr 阅读全文

posted @ 2018-04-10 16:15 秦寒 阅读(1315) 评论(0) 推荐(0) 编辑

centos 7下 django 1.11 + nginx 1.12 + uwsgi 2.0

摘要: 之前写过一个博客关于如何安装django的,见下网址, http://www.cnblogs.com/qinhan/p/8732626.html 还有一个网址如何安装nginx的 http://www.cnblogs.com/qinhan/p/8780098.html 这次说说django搭配ngi 阅读全文

posted @ 2018-04-10 14:37 秦寒 阅读(267) 评论(0) 推荐(0) 编辑

2018年4月7日 #

无网情况下linux安装django

摘要: Processing dependencies for Django==1.11.11Searching for pytzReading https://pypi.python.org/simple/pytz/Download error on https://pypi.python.org/sim 阅读全文

posted @ 2018-04-07 11:01 秦寒 阅读(621) 评论(0) 推荐(0) 编辑

2018年3月15日 #

虚拟机 django 端口无法连接

摘要: 我的虚拟机django服务器为192.168.27.100,使用启动命令python manage.py runserver 9001启动后,发现笔记本电脑的游览器无法连接 经过百度发现首先要view settings.py ,将ALLOWED_HOSTS改为* 随后启动命令必须用ip+端口方式启动 阅读全文

posted @ 2018-03-15 06:52 秦寒 阅读(338) 评论(0) 推荐(0) 编辑

2018年2月3日 #

django.template.exceptions.TemplateDoesNotExist: login.html 错误处理

摘要: 登陆Login界面时候报错 在setting.py下DIRS如下所示 在setting.py重新设置下DIRS如下所示,则问题解决 另外需要确保templates目录下确实是有login.html文件 阅读全文

posted @ 2018-02-03 16:05 秦寒 阅读(1950) 评论(0) 推荐(0) 编辑

2018年1月23日 #

pycharm 如何进行全部搜索

摘要: 界面里面先按ctrl F 弹出搜索页面 在搜索框内连续按两次shift shift可以搜索全文 阅读全文

posted @ 2018-01-23 10:27 秦寒 阅读(907) 评论(0) 推荐(0) 编辑

2018年1月19日 #

python调用 sshpass

摘要: [root@qinhan ~]# ifconfig eno16777736: flags=4163 mtu 1500 inet 172.16.43.105 netmask 255.255.255.0 broadcast 172.16.43.255 inet6 fe80::20c:29ff:fe22:1f4f prefixlen 64 scopeid 0x... 阅读全文

posted @ 2018-01-19 10:53 秦寒 阅读(612) 评论(0) 推荐(0) 编辑

sshpass 使用方法

摘要: 首先下载sshpass并且安装 $ tar -zxvf sshpass-1.06.tar.gz $ cd sshpass-1.06 $ ./configure --prefix=/usr/local/sshpass #指定安装目录 $ make $ make install 问题来了如果 删除~/. 阅读全文

posted @ 2018-01-19 10:29 秦寒 阅读(1984) 评论(0) 推荐(0) 编辑

ssh 绕过The authenticity of host '*.*.*.*' can't be established 直接输入密码

摘要: 只需要使用命令 ssh webgate@10.129.6.237 -o "StrictHostKeyChecking no" 即可以绕过 insp_ap@inspect02:/home/etc_backup/etc> insp_ap@inspect02:/home/etc_backup/etc> ssh webgate@10.129.6.237 The authenticity ... 阅读全文

posted @ 2018-01-19 10:06 秦寒 阅读(473) 评论(0) 推荐(0) 编辑