Linux
ZhongWeicheng
这个作者很懒,什么都没留下…
展开
-
Oracle Linux 6 Installation
选择Install or upgrade an existing system Skip Basic Storage Devices RHEL6 / CentOS6 / Oracle Linux 6 的网卡默认onboot=no,要勾上Connect automatically原创 2012-12-28 10:16:56 · 2305 阅读 · 0 评论 -
Installation Oracle11gR2 RAC on SuSE Linux Enterprise Server 11
SLES11安装参考博文 Installation SUSE Linux Enterprise Server 11 vzwc1:~ # cat /etc/issue Welcome to SUSE Linux Enterprise Server 11 SP3 (x86_64) - Kernel \r (\l). vzwc1:~ # 配置/etc/hosts文件 192.1原创 2013-12-30 18:09:48 · 6741 阅读 · 1 评论 -
SUSE Linux 使用UDEV配置ASMdisk
vzwc1:~ # uname -a Linux vzwc1 3.0.76-0.11-default #1 SMP Fri Jun 14 08:21:43 UTC 2013 (ccab990) x86_64 x86_64 x86_64 GNU/Linux vzwc1:~ # cat /etc/issue Welcome to SUSE Linux Enterprise Server 11 SP3原创 2013-12-30 13:59:41 · 6354 阅读 · 1 评论 -
Installation SUSE Linux Enterprise Server 11
原创 2013-12-29 23:27:54 · 1679 阅读 · 2 评论 -
Installation Redis on RHEL6
yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurse原创 2013-11-12 21:45:33 · 2122 阅读 · 0 评论 -
Python connect MySQL
yum -y install rpm-build gcc-c++ mysql mysql-devel readline-devel openssl-devel gmp-devel ncurses-devel gdbm-devel expat-devel libGL-devel libX11-devel tcl-devel tk-devel tix-devel sqlite-devel db4-de原创 2013-11-19 14:10:45 · 2116 阅读 · 0 评论 -
Check Linux System indicators Shell
#!/bin/sh MON_HOME=/root get_current_datetime() { echo $(date +"%F %T") } chk_ipaddress() { echo "192.168.0.51" } chk_hostname() { echo $(hostname) } chk_version() { echo $(head -n 1 /etc/issue) }原创 2013-11-05 22:31:22 · 1039 阅读 · 0 评论 -
Python connection Oracle
[root@ggos ~]# rpm -ivh cx_Oracle-5.1.2-11g-py24-1.x86_64.rpm Preparing... ########################################### [100%] 1:cx_Oracle ##############################原创 2013-11-18 21:40:43 · 1430 阅读 · 0 评论 -
Installation MEMCACHE_ENGINE for MySQL5.1
installation memcache [root@test software]# tar -zxvf libevent-1.2.tar.gz [root@test software]# cd libevent-1.2 [root@test libevent-1.2]# ./configure --prefix=/service/libevent [root@test libevent-1原创 2013-11-17 01:02:02 · 1133 阅读 · 0 评论 -
find_large shell
#!/bin/ksh function usage { echo "\n***************************************" echo "\n\nUSAGE: findlarge.ksh [Number_Of_Meg_Bytes]" echo "\nEXAMPLE: filelarge.ksh 5" echo "\n\nWill Find Files La原创 2013-10-17 23:24:27 · 813 阅读 · 0 评论 -
Oracle Linux 5.9 released and download
Oracle Linux 5.9 Release Notes We're happy to announce the availability of Oracle Linux 5.9, the ninth update release for Oracle Linux 5. ISO images will soon be available from the Oracle Software De原创 2013-01-29 10:29:52 · 2412 阅读 · 0 评论 -
使用dd添加swap大小
当前swap是5951M,创建一个512M的空文件 [root@zwc ~]# free -m total used free shared buffers cached Mem: 3947 793 3154 0 15 367 -/+原创 2013-01-24 14:45:37 · 2659 阅读 · 0 评论 -
Linux下find命令常用命令
找出所有size大于100M的文件 -bash-3.2$ find . -size +200000 -exec ls -lh {} \; -rw-r----- 1 oracle oinstall 690M Dec 31 14:38 ./system01.dbf -rw-r----- 1 oracle oinstall 550M Dec 31 14:40 ./sysa原创 2012-12-18 09:11:25 · 668 阅读 · 0 评论 -
Linux下搭建Samba服务器
Samba是Unix/Linux下与Windows通信的一个开源软件,在RHEL5下是默认安装好其客户端的,我当前系统是CentOS5.6 x86-64 [root@tongji_bak ~]# cat /etc/issue CentOS release 5.6 (Final) Kernel \r on an \m [root@tongji_bak ~]# rpm -qa|grep samba原创 2012-12-17 16:53:15 · 854 阅读 · 0 评论 -
shell监控Linux服务器登录
监控外网58.215.50.37内网10.176.164.112这台服务器,如果不是221.226.93.118这个ip登录,就记录登陆日期和用户 #/bin/sh log="/job/jk/log.txt" host=MySQLMaster-o-58.215.50.37-i-10.176.164.112 a=0 while :; do usessh=$(/usr/bin/who|grep原创 2012-12-17 15:49:37 · 909 阅读 · 0 评论 -
Linux内核参数配置详解
vm.swappiness = 10 net.ipv4.tcp_syncookies = 1 net.ipv4.tcp_tw_reuse = 1 net.ipv4.tcp_tw_recycle = 1 net.ipv4.tcp_fin_timeout = 30 net.ipv4.tcp_keepalive_time = 1200 net.ipv4.ip_local_port_range转载 2012-12-17 16:39:39 · 1737 阅读 · 0 评论 -
shell监控Linux服务进程
监控所需要的服务进程,如果不存在就记录日志或者报警。 #!/bin/sh IP=`ifconfig eth0 | grep "inet addr" | cut -f 2 -d ":" | cut -f 1 -d " "` JAVA_DIR=/usr/java/default/bin/java MYSQL_DIR=/service/mysql/bin/mysqld_safe SSH_DI原创 2012-12-17 15:53:34 · 991 阅读 · 1 评论 -
Configuration PHP5.4 oci8 MySQL5.5 on CentOS6 x86_64
Software Package apr-1.4.6.tar.gz apr-util-1.5.1.tar.gz httpd-2.4.6.tar.gz libiconv-1.13.1.tar.gz libmcrypt-2.5.8.tar.gz mcrypt-2.6.8.tar.gz mhash-0.9.9.9.tar.gz mysql-5.5.25.tar.gz oracle-原创 2013-11-13 21:25:19 · 3052 阅读 · 0 评论