ITeye博客

shihuan830619

shihuan830619 · 共 174 篇文章

RedHat6.5在线安装GitLab

https://gitlab.com/gitlab-org/gitlab-recipes/tree/master/install/centos --centos安装gitlab https://github.com/gitlabhq/gitlab-recipes/tree/master/install/centos --centos安装gitlab https://github.com/gitlabhq/gitlabhq/blob/master/doc/install/installation.md --ubuntu安装gitlab http://blog.csdn.net/w1377026…

2016-01-22 21:09 · OperationSystem · Linux · GitLab · 评论(0) · RedHat · Git · Linux

Linux安装Git服务

[root@testgit rpmlib]# pwd /opt/rpmlib [root@testgit rpmlib]# ls asciidoc-8.6.9-1.el6.rfx.noarch.rpm gettext-devel-0.17-16.el6.x86_64.rpm autoconf-2.63-5.1.el6.noarch.rpm libiconv-1.14.tar.gz curl-devel-7.13.1-3.x86_64.rpm openssl-devel-1.0.1e-42.el6.x86_64.rpm docbook2X-0.8.8-2.1.x86_64.rpm xmlto-…

2016-01-22 21:01 · OperationSystem · Linux · Git · 评论(0) · Git · CentOS · Linux

Linux安装ruby

https://rvm.io/ 官方网站 https://github.com/rvm/rvm 官方离线包 在线安装步骤: \curl -sSL https://get.rvm.io | bash -s stable curl: (6) Couldn't resolve host 'get.rvm.io' 在浏览器里访问https://get.rvm.io会跳转到下面的地址 https://raw.githubusercontent.com/wayneeseguin/rvm/master/binscripts/rvm-installer 修改安装命令: \curl -sSL https://…

2016-01-22 20:53 · OperationSystem · ruby · Linux · 评论(0) · Ruby · CentOS · Linux · rubygems

验证RedHat6是否能够联网

验证RedHat6是否能够联网: ping 8.8.8.8 ping 8.8.4.4 下载www.baidu.com首页并且显示下载信息: wget -d http://www.baidu.com 能成功下载百度首页index.html文件,但不一定能ping http://www.baidu.com ping 180.76.76.76 ping 23.5.5.5 ping http://www.baidu.com cat /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 NETMASK=255.255.255.0 IPADDR=19…

2016-01-22 20:46 · OperationSystem · Linux · 评论(0) · RedHat · OS · CentOS · Linux

Linux非联网状态安装gcc依赖包

cloog-ppl-0.15.7-1.2.el6.x86_64.rpm cpp-4.4.6-4.el6.x86_64.rpm gcc-4.4.7-16.el6.x86_64.rpm gcc-c++-4.4.7-16.el6.x86_64.rpm glibc-devel-2.12-1.166.el6.x86_64.rpm glibc-headers-2.12-1.80.el6.x86_64.rpm kernel-headers-2.6.32-279.el6.x86_64.rpm libstdc++-devel-4.4.6-4.el6.x86_64.rpm mpfr-2.4.1-6.el6.x8…

2016-01-22 20:43 · OperationSystem · Linux · gcc · 评论(0) · GCC · Linux

Netty中Protobuf编解码应用

工程结构图如下: [img]http://dl2.iteye.com/upload/attachment/0113/9709/d7655b47-a29e-3575-853b-6aa7e7590530.jpg[/img] SubscribeReqProto.java文件内容如下: [code="java"] package com.shihuan.netty.codec.protobuf; public final class SubscribeReqProto { private SubscribeReqProto() { } public static void registerAllEx…

2015-12-21 22:39 · Netty · Protobuf · 评论(0) · netty · protobuf

Netty中Marshalling编解码自定义栈应用

工程结构图如下: [img]http://dl2.iteye.com/upload/attachment/0113/9693/af21c27e-8e3f-3ef8-9114-84a9e4caf424.jpg[/img] NettyConstant.java文件内容如下: [code="java"] package com.shihuan.netty.protocol; public final class NettyConstant { public static final String REMOTEIP = "127.0.0.1"; public static final int POR…

2015-12-21 21:22 · Netty · Marshalling · 评论(0) · netty

Netty中Marshalling编解码应用

