系统环境: rhel6 x86_64 iptables and selinux disabled相关网址:http://zh.linuxvirtualserver.org/ yum仓库配置:[rhel-source] name=Red Hat Enterprise Linux $releaseve....
分类:
其他好文 时间:
2014-09-30 20:04:10
阅读次数:
298
直接上代码Filter.javapublic interface Filter { //过滤器 public void doFilter(Request request,Response response,FilterChain chain);}FilterChain.javapubli...
分类:
其他好文 时间:
2014-09-29 20:44:01
阅读次数:
163
使用linux系统(PC机)做路由转发关键字:linux,Fedora,route,iptables,ip_forward 最近做网络实验,在实验过程中需要用到linux的转发功能,但是遇到一些问题,在请教了linux网络技术的网友后终于把它解决了,解决了之后我开始总结之前失败的原因,并将历程写成....
分类:
系统相关 时间:
2014-09-29 19:13:42
阅读次数:
434
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3487YaoYao is fond of playing his chains. He has a chain containing n diamonds on it. Diamonds are numb...
分类:
其他好文 时间:
2014-09-28 23:22:16
阅读次数:
207
1.防火墙配置1.1.ZZSRV1首先,需要对ZZSRV1的角色进行分析。它是主DNS、网站、DHCP服务器、时钟服务器。我们决定不做出站限制,仅做入站限制,类似XP查看当前配置#iptables-LChainINPUT(policyACCEPT)targetprotoptsourcedestinationChainFORWARD(policyACCEPT)targetprotoptso..
分类:
其他好文 时间:
2014-09-28 19:59:17
阅读次数:
327
一、Samba安装步骤
1、安装有关Samba的RPM包(samba、samba-common、samba-client)
2、创建Samba用户
3、修改配置文件
4、重启samba服务
5、设置目录访问权限
6、测试
1、准备工作
我系统是Linux发行版Fedroa 19,内核版本是3.14.17-100.fc19.x86_64。
首先使用rmp -qa | gre...
分类:
其他好文 时间:
2014-09-27 15:29:30
阅读次数:
246
配置环境:1.selinux Enforcing vim /etc/sysconfig/selinux2.date 时间同步 ntpdate 3.iptables 关闭火墙 iptables -F4.NetwortManger 关闭 集群管理~~~~~~~~~~~~~~~~~~~~~~~~~~~~....
分类:
其他好文 时间:
2014-09-27 11:28:49
阅读次数:
399
在iptables中有几个不同的链。iptables -A INPUT -p tcp -s x.x.x.x/x --dport 22 -j ACCEPT // 允许源地址为x.x.x.x/x的主机通过22(ssh)端口.iptables -A INPUT -p tcp --dport 80 -j A...
分类:
其他好文 时间:
2014-09-27 02:10:59
阅读次数:
194
题目大意:
题目给出了定义的小于号,然后求出一个LIS。。。
思路分析:
这道题目的是一个严格递增的,和 Hdu 4742 类似。只不过Hdu的这道题是一个不递减的序列。
简单说一下Hdu 4742的做法。
首先我们可以想到的是一维的LIS,那么简单就是n。
然后二维的LIS,就是先排序一维,然后用求第二维的LIS。
现在问题扩展到三维。依然排序一维。
假设我们排序的是z。...
分类:
其他好文 时间:
2014-09-26 23:22:48
阅读次数:
258
CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 2、安装...
分类:
系统相关 时间:
2014-09-26 21:40:48
阅读次数:
232