ITeye博客

bobo1122的博客

bobo1122 · 共 8 篇文章

CentOS7安装iptables防火墙

CentOS7安装iptables防火墙 CentOS7默认的防火墙不是iptables,而是firewalle. 安装iptable iptable-service #先检查是否安装了iptables service iptables status #安装iptables yum install -y iptables #升级iptables yum update iptables #安装iptables-services yum install iptables-services 禁用/停止自带的firewalld服务 #停止firewalld服务 systemctl stop fire…

2015-08-19 17:30 · centos · 评论(0)

mysql 数据分离

网上看到一个读写分离的帖子,感觉不错!! 构建高性能web之路------mysql读写分离实战(转) 一个完整的mysql读写分离环境包括以下几个部分: 应用程序client database proxy database集群 在本次实战中,应用程序client基于c3p0连接后端的database proxy。database proxy负责管理client实际访问database的路由策略,采用开源框架amoeba。database集群采用mysql的master-slave的replication方案。整个环境的结构图如下所示: 实战步骤与详解 一.搭建mysql的master-sl…

2014-07-18 16:47 · 数据分离 mysql · 评论(0)

nginx安装

1.下载pcre #wget http://jaist.dl.sourceforge.net/project/pcre/pcre/7.9/pcre-7.9.tar.gz 2.安装pcre-7.9.tar.gz Java代码 #tar zxvf pcre-7.9.tar.gz #cd pcre-7.9/ #./configure #make && make install 3.下载nginx #wget http://sysoev.ru/nginx/nginx-0.7.61.tar.gz 4.解压 Java代码 #tar -zxvf nginx-0.7.61.tar.gz #cd nginx-…

2014-07-18 16:44 · nginx 安装 · 评论(0)

空间换时间

空间换时间: 当pc和服务器的配置越来越高,对程序员来说更多时候需要考虑空间换时间: 1、页面端缓存(nginx 配置cache等,客户端可以减少流量,etag等) 2、应用端缓存(图片等) 3、内存数据库 4、cache,buffer等的使用 cache现在拥有的redis基本能满足访问的需求,出现瓶颈不会是在redis读写上,而且io、网络等(推荐tedis)。 程序员写程序时候需要知道哪里使用buffer,小东西,但有时候会有大帮助。 待续。。。

2014-07-08 16:50 · 互联网 java 空间换时间 · 评论(0)

maven

mvn archetype:create -DgroupId=gopay.web -DartifactId=gopay-web -DpackageName=com.gopay -DarchetypeArtifactId=pom mvn archetype:create -DgroupId=gopay.web.dao -DartifactId=gopay-web-dao -DpackageName=com.gopay.web.dao mvn archetype:create -DgroupId=gopay.web.domain -DartifactId=gopay-web-domain -Dp…

2012-10-29 18:36 · 技术 · 评论(0)

java xtream bean xml

import java.util.Iterator; import java.util.Map; import com.thoughtworks.xstream.XStream; import com.thoughtworks.xstream.io.xml.DomDriver; import com.thoughtworks.xstream.io.xml.XmlFriendlyReplacer; import com.thoughtworks.xstream.io.xml.XppDriver; @SuppressWarnings("deprecation") public class XML…

2012-09-25 11:53 · 评论(0)

ant(MyEclipse中)

在eclipse3.3和MyEclipse6.0,在此过程装了axis2-eclipse-codegen-wizard和axis2-eclipse-service-archiver-wizard。此时如果你使用ant的则无法正常使用,控制台也无输出。 唉,我看了好半天才明天是因为ant的默认jar包换成了axis2-eclipse-codegen-wizard和axis2-eclipse-service-archiver-wizard的ant包,只要把ant的runtime的calsspath中的anthome换成原来eclipse中自带的jar包就可以了

2009-11-03 18:42 · 评论(0)

webservice

有位兄弟的,转载下,以后用方便查 axis WebServices 调用 本地使用代理上网,设置代理 System.getProperties().put("proxySet", "true"); System.getProperties().put("proxyHost", "192.168.0.26"); System.getProperties().put("proxyPort", "808"); System.getProperties().put("socksProxySet", "true"); System.getProperties().put("socksProxyHost…

2009-09-23 11:18 · 评论(0)