- 博客(3)
- 收藏
- 关注
原创 WEB 生产环境的 Linux iptables 设置脚本
用于生产环境的 iptables rule,期间在内网测试把自己挡住在外面一次,接显示器键盘才搞定,谨慎使用,下面脚本经过无数次测试了,稳定无错: 开启了常用的端口 22 80 25 110 8080 3306 等,如果 sshd 端口不是 22,需要自行修改脚本。 如何查看自己的 ssh 端口:netstat -anpt|grep sshd #!/bin/bash iptable
2015-01-07 13:37:24
1224
原创 CentOS 6.x 系统优化脚本
每次都优化很麻烦,整理了一个脚本: #!/bin/bash SERVICES="abrt-ccpp abrt-oops abrtd acpid atd auditd avahi-daemon autofs avahi-daemon bluetooth certmonger cups cpuspeed dnsmasq firstboot hidd ip6tables kudzu kdump lvm
2015-01-07 10:51:36
437
原创 win7 64 位 vs2010 编译:LINK : fatal error LNK1123: 转换到 COFF 期间失败: 文件无效或损坏
我摸索的解决方案: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\bin\cvtres.exe 这个文件版本有问题,直接执行会报错。 用 C:\Windows\Microsoft.NET\Framework\v4.0.30319\cvtres.exe 覆盖下就好了。
2015-01-07 09:40:31
520
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人