原创 mysql主從

主mysql:更改主mysql配置文件:vim /etc/my.cnf[mysqld]datadir=/var/lib/mysqlsocket=/var/lib/mysql/mysql.sockuser=mysqllog_bin=dbsvr

原创 我的友情鏈接

51CTO博客開發linux進階屋

原创 弱密碼檢查

一、wget http://www.libssh.org/files/0.4/libssh-0.4.8.tar.gz wget http://www.thc.org/releases/hydra-7.4.2.tar.gz --no-chec

原创 mysql主從

主mysql:更改主mysql配置文件:vim /etc/my.cnf[mysqld]datadir=/var/lib/mysqlsocket=/var/lib/mysql/mysql.sockuser=mysqllog_bin=dbsvr

原创 思科rip、dhcp、vlan

三層交換機設置:Switch#Switch#configure terminal Switch(config)#ip routing Switch(config)#vlan 10Switch(config-vlan)#vlan 20Swit

原创 lvs與nginx與haproxy

LVS特點: 1.抗負載能力強,使用IP負載均衡技術,只做分發,所以LVS本身並沒有多少流量產生; 2.穩定性、可靠性好,自身有完美的熱備方案;(如:LVS+Keepalived) 3.應用範圍比較廣,可以對所有應用做負載均衡; 4.不

原创 yum-lnmp

安裝wget http://www.atomicorp.com/installers/atomicsh ./atomic yum check-updateyum repolistyum -y install nginxservice ngi

原创 ftp,http YUM庫

配置ftp YUM庫。服務器端配置ip地址:[root@localhost ~]# vim /etc/sysconfig/network-scripts/ifcfg-eth0DEVICE=eth0BOOTPROTO=noneONBOOT=y

原创 單臂路由下vlan互聯

單臂路由器下實現多vlan之間的互相通信,2臺電腦ip地址爲192.168.10.1,192.168.20.1分別爲vlan10、vlan20。Switch>enaSwitch#configure tSwitch(config)#vlan

原创 思科路由交換

Switch1設置:Switch(config)#vlan 2          //建立3個vlanSwitch(config-vlan)#vlan 3Switch(config-vlan)#vlan 4Switch(config-vla

原创 我的友情鏈接

51CTO博客開發linux進階屋

原创 memcached+session

客戶端:192.168.1.2nginx:192.168.1.1、192.168.2.1tomcat1:192.168.2.10(運行memcached主+session)tomcat2:192.168.2.20(運行memcached備+

原创 源碼lnmp

1、準備工作:配置yum源安裝開發工具、編譯工具gcc gcc-c++ make配置固定ip地址 關閉iptables selinuxnetstat -anpult | grep :3306netstat -anpult | grep :8

原创 思科路由器遠程管理

本試驗爲局域網內配置路由器和交換機的遠程管理,路由器爲思科2621XM,交換機爲思科2960交換機配置:Switch>enaSwitch#confSwitch#configure tSwitch(config)#interface vlan

原创 centos7.3 dsnmasq的pxe+kickstart

centos7.3 本機網卡地址192.168.10.1# yum -y install vsftpd syslinux tftp-server dnsmasq# cp -r /usr/share/syslinux/* /var/lib/t