- 浏览: 353656 次
- 性别:
- 来自: 上海
文章分类
最新评论
-
希恩杰:
采样器的目的是啥?使数据均匀分布到所有分区?使key的数量均匀 ...
Hadoop深入学习:Hadoop全排序中的Sampler采样器 -
lawlietwf:
三篇文章中有两篇链接地址一样,po主看下
Hadoop中的快速排序算法 -
坏小四:
...
《Hbase权威指南》深入学习hbase:表,列族,列标识,版本和cell -
fbwfbi:
发现使用pika-0.9.13的版本依然出错:Tracebac ...
RabbitMQ:使用python发布/订阅消息 -
hehu158:
centos6.5 chmod +x qq2012.tra.g ...
CentOS 6.4安装qq2012
在本章中,我们将来学习如何在linux下安装并配置Maven私人仓库Nexus。
第一步,下载并解压tar文件:
# wget http://download.sonatype.com/nexus/oss/nexus-2.5.1-01-bundle.tar.gz
# chmod +x nexus-2.5.1-01-bundle.tar.gz
# cp -rf nexus-2.5.1-01 /opt
# mv nexus-2.5.1-01 nexus
第二步,配置:
# cd /etc/init.d
# cp /opt/nexus/bin/jsw/linux-x86-64/nexus nexus
# vi /etc/init.d/nexus
//编辑/etc/init.d/nexus文件,添加以下变量定义
NEXUS_HOME=/opt/nexus
PLATFORM=linux-x86-64
PLATFORM_DIR="${NEXUS_HOME}/bin/jsw/${PLATFORM}"
//修改以下变量
WRAPPER_CMD="${PLATFORM_DIR}/wrapper"
WRAPPER_CONF="${PLATFORM_DIR}/../conf/wrapper.conf"
PIDDIR="${NEXUS_HOME}"
RUN_AS_USER=root //以root身份启动
配置如下:
第三步,将nexus配置为启动服务并启动:
# chkconfig --add nexus
# chkconfig --add nexus
# service nexus start
OK,到这里nexus就配置成功了,以admin/admin123账户登录,页面显示如下:
下面贴一个完整的内核优化设置:
下面是一个简单的nginx 配置文件:
第一步,下载并解压tar文件:
引用
# wget http://download.sonatype.com/nexus/oss/nexus-2.5.1-01-bundle.tar.gz
# chmod +x nexus-2.5.1-01-bundle.tar.gz
# cp -rf nexus-2.5.1-01 /opt
# mv nexus-2.5.1-01 nexus
第二步,配置:
引用
# cd /etc/init.d
# cp /opt/nexus/bin/jsw/linux-x86-64/nexus nexus
# vi /etc/init.d/nexus
//编辑/etc/init.d/nexus文件,添加以下变量定义
NEXUS_HOME=/opt/nexus
PLATFORM=linux-x86-64
PLATFORM_DIR="${NEXUS_HOME}/bin/jsw/${PLATFORM}"
//修改以下变量
WRAPPER_CMD="${PLATFORM_DIR}/wrapper"
WRAPPER_CONF="${PLATFORM_DIR}/../conf/wrapper.conf"
PIDDIR="${NEXUS_HOME}"
RUN_AS_USER=root //以root身份启动
配置如下:
第三步,将nexus配置为启动服务并启动:
引用
# chkconfig --add nexus
# chkconfig --add nexus
# service nexus start
OK,到这里nexus就配置成功了,以admin/admin123账户登录,页面显示如下:
下面贴一个完整的内核优化设置:
引用
vi /etc/sysctl.conf
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
net.ipv4.tcp_max_tw_buckets = 6000
net.ipv4.tcp_sack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_rmem = 4096 87380 4194304
net.ipv4.tcp_wmem = 4096 16384 4194304
net.core.wmem_default = 8388608
net.core.rmem_default = 8388608
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.core.netdev_max_backlog = 262144
net.core.somaxconn = 262144
net.ipv4.tcp_max_orphans = 3276800
net.ipv4.tcp_max_syn_backlog = 262144
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_synack_retries = 1
net.ipv4.tcp_syn_retries = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_mem = 94500000 915000000 927000000
net.ipv4.tcp_fin_timeout = 1
net.ipv4.tcp_keepalive_time = 30
net.ipv4.ip_local_port_range = 1024 65000
使配置立即生效可使用如下命令:
/sbin/sysctl -p
系统连接数的优化,有如下三种修改方式:
1. 在/etc/rc.local 中增加一行 ulimit -SHn 65535
2. 在/etc/profile 中增加一行 ulimit -SHn 65535
3. 在/etc/security/limits.conf 最后增加:
* soft nofile 65535
* hard nofile 65535
* soft nproc 65535
* hard nproc 65535
net.ipv4.ip_forward = 0
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.default.accept_source_route = 0
kernel.sysrq = 0
kernel.core_uses_pid = 1
net.ipv4.tcp_syncookies = 1
kernel.msgmnb = 65536
kernel.msgmax = 65536
kernel.shmmax = 68719476736
kernel.shmall = 4294967296
net.ipv4.tcp_max_tw_buckets = 6000
net.ipv4.tcp_sack = 1
net.ipv4.tcp_window_scaling = 1
net.ipv4.tcp_rmem = 4096 87380 4194304
net.ipv4.tcp_wmem = 4096 16384 4194304
net.core.wmem_default = 8388608
net.core.rmem_default = 8388608
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
net.core.netdev_max_backlog = 262144
net.core.somaxconn = 262144
net.ipv4.tcp_max_orphans = 3276800
net.ipv4.tcp_max_syn_backlog = 262144
net.ipv4.tcp_timestamps = 0
net.ipv4.tcp_synack_retries = 1
net.ipv4.tcp_syn_retries = 1
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_tw_reuse = 1
net.ipv4.tcp_mem = 94500000 915000000 927000000
net.ipv4.tcp_fin_timeout = 1
net.ipv4.tcp_keepalive_time = 30
net.ipv4.ip_local_port_range = 1024 65000
使配置立即生效可使用如下命令:
/sbin/sysctl -p
系统连接数的优化,有如下三种修改方式:
1. 在/etc/rc.local 中增加一行 ulimit -SHn 65535
2. 在/etc/profile 中增加一行 ulimit -SHn 65535
3. 在/etc/security/limits.conf 最后增加:
* soft nofile 65535
* hard nofile 65535
* soft nproc 65535
* hard nproc 65535
下面是一个简单的nginx 配置文件:
引用
user www www;
worker_processes 8;
worker_cpu_affinity 00000001 00000010 00000100 00001000 00010000 00100000
01000000;
error_log /www/log/nginx_error.log crit;
pid /usr/local/nginx/nginx.pid;
worker_rlimit_nofile 204800;
events
{
use epoll;
worker_connections 204800;
}
http
{
include mime.types;
default_type application/octet-stream;
charset utf-8;
server_names_hash_bucket_size 128;
client_header_buffer_size 2k;
large_client_header_buffers 4 4k;
client_max_body_size 8m;
sendfile on;
tcp_nopush on;
keepalive_timeout 60;
fastcgi_cache_path /usr/local/nginx/fastcgi_cache levels=1:2
keys_zone=TEST:10m
inactive=5m;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
fastcgi_buffer_size 4k;
fastcgi_buffers 8 4k;
fastcgi_busy_buffers_size 8k;
fastcgi_temp_file_write_size 8k;
fastcgi_cache TEST;
fastcgi_cache_valid 200 302 1h;
fastcgi_cache_valid 301 1d;
fastcgi_cache_valid any 1m;
fastcgi_cache_min_uses 1;
fastcgi_cache_use_stale error timeout invalid_header http_500;
open_file_cache max=204800 inactive=20s;
open_file_cache_min_uses 1;
open_file_cache_valid 30s;
tcp_nodelay on;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.0;
gzip_comp_level 2;
gzip_types text/plain application/x-javascript text/css application/xml;
gzip_vary on;
server
{
listen 8080;
server_name backup.aiju.com;
index index.php index.htm;
root /www/html/;
location /status
{
stub_status on;
}
location ~ .*\.(php|php5)?$
{
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|js|css)$
{
expires 30d;
}
log_format access '$remote_addr -- $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for';
access_log /www/log/access.log access;
}
}
worker_processes 8;
worker_cpu_affinity 00000001 00000010 00000100 00001000 00010000 00100000
01000000;
error_log /www/log/nginx_error.log crit;
pid /usr/local/nginx/nginx.pid;
worker_rlimit_nofile 204800;
events
{
use epoll;
worker_connections 204800;
}
http
{
include mime.types;
default_type application/octet-stream;
charset utf-8;
server_names_hash_bucket_size 128;
client_header_buffer_size 2k;
large_client_header_buffers 4 4k;
client_max_body_size 8m;
sendfile on;
tcp_nopush on;
keepalive_timeout 60;
fastcgi_cache_path /usr/local/nginx/fastcgi_cache levels=1:2
keys_zone=TEST:10m
inactive=5m;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
fastcgi_buffer_size 4k;
fastcgi_buffers 8 4k;
fastcgi_busy_buffers_size 8k;
fastcgi_temp_file_write_size 8k;
fastcgi_cache TEST;
fastcgi_cache_valid 200 302 1h;
fastcgi_cache_valid 301 1d;
fastcgi_cache_valid any 1m;
fastcgi_cache_min_uses 1;
fastcgi_cache_use_stale error timeout invalid_header http_500;
open_file_cache max=204800 inactive=20s;
open_file_cache_min_uses 1;
open_file_cache_valid 30s;
tcp_nodelay on;
gzip on;
gzip_min_length 1k;
gzip_buffers 4 16k;
gzip_http_version 1.0;
gzip_comp_level 2;
gzip_types text/plain application/x-javascript text/css application/xml;
gzip_vary on;
server
{
listen 8080;
server_name backup.aiju.com;
index index.php index.htm;
root /www/html/;
location /status
{
stub_status on;
}
location ~ .*\.(php|php5)?$
{
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fcgi.conf;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|js|css)$
{
expires 30d;
}
log_format access '$remote_addr -- $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for';
access_log /www/log/access.log access;
}
}
发表评论
-
RabblitMQ Cluster + HAProxy(负载均衡)
2013-07-24 16:24 6101在本节中,我们主要来学习软件负载均衡器HAPr ... -
RabbitMQ集群类型一:在单节点上构建built-in内置集群
2013-07-23 10:28 3470在本章中我们来学习配置rabbitmq集群类型 ... -
CentOS 6.4 安装redis-2.6
2013-07-15 16:24 2300引用 # wget http:// ... -
CentOS 6.4 安装Sonar
2013-07-14 23:43 3229在本章中,我们来学习一下如何在Linux下配置 ... -
CentOS 6.4 优化编译安装Nginx
2013-07-13 22:13 2418在本章中,我们来学习一下如何在Linux下编译 ... -
CentOS 6.4 hadoop集成 Hbase Hive
2013-07-10 00:05 2288在之前的CentOS 5.4 hadoop集 ... -
CentOS 6.4 hadoop集成 Hbase Zookeeper
2013-07-09 22:41 2471再上一章中我们已经学习了Hadoop-1.0. ... -
CentOS 6.4 hadoop集成Hive
2013-07-09 01:58 2366在本节中,我们来学习如何安装Hive。在之前我 ... -
CentOS 6.4 优化编译安装MySQL-5.6
2013-07-09 00:25 4020在本章中,我们来学习一下怎么在CentOS 6 ... -
CentOS 6.4 安装伪分布式Hadoop 1.0.3
2013-07-02 00:52 2326在本章中学习如何在CentOS 6.4上安装配 ... -
Centos 6 上安装Apache Subversion(SVN)
2013-06-30 22:25 5244本章中我们来 ... -
Centos 6 上安装Git
2013-06-30 21:28 7056本章中我们来学习如何在CentOS 6.4上安装 ... -
Centos 6 上安装easy_install
2013-06-30 16:51 10001之前已经介绍过怎么安装python-pip了,本 ... -
Centos 6 上安装python-pip
2013-06-30 16:41 21127在使用Python时,需要导入一些第三方工具包,一 ... -
CentOS 6.4上安装VLC视频播放器
2013-06-16 01:33 3805由于安装了双系统,先看一些Windows上的视频 ... -
CentOS 6.4安装qq2012
2013-06-16 00:52 4911在CentOS 6.4安装qq2012,需要经过 ... -
CentOS查看Windows的NTFS分区
2013-06-15 20:48 1445本人的台式机上安装了双系统Windows + C ... -
CentOS 6.4 修改时区
2013-06-12 16:35 1702本人在安装CentO ... -
在CentOS 6.4上配置中文输入法
2013-06-12 13:39 2909在CentOS 6.4上配置中文输入法,只需要在 ... -
在 CentOS 6.4上安装Erlang
2013-06-12 13:29 4398在本节中,我们将来学习如何在CentOS 6.4上 ...
相关推荐
nexus 搭建 maven仓库nexus 搭建 maven仓库nexus 搭建 maven仓库nexus 搭建 maven仓库nexus 搭建 maven仓库
maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装maven安装...
maven3.8.3+nexus3.34.zip
建立Maven私服 – Nexus下载、安装、配置、使用 建立Maven私服 – Nexus下载、安装、配置、使用
Windows 下Nexus搭建Maven私服 Windows 下Nexus搭建Maven私服
Maven Nexus 私服搭建 从零开始,资源下载、安装指导、开发配置说明
maven 私服 nexus2 nexus3 安装与说明,只有简单的安装,没有详细的配置使用说明
配置Nexus代理中央仓库,其它任何公开的Maven仓库,将你组织内部的Maven配置指向Nexus,这样所有构件都将从Nexus下载,如果Nexus没有你要的构件,它会自动先去外部仓库下载到本地,仅一次。 本地宿主仓库。Nexus可以...
java maven仓库 搭建Nexus
如何进行Linux安装配置maven以及搭建nexus服务器.docx
开发人员的福音,MAVEN私服,nexus截止到目前最新版,提供共完善jar包依赖使用功能
linux-maven-maven私服nexus安装文档
go语言写的一个工具,用于批量上传本地仓库的jar到nexus私库。目前只有exe没有生成linux脚本。文件夹中有使用说明。 .\mvnDeployTool.exe -r C:\\Users\\yyc\\.m2\\repository\\org\\apache\\maven -s D:\devEnv\...
maven nexus 配置,简要介绍如何配置nexus。。。。。。
良心工具仅需5积分,2021年最新nexus,解压密码nexus-3x
maven仓库清理命令
文档图文并茂的详细描述了linux下Nexus 的部署,同时也提供...nexus支持搭建docker 仓库、maven仓库、yum仓库等 nexus主要类型仓库支持三种模式hosted、proxy、group每种模式有不同用法和功能,具体解释可参考官方说明
maven使用及Nexus搭建Maven私服
maven3+nexus2搭建本地和私有仓库详细步骤 ,有图有真相,希望对你有帮助