项目结构图: [img]http://dl2.iteye.com/upload/attachment/0113/7886/d1f4df53-893f-35c2-a64d-77faa07e89eb.jpg[/img] SubscribeReq.java文件内容如下: [code="java"] package com.shihuan.netty.codec.marshalling.pojo; import java.io.Serializable; public class SubscribeReq implements Serializable { private int subReqID;…

2015-12-15 22:16 · Netty · Marshalling · 评论(0) · netty

InletexEMC共享Windows屏幕的永久免费软件

官方网站: http://www.inletex.ca 永久免费: 它是完全免费的! 对企业免费!对个人免费! 绿色软件: 无需安装 ,不对系统产生垃圾。 点对点传输:它是点对点传输的,支持LAN/WAN,可以在 私人网络 、 局域网 、 互联网 中使用,支持多人同时共享同一电脑屏幕。 容易使用: 不管是主机还是客户机,都是同一个执行程序; 任何人都可以做主机,任何人也可以做客户机 ;界面操作简单,一看就懂。 安全可靠:加拉大荣誉出品,国际品质,老外精心打造!(AD) 体积小巧:仅有 1.18M,是的,不是118M,而是1.18M,国内最低网速下载也可秒下,一键OK,您还等什么,快来抢吧! …

2015-12-15 16:22 · InletexEMC · Windows · 评论(0) · Windows

Oracle修改内存使用情况

$ sqlplus / as sysdba SQL*Plus: Release 11.2.0.4.0 Production on Tue Dec 15 10:33:08 2015 Copyright (c) 1982, 2013, Oracle. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production With the Partitioning, OLAP, Data Mining and Real Application T…

2015-12-15 10:49 · 数据库 · oracle · 评论(0) · Oracle

Hadoop集群环境搭建

最近学习了下hadoop的安装。下面详细说明下步骤。 一、环境 我的是在Linux环境下进行安装的。 现在有三台服务器,分配如下: 192.168.3.100 NameNode --主机名testhadoop 192.168.3.201 DataNode1 --主机名hadoopsub1 192.168.3.202 DataNode2 --主机名hadoopsub2 NameNode(主服务器)可以看作是分布式文件系统中的管理者,主要负责管理文件系统的命名空间、集群配置信息和存储块的复制等。 DataNode(从服务器)是文件存储的基本单元,它将Block存储在本地文件系统中,保存了Bloc…

2015-12-11 17:09 · Linux · Hadoop · 评论(0) · Hadoop · Linux

Oracle12c的相关命令及操作

$ lsnrctl status $ lsnrctl start $ lsnrctl stop $ sqlplus /nolog SQL> conn /as sysdba SQL> startup --"启动数据库实例" SQL> shutdown immediate --"关闭数据库实例" 或者 $ sqlplus / as sysdba SQL> startup --"启动数据库实例" SQL> shutdown immediate --"关闭数据库实例" sqlplus username/password as sysdba select * from v$version; selec…

2015-12-10 09:27 · 数据库 · oracle · Oracle12c · 评论(0) · Oracle · 数据库

RedHat6.4安装Oracle12c 12.1.0.2.0

vi /etc/hosts 这里要把本机IP和主机名加入hosts文件中 VMWare设置CD/DVD处勾选已连接并指定RedHat6的ISO安装包 #mkdir /mnt/cdrom #mount -o loop /dev/cdrom /mnt/cdrom #yum list|grep vsftpd groupadd oinstall groupadd dba useradd -g oinstall -G dba oracle passwd oracle Changing password for user oracle. New password: BAD PASSWORD: it is…

2015-12-07 16:32 · 数据库 · oracle · 评论(0) · RedHat · Oracle · Linux

Netty5 AIO

工程结构图: TimeServer.java文件内容如下: package com.shihuan.netty.server; public class TimeServer { public static void main(String[] args) { int port = 8080; if (args != null && args.length > 0) { try { port = Integer.valueOf(args[0]); } catch (NumberFormatException e) { // 采用默认值 } } AsyncTimeServerHandler t…

2015-11-25 21:18 · J2SE · 评论(0) · Java · netty · aio

JDK1.7 AIO

工程结构图: [img]http://dl2.iteye.com/upload/attachment/0113/2842/21e4611b-19c2-322b-8b5f-65861ae4982a.jpg[/img] Helper.java文件内容如下: [code="java"] package com.shihuan.aio.util; import java.util.Random; import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.BlockingQueue; import java.…

2015-11-24 22:32 · J2SE · 评论(0) · jdk7 · aio