ITeye博客

You may be out of my sight, but never out of my mind.

i-david · 共 51 篇文章

linux挂载linux,需要指定username password参数

smb配置 [mp3] comment = MP3 path = /mnt public = yes browseable = yes read only = no create mode = 0775 directory mode = 0775 force user = root force group = root 挂载机器 mount -t cifs -o username=rodfdfdfft,password=ttadffdf //192.168.6.101/mp3 /tmp/abccc ps 精简挂载mount -o username=1,password=1//192.168.…

2013-02-21 11:00 · 运维系统 · 评论(0)

nginx 499问题的一种方法

proxy_ignore_client_abort on;

2012-12-03 18:38 · 运维系统 · 评论(0)

ubuntu 历史版本收集

http://old-releases.ubuntu.com/releases/

2012-11-23 21:48 · 运维系统 · 评论(0)

测试磁盘读写速度

#!/bin/bash i=1 while [ 1 -eq 1 ] do dd if=/dev/zero of=$i.img bs=15M count=1 i=$((i+1)) [ $i -gt 20 ] && exit 0 done

2012-11-21 17:59 · 运维系统 · 评论(0)

自动化工具

1,Puppet 2,Webistrano,Capistrano 3,Contieler,拼写错误

2012-11-11 21:25 · 运维自动化 · 评论(0)

git for eclipse

1,安装git apt-get install git 2,安装EGit插件 http://download.eclipse.org/egit/updates 3,配置ssh认证信息 Windows-->Preferences-->General-->Network connection-->SSH2 一般会自动设置 4,创建项目,加入git Team--> Share... 提交 更新 5,区分git和svn的使用

2012-11-11 21:17 · Python语言 · Ubuntu · 评论(0)

Compizconfig

1,安装Compizconfig设置管理器 2,进入Compizconfig首选项

2012-11-11 21:01 · Ubuntu · 评论(0)

sysconfig

/etc/sysconfig/network-script/ifcfg-eth0 /etc/sysconfig/network-script/ifcfg-eth0:01 /etc/sysconfig/network-script/ifcfg-eth1

2012-11-11 20:59 · CentOS · 评论(0)

简单收录

时间太紧张 简单收录些东东,非标准的文章 清除 windows 访问共享命令 net use * /delete 静态路由,网站一枚 www.tp-link.con.cn shopt -s extglob ls !(bin) 备份策略:月初全量备份,月中增量备份 sed -i "s/^. PasswordAuthentication. /PasswordAuthentication no/" ssh_config echo "123" | passwd david --stdin yum grouplist yum groupinstall "Development tools" cento…

2012-10-11 15:18 · 运维系统 · 评论(0)

haproxy 实现代理

1,安装haproxy mkdir -p /data/softwares/ cd /data/softwates/ wget http://haproxy.1wt.eu/download/1.4/src/haproxy-1.4.20.tar.gz tar xzvf haproxy-1.4.20.tar.gz -C /usr/local/ cd /usr/local/ mv haproxy-1.4.20 haproxy cd haproxy make TARGET=linux26 make install mkdir /etc/haproxy cp /usr/local/haproxy/exa…

2012-09-25 18:04 · 运维系统 · 评论(0)

keepalived 实现热备

基本环境 MASTER机,10.0.0.9 BACKUP机,10.0.0.10 1,安装 wget http://www.keepalived.org/software/keepalived-1.2.7.tar.gz tar xvzf keepalived-1.2.7.tar.gz cd keepalived-1.2.7 ./configure make make install 2,配置(低版本貌似才需要这个配置) cp /usr/local/etc/rc.d/init.d/keepalived /etc/rc.d/init.d/ cp /usr/local/etc/sysconfig/k…

2012-09-24 14:18 · 运维系统 · 评论(0)

eclise python (pydev & subversion)

1,pydev http://pydev.org/updates/ 2,subversion http://subclipse.tigris.org/update_1.0.x/

2012-09-23 20:49 · 评论(0)

CentOS (rsa & dsa) 公钥与密钥的使用

1,基本环境 系统版本 [centospub@davidserver ~]$ cat /etc/issue;uname -a CentOS release 6.3 (Final) Kernel \r on an \m Linux davidserver 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux 用户 centospub:x:502:502::/home/centospub:/bin/bash 密码 centospub 管理机 10.0.0.9 被管理机 10…

2012-09-20 19:45 · 运维系统 · 评论(0)

python 中文转拼音

1,源码 #!/usr/bin/python # -*- coding:utf-8 -*- # filename:demo.py table = 'a,-20319;ai,-20317;an,-20304;ang,-20295;ao,-20292;ba,-20283;bai,-20265;ban,-20257;bang,-20242;bao,-20230;bei,-20051;ben,-20036;beng,-20032;bi,-20026;bian,-20002;biao,-19990;bie,-19986;bin,-19982;bing,-19976;bo,-19805;bu,-1978…

2012-09-16 17:38 · Python语言 · 评论(0)

useradd 深入使用

1,查看帮助 [root@davidserver ~]# useradd -h useradd: invalid option -- 'h' Usage: useradd [options] LOGIN Options: -b, --base-dir BASE_DIR base directory for the home directory of the new account -c, --comment COMMENT GECOS field of the new account -d, --home-dir HOME_DIR home directory of the new acco…

2012-09-13 09:40 · 运维系统 · 评论(0)