Haproxy/Keepalived Server1: 192.168.20.12Haproxy/Keepalived Server2: 192.168.20.13Haproxy/Keepalived VIP: 192.168.20.10disable selinux and iptablesservice iptables stopchkconfig iptables off; chk
ensure to open 3306 port or disable iptablesmysql -uroot -pmysql> GRANT ALL PRIVILEGES ON *.* TO root@'%' IDENTIFIED BY 'your password';mysql> flush privileges;
lsmod | grep tcp_diagrpm -q iproute【场景一:查看当前服务器的网络连接统计】$ ss -s Total: 295 (kernel 312) TCP: 48 (estab 1, closed 31, orphaned 0,&
参考http://hj192837.blog.51cto.com/655995/1539329,升级kernel至3.10disable selinux and iptablesservice iptables stopchkconfig iptables off; chkconfig ip6tables offsetenforce 0vi /etc/selinux/configSELINUX=d
we will use ELRepo to install kernel (http://elrepo.org/tiki/tiki-index.php)1. rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org2. rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo
1. disable firewall:service iptables stopchkconfig iptables off; chkconfig ip6tables off2. disable selinuxsetenforce 0sed -i 's,SELINUX=enforcing,SELINUX=disabled,g' /etc/selinux/config3. enab
Based on CentOS 6.5 x86_641.vi /etc/yum.repos.d/epel.repo[epel]name=epelbaseurl=http://mirrors.aliyun.com/epel/6Server/x86_64enable=1gpgcheck=02.yum -y install cobbler cobbler-web dhcpservice cobblerd
Based on Ubuntu 14.04 ServerHere is sort of a picture of what names/passwords in which files/Resources must match up:Director/Console/Client:1. vi /etc/hostnamedirector.test.privi /etc/hosts#127.0.1.1
Based on Ubuntu 14.04 Server1. aptitude -y install snmpd cacti cacti-spinevi /etc/hostsvi /etc/apache2/apache2.conf ServerName xxxservice apache2 restartvi /etc/snmp/snmpd.conf# Listen for conne
Based on CentOS 6.5 x86_641. yum -y install mysql-server php-mysql net-snmp-utils rrdtool php php-snmp httpd2. cd /var/www/htmltar zxf cacti-0.8.8b.tar.gzln –s cacti-0.8.8b cacti3. service mysql
测试环境:CentOS 6.5 虚拟机1. mkdir /repo2. 挂载DVD 1到 /mediacp -av /media/* /repo3. 挂载DVD 2到 /mediacp -av /media/Packages/*.rpm /repo/Packages/4. 把DVD 2的TRANS.TBL追加到DVD1中TRANS.TBL后面, 并排序保存cat /media/Packages/T
(optional) Connect to the Linux virtual machine to be used as a template. Flag the system for reconfiguration by running the following command as root:# touch /.unconfiguredRemove ssh
export DISPLAY=:0.0logout and login with oracle account./runInstaller
for CentOS 6.5 VM runs in VMWare Workstation 10, we got below error messages in /var/log/messages1. kernel: ipmi_si: Interface detection failedresolution: put ipmi_si.trydefaults=0 in kernel option (/
Linux Platform: CentOS 6.5please refer http://hj192837.blog.51cto.com/655995/1352783 to send mail via outside ISP1. vi /tmp/ping.sh#!/bin/bashfor address in `cat /tmp/ip.txt`doping -c 3 $addressecho;e
我们可以使用外部邮箱(163,126,gmail,139等等)为我们发邮件for CentOS 6.5yum -y install mailxvi /etc/mail.rc在文件的末行添加以下5行set from=yuorname@139.comset smtp=smtp.139.comset smtp-auth-user=yournameset smtp-auth-password=yourpa
R1#tclshR1(tcl)#foreach address { ip_address1 ip_address2 ip-address3 } { ping $address re 5 si 1500 }R1(tcl)#tclquitFor login one router, then from there to ping other devices. We can view result fro
1. 如图2. File > properties3. now it's ok
1. 可选 for Redhat 5 and Centos 5vi /etc/modprobe.conf alias bond0 bonding #每个bonding interface一行for Redhat 6 and Centos 6vi/etc/modprobe.d/bonding.confalias bond0 bonding #每个bonding
如下看到的mail的日志:[root@aldap1 openldap]# mailx>U 1 user@localhost.sysu. Mon Jun 18 22:35 214/12718 "[abrt] full crash report"解决方法:I also had the problem with RHEL 6.2 running on a VM
Rancid currently supports Cisco routers, Juniper routers, Catalystswitches, Foundry switches, Redback NASs, ADC EZT3 muxes, MRTd (andthus likely IRRd), Alteon switches, and HP Procurve switches and ah
查看/usr/share/doc/initscripts-*/sysconfig.txt里面关于ifcfg的配置说明如果缺少man手册,请安装man-pages.noarch和man-pages-overrides.noarch
链接克隆的处理方法:1. #vi /etc/udev/rules.d/70-persistent-net.rules70-persistent-net.rules中仍然保留了老网卡的内容,新网卡则被识别为eth1。将表示老网卡的行注释,然后将表示新网卡的行中eth1改成eth0;或者直接把eth0/eth1的行删除2. #rm -rf /etc/sysconfig/network-scripts/
OpenSuse Linux的单用户模式进入有些特殊:1. 在启动菜单选项后加入init=/bin/sh或init=/bin/bash2. 输入passwd修改root密码其他Linux如RedHat, CentOS的单用户模式在启动菜单选项后加入1或single即可
This script is only suitable for CentOS 5.4You can run OpManager as a Unix Service.Follow the steps mentioned below to install OpManager as a service on a linux box. 1. Copy the content given in blue
This script is only suitable for CentOS 5.4Download the servicedesk.txt file from here. Copy the servicedesk.txt to /etc/init.d/ # cp servicedesk.txt /etc/init.d/servicedeskEdit the servicedesk file t
cat /proc/cpuinfo 可以看到详细的cpu信息真实的核数,应该是 cpu cores 这个参数值,物理cpu数量,可以数不重复的 physical id 有几个[user@localhost ~]# cat /proc/cpuinfo processor : 0vendor_id : GenuineIntelcpu family &
Overview:Spacewalk is an open source configuration management tool sponsoredby Red Hat. Spacewalk is alternate of Redhat network satellite server on Centos/ Fedora / Scientific Linux. Spacewalk is the
Step 1: wget http://nginx.org/packages/centos/6/i386/RPMS/nginx-1.2.8-1.el6.ngx.i386.rpm rpm -ivh nginx-1.2.8-1.el6.ngx.i386.rpm Step 2: How do I start / stop / restart nginx web-server? Type th
Copyright © 2005-2025 51CTO.COM 版权所有 京ICP证060544号