1. 添加nginx yum repository 先参考: nginx官方安装说明 从nginx官方可以知道, nginx官方为linux各发行版提供了便捷的方法安装.下面简单说下centos下安装nginx的方法. stable version and mainline version 由上面可知, nginx官方提供了两种nginx.repo的配...
[root@it.net.cn yum.repos.d]# yum install nginx Loaded plugins: fastestmirror, priorities, refresh-packagekit, security Loading mirror speeds from cached hostfile 163 packages excluded due to repository priority protections Setting up Insta...
4月份,LXC发布了LXC 2.0 包含很多新特性,5月16日,LXC 2.0.1发布,修补了一些bug。 LXC 2.0.0 新特性如下: 重要更新: All main LXC commands have now been rewritten in C lxc-ls lxc-device lxc-copy New lxc-copy command taking over the role of lx...
对于需要从公网访问内网的情况, 需要做如下配置 从公网到内网 除了设置net.ipv4.ip_forward = 1 以外, 还需要设置iptables, 增加两行forward # Generated by iptables-save v1. 4.7 on Wed Jan 13 01 : 56 : 27 2015 * filter:INPUT ACCEPT [ 0 : 0 ]:FORWAR...
生成keystore /usr/java/default/bin/keytool -genkey -alias tomcat -keyalg RSA -keystore ~/tomcat.keystore -validity 36500 编辑 tomcat/conf/server.xml 启用ssl Connector protocol =org.apache.coyote.http11.Http11Protocol port =9443 enableLooku...
1. 优化tomcat参数 一个典型的server.xml配置 Connector executor =tomcatThreadPool port =8080 protocol =org.apache.coyote.http11.Http11AprProtocol connectionTimeout =20000 acceptCount =1000 redirectPort =443 compression =on compressionMinSize...
APR(Apache Portable Runtime)是一个高可移植库,它是Apache HTTP Server 2.x的核心。 APR有很多用途,包括访问高级IO功能(例如sendfile,epoll和OpenSSL),OS级别功能(随机数生成,系统状态等等),本地进程管理(共享内存,NT管道和UNIX sockets)。这些功能可...
单机单用户基础上, 如何运行多个tomcat实例. 首先是tomcat的目录结构 bin 包含所有运行tomcat的二进制和脚本文件 lib 包含tomcat使用的所有共享库 conf 包含配置信息, 如tomcat绑定的端口等 logs 包含所有的日志文件 temp 此目录是tomcat存放的临时文件 weba...
刚开始用IDEA, 在跑dubbo开发时, 发现一个很奇怪的问题, 远程调用服务端的方法时, 传入的中文参数会变成GBK编码. 经过好长时间的跟踪终于把问题定位到了IDEA里配置的Tomcat. 凡是在tomcat里启动的java应用, 不管源码是什么编码, 运行后都是GBK. 解决方法: Run...
iptables的配置文件保存在/etc/sysconfig/iptables-config下, 书写了iptables规则以后如果需要保存规则,则可以使用命令:iptables-save,使用此命令保存的规则位置可以是任意的,此时保存的规则 在重启机器后无法自动生效,需要使用命令iptables-restore恢...