How To Get Started with CentOS Minimal

I wanted to share with everyone a little post about my exposure to CentOS 6.2 Minimal. If you are not aware with the latest release of CentOS 6.2 there is now a “Minimal” ISO option. Now let me tell you first off when they say minimal….it’s got next to nothing. Personally, I love that fact because there is zero bloat to it. If you are an admin or even a developer working on virtual appliances, this could be the solution for you. I decided to use it to build my own vCloud Catalog image on Virtacore so I could deploy it and use it for my Bitnami wordpress stack install. I have always been a fan of CentOS for my home lab and this release is no exception now that it is just so Read More

Step by Step install of CentOS 6.3 on Microsoft Hyper-V Server with Linux Integration Services Version 3.4

Create new VHD w/ Legacy Network Adapter for CentOS 6.3 Download CentOS 6.3-minimal.iso (insert disk & install) Download LinuxICv34.iso (insert disk) mkdir -p /mnt/cdrom mount /dev/cdrom /mnt/cdrom cp -rp /mnt/cdrom /opt/linux_ic umount /mnt/cdrom cd /opt/linux_ic/RHEL63 ./install.sh Once the install is down, shutdown the VPS, note the mac address and then remove the legacy adapter. Add a standard network adapter with static mac previously noted. apply and restart the VPS Update your network settings via vi vi /etc/sysconfig/network-scripts/ifcfg-eth0 use “i” to insert text, (esc) to exit and “:wq” to write your changes. IT should look something like Read More

什么是DDOS攻击及怎么抵抗DDOS攻击?

一、为何要DDOS? 随着Internet互联网络带宽的增加和多种DDOS黑客工具的不断发布,DDOS拒绝服务攻击的实施越来越容易,DDOS攻击事件正在成上升趋势。出于商业竞争、打击报复和网络敲诈等多种因素,导致很多IDC托管机房、商业站点、游戏服务器、聊天网络等网络服务商长期以来一直被DDOS攻击所困扰,随之而来的是客户投诉、同虚拟主机用户受牵连、法律纠纷、商业损失等一系列问题,因此,解决DDOS攻击问题成为网络服务商必须考虑的头等大事。 二、什么是DDOS? DDOS是英文Distributed Denial of Read More

对LINUX服务器网卡进行带宽限制的办法:

对LINUX服务器网卡进行带宽限制的办法: 1、安装iproute yum -y install iproute 2、限制eth0网卡的带宽为100kbit: /sbin/tc qdisc add dev eth0 root tbf rate 500kbit latency 50ms burst 15kb   3、解除eth0网卡的带宽限制: /sbin/tc qdisc del dev eth0 root tbf       4、列出已有的策略: tc -s qdisc ls dev eth0   5、启动时自动加载带宽限制策略: vim /etc/rc.local 加入: /sbin/tc qdisc add dev eth0 root tbf rate 500kbit latency 50ms burst 15kb  参考资料:http://www.cyberciti.biz/faq/linux-traffic-shaping-using-tc-to-control-http-traffic/ PS:转载请注明出处,谢谢! Read More

linux使用dd命令快速生成大文件

dd命令可以轻易实现创建指定大小的文件,如 dd if=/dev/zero of=test bs=1M count=1000 会生成一个1000M的test文件,文件内容为全0(因从/dev/zero中读取,/dev/zero为0源) 但是这样为实际写入硬盘,文件产生速度取决于硬盘读写速度,如果欲产生超大文件,速度很慢 在某种场景下,我们只想让文件系统认为存在一个超大文件在此,但是并不实际写入硬盘 则可以 dd if=/dev/zero of=test bs=1M count=0 Read More

MYSQL导入与导出

1.导出整个数据库   mysqldump -u 用户名 -p 数据库名 > 导出的文件名   mysqldump -u wcnc -p smgp_apps_wcnc > wcnc.sql 2.导出一个表   mysqldump -u 用户名 -p 数据库名 表名> 导出的文件名   mysqldump -u wcnc -p smgp_apps_wcnc users> wcnc_users.sql 3.导出一个数据库结构   mysqldump -u wcnc -p -d –add-drop-table smgp_apps_wcnc >d:wcnc_db.sql   -d 没有数据 –add-drop-table 在每个create语句之前增加一个drop table 4.导入数据库   常用source 命令   进入mysql数据库控制台,   如mysql -u root -p   mysql>use Read More