2012 年文章归档
共 17 篇文章
Linux环境变量的设置和查看方法
1. 显示环境变量HOME $ echo $HOME /home/redbooks 2. 设置一个新的环境变量hello $ export HELLO="Hello!" $ echo $HELLO Hello! 3. 使用env命令显示所有的环境变量 $ env HOSTNAME=redbooks.safe.org PVM_RSH=/usr/bin/rsh Shell=/bin/bash TERM=xterm HISTSIZE=1000 ... 4. 使用set命令显示所有本地定义的Shell变量 $ set BASH=/bin/bash BASH_VERSINFO=([0]="2"[1]=…
2012-12-31 13:29 · Linux
Installation notes of Websphere Message Broker V6.1 for Fedora 17 64bit
Preparation: 1. Install VMWare and Fedora 17. 2. Open ssh service. http://pigfans.iteye.com/admin/blogs/1754434 MQ Installation: 1. Create group 'mqm' and user 'mqm'. http://pigfans.iteye.com/admin/blogs/1754468 2. Agree the license: http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/topic/com.ibm…
2012-12-27 11:11 · Message Queue & Message Broker · Linux
Linux创建用户、用户组 及 删除
在创建用户时,需要为新建用户指定一用户组,如果不指定其用户所属的工作组,自动会生成一个与用户名同名的工作组。创建用户user1的时候指定其所属工作组users,例:useradd –g users user1 一、创建用户: 1、使用命令 useradd 例:useradd user1——创建用户user1 useradd –e 12/30/2009 user2——创建user2,指定有效期2009-12-30到期 用户的缺省UID从500向后顺序增加,500以下作为系统保留账号,可以指定UID, 例:useradd –u 600 user3 2、使用 passwd 命令为新建用户设置密码 …
2012-12-26 15:13 · Linux
Linux SSH服务开通[Fedora 12]
近期安装了一台Fedora 12虚拟机, 可以在自己电脑上ssh连接到这台Linux, 用起来很方便. 这里记一下是怎么配置的. 1) 安装openssh-server [root@localhost ~]# yum install openssh-server 2) 查看是否已成功安装openssh-server [root@localhost ~]# rpm -qa | grep openssh-server openssh-server-5.3p1-19.fc12.i686 [root@localhost ~]# 3) 修改ssh服务的配置文件 配置ssh服务的运行参数, 是通过修改配…
2012-12-26 14:32 · Linux
一些多线程的笔记
1. 保护方法原子性的同时,也要注意保护方法中使用到的变量。下面这段代码是否一定安全? public class Counter { private int counter = 0; public int getCounter() { return counter; } public synchronized void add1() { int count = counter; counter = count + 1; } //other method } 不一定,如果在other method中也处理counter但是又没有保护的情况下,会出现问题,例如 public class Coun…
2012-09-05 17:43 · Java
[JDK源码] HashMap
1. 参数介绍 /** * The default initial capacity - MUST be a power of two. */ static final int DEFAULT_INITIAL_CAPACITY = 16; /** * The maximum capacity, used if a higher value is implicitly specified * by either of the constructors with arguments. * MUST be a power of two <= 1<<30. */ static final int M…
2012-08-30 18:39 · Java
Chapter 1 - Declarations and Acess Control
1. Identifiers - It must start with a letter, a currency character($), or a connection character such as the underscore(_). It cannot start with a number!. - After the first character, identifiers can contain any combination of letters, currency characters, connecting characters, or number. - In pr…
ClearCase笔记1 - 关于baseline
1. baseline是相对于组件的一个概念。 2. baseline分为labeled和unlabeled两种,只有labeled baseline才可以被rebase。 3. deliver的时候会自动生成一条unlabeled baseline。
2012-04-01 10:45 · ClearCase
[Rebase] 出现Unable to find a unique view attached to stream的错误
3905 2/8/12 4:06 PM FILT Match on filter [.*Error:.*] (Error found plus) - Set fail status [Threshold - 0/0]. 3906 2/8/12 4:06 PM EXEC cleartool: Error: Unable to find a unique view attached to stream "non_development". 3907 2/8/12 4:06 PM FILT Match on filter [.*Error:.*] (Error found plus) - Set …
2012-02-08 16:35 · Command Line · ClearCase
查看LISTENER监听端口
进入runmqsc QMName DISPLAY LSSTATUS(*) ALL查看监听端口 注意: 如果用DISPLAY LISTENER(*) ALL也可以查看端口,但那个值貌似不一定准确
2012-02-07 15:43 · Message Queue & Message Broker · Command Line
Message Broker常用命令
新建Execution Group: mqsicreateexecutiongroup BROKERNAME -e EXECUTIONGROUPNAME 查看Queue Manager列表: dspmq
2012-02-01 22:45 · Message Queue & Message Broker · Command Line
runmqsc常用命令
1 Queue manager commands Description PCF command MQSC command Control command WebSphere® MQ Explorer equivalent? Change Queue Manager Change Queue Manager ALTER QMGR No equivalent Yes Create queue manager No equivalent No equivalent crtmqm Yes Delete queue manager No equivalent No equivalent dltmqm…
2012-02-01 22:45 · Message Queue & Message Broker · Command Line
创建ExecutionGroup
mqsicreateexecutiongroup BROKERNAME -e EXECUTIONGROUPNAME
2012-02-01 17:36 · Message Queue & Message Broker · Command Line
创建Queue
方法一: 1. 将上面内容保存成一个test.mqs文件。 2. 运行runmqsc QueueManager名 < test.mqs。 方法二: 1. 运行runmqsc QueueManager名。 2. 将上面内容一行行输入。 3. 输入END 以上两种方法都会创建以QL里面参数命名的Queue。
2012-01-28 11:03 · Message Queue & Message Broker · Command Line
用mqsideploy部署bar
语法: 参数: brokerSpec 需要部署的目标broker名。 -e executionGroupName 需要部署的目标ExecutionGroup名。 -a BARFileName 需要部署的Bar文件。
2012-01-28 11:01 · Message Queue & Message Broker · Command Line
用mqsicreatebar创建bar文件
语法: 参数: -data WorkSpace 工作区目录,所有的ProjectName 必须存在于该目录。 -b BarName 生成的bar 文件全路径或者相对路径。 -p ProjectName 所有FilePath 所在项目以及所有关联项目。例如 ProjectA 是需要编译的项目, ProjectB 是 ProjectA 的 referenced project ,那么就应该写成 -p ProjectA ProjectB 。这里比较奇怪的是按文档上应该写成 -p ProjectA -p ProjectB ,不知道为什么前者反而成功后者失败。有知道的麻烦告诉一声。 -o FilePa…
2012-01-28 10:59 · Message Queue & Message Broker · Command Line