问题原因: nginx位于第三方的yum源里面,而不在centos官方yum源里面 解决方法: 安装epel(Extra Packages for Enterprise Linux) a、去epel网站 http://fedoraproject.org/wiki/EPEL下载 b、我的系统是centos5.7,cpu是x86_64,所以我下载的是wget http://dl...
当然,首先要求是可以联网的CentOS系统,因为yum安装需要互联网连接。 1.为了追加 nginx 的 yum 仓库,需要创建一个文件 /etc/yum.repos.d/nginx.repo,并将下面的内容复制进去: [nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/$release...
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...