/images/avatar.png

Mulinux运维

Linux Python2.6 Upgrade Python2

下载并编译 1 2 3 4 5 6 7 8 9 10 11 12 13 14 python-V wget http://python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2 rm-rfPython-2.7.3.tar.bz2 tar jxfPython-2.7.3.tar.bz2 cdPython-2.7.3 ./configure make all make install make clean make distclean /usr/local/bin/python2.7-V mv/usr/bin/python/usr/bin/python2.6.6 ln-s/usr/local/bin/python2.7/usr/bin/python python-V

Expect批量添加ssh免密登录

编写脚本deploy_ssh_key.exp 1 2 3 4 5 6 7 8 9 10 11 12 13 #!/usr/bin/expect -f set timeout 2 set ipaddress [lindex $argv 0] set passwd "password" spawn ssh-copy-id "-p2522 mds@$ipaddress" expect { "yes/no" { send "yes\r";exp_continue } "password:" { send "$passwd\r" } } expect "#" 批量执

使用Mock制作Rpm包

安装mock yum install -y mock 初始化mock环境 mock -r epel-6-x86_64 --init 构建rpm包 1 2 mock -r epel-6-x86_64 rebuild package-1.1-1.rpm # 存放在/var/lib/mock/epel-6-x86_64/re

Linux mount 挂载

挂载新磁盘 1 2 3 4 5 6 7 fdisk /dev/hdb n(增加新分区)-p(建立扩展分区)-1(建立1个扩展分区)-回车-回车-p(检查分区是不是已经建立)-w(保存

Vsftp 部署及使用

安装vsftp db4-utils 1 2 yum install -y vsftpd db4-utils #生成口令库需要db4 /etc/init.d/vsftpd restart 配置vsftp vsftp默认情况下可以用系统用户登录 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 vi

常用工具

Windows 无界鼠标:mouse with borders 多桌面工具:dexpot 终端神器:MobaXterm Personal Edition 终端工具:mRemoteNG 安卓模拟器:bluestack

Gitlab 部署及升级

gitlab部署 使用yum安装 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 # yum install curl policycoreutils openssh-server openssh-clients # systemctl enable sshd # systemctl start sshd # yum install postfix # systemctl enable postfix

Linux Mail

安装mailx 1 2 3 4 5 6 7 先查询一下有没有安装过 #rpm -qa |grep mailx 没安装的话执行安装 #yum install mailx #rpm -qa |grep mailx mailx-12.4-8.el6_6.x86_64 配置发件账户 1 2 3 4 5 6 7 8 9 10 11 12 13 编辑/et