`
文章列表
#!/bin/sh wk=$(ifconfig -a |grep eth|awk '{print $1}') wks=$(ifconfig -a |grep eth|awk '{print $1}'|wc -l) echo "网卡总数是:$wks(个)" net_path="/etc/sysconfig/network-scripts" time=$(date -d "today" +"%Y%m%d%H%M%S") cd $net_path for w in $wk;do         info ...

添加用户

#!/bin/sh echo "输入用户名(可以是多个用户,中间用空格隔开):" read NAME for u in $NAME;do echo "=================   $u用户邮箱添加开始   ===================" useradd $u echo "创建用$u完成" passwd $u cd /home/$u mkdir Maildir echo "添加$u邮箱目录完成" chown $u.nobody /home/$u chown $u.nobod ...
第一步: #hostname test 第二步: 修改/etc/sysconfig/network中的hostname 第三步: 修改/etc/hosts文件

KVM基本应用

1. 检查CPU是否支持虚拟化,Intel vmx 或 AMD svm egrep '^flags.*(vmx|svm)' /proc/cpuinfo   2. 安装KVM yum -y install kvm python-virtinst libvirt  bridge-utils virt-manager qemu-kvm-tools  virt-viewer  virt-v2v   3. 去掉SELINUX,重启 yum remove selinux* reboot   4. 启动libvirt /etc/init.d/libvirtd restart   ...

dhcpd.conf

    ddns-update-style interim; default-lease-time 21600; max-lease-time     43200; option domain-name-servers 219.141.140.10,219.141.136.10,202.106.46.151; #option domain-name-servers 202.106.46.151,202.106.0.20; #option domain-name-servers 8.8.8.8,8.8.4.4; subnet 172.16.1.0 netmask 255.255. ...
#!/bin/sh    # tomcat: Start/Stop/Restart tomcat    #    # chkconfig: 2345 85 15   # description: Apache tomcat6       # Small shell script to show how to start/stop Tomcat using jsvc       JAVA_HOME=/usr/java/jdk1.6.0    CATALINA_HOME=/usr/local/tomcat DAEMON_HOME=$CATALINA_HOME/bin    ...
#!/bin/sh ############################################################################## # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements.  See the NOTICE file distributed with # this work for additional information regarding copyright owne ...
yum 卸载selinux   yum remove selinux* -y   所涉及到软件版本 mysql-5.1.40.tar.gz   将上述软件包都放到/software/mysql下 ---------------------------------------------------------------- 一 解压、安装mysql tar zxvf mysql-5.1.40.tar.gz cd mysql-5.1.40 ./configure --prefix=/usr/local/mysql --with-extra-charsets=all  --w ...

nginx统计1

#!/bin/bash logs_path="/usr/local/nginx/logs/" #echo $logs_path #echo $(date -d "yesterday" +"%Y") #echo $(date -d "yesterday" +"%m") #echo $(date -d "yesterday" +"%d") mkdir -p ${logs_path}$(date -d "yesterday" +& ...

nginx统计

#!/bin/bash logs_path="/usr/local/nginx/logs/"   mkdir -p ${logs_path}$(date -d "yesterday" +"%Y")/$(date -d "yesterday" +"%m")/ mv ${logs_path}access.videos.cfdow.com.log ${logs_path}$(date -d "yesterday" +"%Y")/$(d ate -d & ...
rootfiles-8-1 termcap-5.4-3 audit-libs-1.0.15-3.EL4 e2fsprogs-1.35-12.11.el4 gdbm-1.8.0-24 libacl-2.2.23-5.3.el4 libsepol-1.1.1-2 libtermcap-2.0.8-39 audit-1.0.15-3.EL4 ncurses-5.4-15.el4 perl-5.8.5-36.el4_5.2 setserial-2.17-17 vim-minimal-6.3.046-0.40E.7 cpio-2.5-13.RHEL4 gawk-3.1.3-1 ...

3560 sh run

Building configuration...   Current configuration : 16334 bytes ! version 12.2 no service pad service timestamps debug datetime msec service timestamps log datetime msec service password-encryption ! hostname hexin-3560x ! boot-start-marker boot-end-marker ! enable secret level 14 5 $ ...

postfix

alias_database = hash:/etc/postfix/aliases alias_maps = hash:/etc/postfix/aliases command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix debug_peer_level = 2 html_directory = /usr/share/doc/postfix-2.3.6-documentation/html mail_owner = postfix mailq_path ...
nginx shtml 配置文件

自动转码脚本

@echo off for /R D:\video\src %%i in (*.mov *.avi *.mpg *.mpeg *.mpe *.3gp *.rm *.rmvb *.wmv *.asf *.asx) do call :convert %%~i %%~ni goto :end :convert @rem echo %1 @rem echo %2 @rem pause echo =========================================================== echo =========  开始视频转码  ====================== ...
Global site tag (gtag.js) - Google Analytics