运维教程视频逗逼运维
最近要在本地获取远程服务器上的实时日志信息,想到了采用paramiko模块来获取远程机器上的内容所以,第一步就是要安装paramiko这个模块的信息C:\Users\shuidiyou>easy_install paramiko Searching for paramiko Best match: paramiko 1.15.2 P
游戏服要经常进行调试时间来测试游戏,之前一直手动进行date命令修改后让测试进行游戏测试现在用web页面让测试直接填写时间后进行表单提交修改时间整个目录[root@node02 script]# tree -DC python python ├── [Feb 15 0:01] cgi-bin │
[root@localhost tru64]# service zabbix_server restart/usr/local/sbin/zabbix_server: error while loading shared libraries: libnetsnmp.so.15: cannot open shared object file: No such file or directoryZab
设置为true,修改数据目录存储模式,每个数据库的文件存储在DBPATH指定目录的不同的文件夹中。使用此选项,可以配置的MongoDB将数据存储在不同的磁盘设备上,以提高写入吞吐量或磁盘容量。默认为false。注意:要是在运行一段时间的数据库中,开启该参数,会导致原始的数据都会消失(注释参数则会回来)。因为数据目录都不同了,除非迁移现有的数据文件到directoryperdb产生的数据库目录中,如
windows环境下CGI需要mod_python支持在网上搜了一下,发现mod_python已经停止维护了,而替代他的是mod_wsgihttp://www.lfd.uci.edu/~gohlke/pythonlibs/#mod_wsgi找到对应版本下载解压后得到mod_wsgi.so,然后扔到apache的modules目录就可以了。在apache的conf文件中加入:LoadModule w
ls|xargs -t -i mv {} {}.bak 所有文件添加.bak后缀ls |sed 's/.bak$//'|xargs -I {} mv {}.bak {} 去除所有文件.bak后缀,上一个命令的反向恢复for i inls;do mv $i ${i%.*};done 同上,去除后缀名,利用变量模式匹配运算符find ./ -name "*.py" -ex
过滤文件内电子邮箱和网站地址过滤邮箱(只显示过滤文本):#egrep -o '[A-Za-z0-9.]+@[A-Za-z0-9.]+\.[a-zA-Z]{2,3}' file.txtzhangsan@sina.comlishi.123@sohu.com过滤网站地址:#egrep -o 'http://[A-Za-z0-9\-\.]+\.[a-zA-
tr -d "\r" <file.txt >out.txt tr -d "\015" <file.txt >out.txt #^M八进制形式是 015 strings file.txt >out.txt sed -i 's/^M/
puppet一次错误记录报一下记录[root@puppetagent ~]# puppet agent --test --noop notice: Ignoring --listen on onetime run err: Could not retrieve 
zabbix的2.4版本安装完后,这里的语言界面选择没有中文,其实是这个版本把中文的屏蔽了。[root@puppet_master include]# vim /usr/share/zabbix/include/locales.inc.php将false改为true,重启后即可[root@puppet_master conf.d]# service
环境准备:web环境(apache,php,mysql)三个都使用yum来安装准备yum源,使用阿里的源(新浪源安装apache的时候有问题)[root@puppet_master yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/re
一个错误问题为难了一周~~puppet客户端执行[root@tj_web ~]# puppet agent --test --noopnotice: Ignoring --listen on onetime run info: Caching catalog for&n
在安装gevent时报错C:\leakScan-master\scanner>easy_install gevent Searching for gevent Reading http://pypi.python.org/simple/gevent/ Best match: gevent 1.0.1 Downloading
三步一,调整vm虚拟机模式为NAT模式二,设置主机网络环境记住,ip地址,重要信息三、虚拟机网络设置注意网关和DNS信息,第四位数都是为2,不是1.参考信息http://www.tuicool.com/articles/j6Bj6v
[root@server yum.repos.d]# yum install nginx Loaded plugins: fastestmirror, priorities, refresh-packagekit, security Loading mirror speeds f
__author__ = 'shuidiyou' file_word_read= open("file_word",'r') delete_file = r'2014-05-29' #To be matched keyword words = file_word_read.readline
#coding:cp936 __author__ = 'JYC103' import os,re file_dir=r'D:\BaiduYunDownload\从零开始学习linux安全加固\视频\视频' file_match=[] old='CDN' new='cdn' os.chdir(file_dir) for file_list in&nb
Sqlite是一个轻量级的数据库,类似于Access.一、 安装Python 2.5开始提供了对sqlite的支持,带有sqlite3库.没有sqlite的版本需要去PySqlite主页上下载安装包.PySqlite下载地址http://code.google.com/p/pysqlite/downloads/list 二、创建数据库/打开数据库Sqlite使用文件作为数据库,你可以指定
多个进度条,满屏刷~~这是因为翻译的时候,eta被转成eta(英国中部时间),导致整个输出太长,引起了断行,导致下次输出必须从新行开始。解决方法:我们需要把该文件翻译回去去掉英文中部时间先备份文件[root@node02 shell]# cp -v /usr/share/locale/zh_CN/LC_MESSAGES/wget.mo /usr/s
有时mysql的socket丢失时,可用以下方式进行临时登入mysql -uroot -p123456 --protocol tcp -hlocalhost这样就可以进行临时登入若要恢复socket的话只要重启mysql服务即可。
1、确实虚拟机的网卡是否已经链接上从下图可以看到网卡没有链接上,单击网卡把网卡连接上。链接时有个圈圈提示有时会出现以下信息,虚拟机网卡已连接上,但系统网络还未链接上。然后ifconfig查看信息,没有获取到IP查看网卡的配置文件是否存在从图上可得网卡的配置文件并不存在,则手动建立配置文件vim ifcfg-eth0 DEVICE="eth0" HWADDR="00:0C:29:BC:69
查看现有的分区[root@server ~]# fdisk -l Disk /dev/sda: 21.5 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders Units =&nbs
#coding:cp936 __author__ = 'JYC103' import os file_dir=r'D:\BaiduYunDownload\特级课视频教程' os.chdir(file_dir) for file_list in os.listdir(file_dir): if
#coding:cp936 __author__ = 'JYC103' num_dic={'一':1,'二':2,'三':3,'四':4,'五':5,'六':6,'七':7,'八':8,'九':9,'零':0} put_num=raw_input('输入中文数字:') #print put_num for key in num_dic:
当pycharm开发python时,中文出现乱码修改setting文件这样就能正常显示保持这样的环境编码下,即使路径带有中文也无所谓了~
前提:要安装完apache和svn服务端svn服务端安装记录http://alwaysyunwei.blog.51cto.com/3224143/1372377apache可以用yum安装在整合apache和svn时需要在Apache中添加svn模块[root@VM_47_128_centos html]# yum install mod_dav_svn&n
[root@server ~]# python Python 2.6.6 (r266:84292, Dec 7 2011, 20:48:22) [GCC 4.4.6 20110731 (Red Hat 4.4.6-3)] on 
未格式化打印> db.games.find() { "_id" : ObjectId("53d077372826c5d3aae7ad6a"), "game" : "pinball", "user" : "joe", "score" : 5050 }格式化
Mongodb用户分为三种1、全局用户2、数据库对应用户3、只读用户查看所有的数据库> show dbs admin 0.078GB book_blog 0.078GB local 0.078GB mydb&nb
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号