(一)网络相关1、 查看某一个端口: netstat -lnp|grep 802、查看占用端口: netstat -lnp 或者 netstat -tnlup(二)软件相关1、安装了多少个软件包: rpm-qa|wc-l yum list installed | wc -l2、安装了哪些: r...
分类:
其他好文 时间:
2014-07-16 23:19:40
阅读次数:
175
题目:Remove Duplicates from Sorted ListGiven a sorted linked list, delete all duplicates such that each element appear onlyonce.For example,Given1->1->2...
分类:
其他好文 时间:
2014-07-10 14:29:45
阅读次数:
259
DR模式中LVS主机与实际服务器都有一块网卡连在同一物理网段上。IP分配VIP:10.10.3.170RIP1:10.10.3.140RIP2:10.10.3.1411、安装所需的依赖包yum install -y wget make kernel-devel gcc gcc-c++ libnl* ...
分类:
其他好文 时间:
2014-07-10 13:35:54
阅读次数:
597
Reminder reminder = ScheduledActionService.Find("MY REMINDER") as Reminder;if ( reminder != null ) { ScheduledActionService.Remove("MY REMINDER");}...
分类:
其他好文 时间:
2014-07-10 10:37:36
阅读次数:
213
题目:Given a linked list, remove the nth node from the end of list and return its head.For example,Given linked list: 1->2->3->4->5, and n = 2.After rem...
分类:
其他好文 时间:
2014-07-07 19:01:42
阅读次数:
155
1、apache + mysql 直接利用 yum 安装yum -y install httpd httpd-devel mysql mysql-server httpd-manual mod_perl mod_auth_mysql mysql-connector-odbc mysql-devel ...
分类:
数据库 时间:
2014-07-07 18:28:32
阅读次数:
320
Linux下Nginx的安装 如果出现:error: 'ngx_http_file_cache_node_t' has no member named 'length'异常,可能是ngx_cache_purge-2.1.tar.gz版本太旧导致...
分类:
系统相关 时间:
2014-06-30 00:11:43
阅读次数:
401
#!/bin/bash
#
#
#thisisinstallkeepalived+lvs-DR
#
#
tar_dir=/usr/src
configure_yum()
{
echo"[rhel-local]">/etc/yum.repos.d/rhel-local.repo
echo"baseurl=file:///media/Server">>/etc/yum.repos.d/rhel-local.repo
echo"enabled=1">>/etc/yum.repos..
分类:
其他好文 时间:
2014-06-28 06:08:16
阅读次数:
373
安装KVM虚拟化条件:首先CPU要支持虚拟化(Intel是vmx,AMD是svm)[root@localhost~]#egrep‘(vmx|svm)‘--color/proc/cpuinfo确保BIOS里开启VTIntel(R)VirtualizationTech[Enabled]安装虚拟化套件[root@localhost~]#LANG=en_US-utf8[root@localhost~]#yum-ygroupinstall"Virtual..
分类:
其他好文 时间:
2014-06-28 00:30:19
阅读次数:
346
实验环境:-------RHEL5.10(vmnet1)----------REL5.10(vmnet1)(192.168.100.10主域)(192.168.100.20子域)【DNS子域授权配置】kvm_node2(子域)上面操作:[root@dns2~]#yum-yinstallbindbind-chrootcaching-nameserver[root@dns2~]#cd/var/named/chroot/etc/[root@dns2..
分类:
其他好文 时间:
2014-06-28 00:25:40
阅读次数:
450