存档

2010年1月20日 的存档

6种方式,拯救Google的网络服务数据

2010年1月20日 hashei 1 条评论

转自  学无止境@一点一滴

原文链接  http://www.gtdstudy.com/?p=1797

《让每一天有意义:一生的学习软件推荐》一文中,曾提到:我所有的数据都放在Google上面!且永远不会丢失!——但现在,我得说,这令人沮丧:我可以继续使用,数据可以永久保存,只是,Google已在墙外……

我无意渲染Google离去中国的悲伤,它让信息永无止境,它让我们离世界近的触手可及……可是?中国已无Google??

一、备份Gmail电子邮箱的邮件

1.通过Firefox浏览器备份
Firefox的用户都装上了Gears吧?没有装的,到这下载安装上:http://gears.google.com/intl/zh-CN/index.html

安装之后,在Gmail的设置中开启“离线邮件”的功能,即“设置”——“离线版”——“为此计算机启用离线邮件”。

在“下载选项”中,我推荐你下载所有的标签:收件箱、已发邮件、草稿与自己建立的标签,同时最好都点击“全选”,这样才是完整的。

同时,后面还有一个“附件”选项,你自己考虑是否下载所有的附件,我一般不下载附件,因为比较费时间的。
clip_image002

2.通过Thunderbird邮箱客户端备份
你不必一定要使用Thunderbird邮箱客户端,像Foxmail、Outlook都行,看你喜好自己决定吧。

若你打算使用Thunderbird备份邮件,你可在此下载Thunderbird软件:http://zh-cn.www.mozillamessaging.com/zh-CN/thunderbird/

安装完Thunderbird后,开始新建一个账户吧:“文件”——“新建”——“邮件账户”,见下图:
clip_image004

接着在弹出的对话框,输入你的Gmail账户信息,点击“继续”,再在下一个对话框确认“创建账户”就可搞定,然后,Thunderbird自动帮你开始下载邮件了。

阅读全文…

使用manageprofiles来建立websphere的profile

2010年1月20日 hashei 1 条评论

在Unix的机器上(包括AIX、HPUX)安装websphere64位的话,想要建立Profile是没有图形化界面的,需要使用manageprofiles命令,下面就详细描述一下如何使用这个命令。

1、建立DM的profile,使用的模版在{install_root}/profileTemplates/dmgr下
句法为:
manageprofile.sh -create –templatePath {install_root}/profileTemplates/dmgr

调用参数为:
-create 建立一个profile. (必选)
-templatePath 指定使用模版的路径. (必选) 建立DM的路径为{install_root}/profileTemplates/dmgr
-profileName 指定profile的名字. (可选)
-profilePath 指定proflile需要建立的路径. (可选)
-hostName 指定profile对应的主机名称. (可选)
-nodeName 指定profile对应的node的名称. 此名称必须在同一cell中唯一. (可选)
-cellName 指定profile对应的cell的名称. 每一个profile的cell名称必须唯一. (可选)
-isDefault 讲此profile指定为缺省的profile,在运行命令期间不需要使用profileName的参数. (可选)
-omitAction 附加条件. (可选)
-adminUserName 在指定administrative security选项后的管理员名称. (可选)
-adminPassword 在指定administrative security选项后的管理员密码. (可选)
-portsFile 指定profile的端口设定文件. 此参数和-startingPort或-defaultPorts参数冲突. (可选)
-startingPort 制度建立profile是的所有的端口的起始的端口号. 同-portsFile或者-defaultPorts参数冲突. (可选)
-defaultPorts 对新建立的profile使用缺省的端口号. 同-portsFile 或 -startingPort 参数冲突. (可选)
-validatePorts 进行端口号验证,保证使用的端口号没有已经被用或者被保留. (可选)
-enableAdminSecurity 新建立的profile使用用户密码方式认证,使用此参数后面跟 true. (可选) 
-enableService 作为linux的service使用,使用此参数后面跟 true. (可选) 
-serviceUserName 指定作为service使用时的用户. (可选)

-webServerType 指定Web server的类型. (可选)
-webServerOS 指定Web server的操作系统的类型. (可选)

例子:
export WAS_HOME=
export PRO_HOME=
以上指定websphere的安装路径和profile的路径,或者输入命令时替换

manageprofiles.sh -create \
-templatePath $WAS_HOME/profileTemplates/dmgr \
-profilePath $PRO_HOME/Dmgr01 \
-nodeName "nodename" \
-cellName "cell name" \
-enableAdminSecurity true \
-adminUserName wasadmin \
-adminPassword password \
-profileName Dmgr01 \
-hostName `hostname` \

2、建立custom的profile,使用的模版为{install_root}/profileTemplates/managed
句法为:
manageprofile.sh -create -templatePath {install_root}/profileTemplates/managed
调用参数同上:

要联合到DM的例子
manageprofiles.sh -create \
-templatePath $WAS_HOME/profileTemplates/managed \

-profileName AppSrv01 \

-profilePath $PRO_HOME/AppSrv01 \
-nodeName test01 \

-hostName `hostname` \
-cellName test1 \
-dmgrHost 192.168.1.100 \
-dmgrPort 8879 \
-dmgrAdminPassword password \
-dmgrAdminUserName wasadmin

不用联合到DM,而后用addNode.sh联合的例子
manageprofiles.sh -create \
-templatePath $WAS_HOME/profileTemplates/managed \
-profilePath $PRO_HOME/AppSrv02 \
-nodeName test02 \
-cellName test2 \
-profileName AppSrv02 \
-hostName `hostname`

addNode.sh 192.168.1.100:8879 -username wasadmin -password password

3、建立appsrv的profile,使用的模版在install_root/profileTemplates/default
句法为:
manageprofile.sh -create -templatePath install_root/profileTemplates/default
调用参数同上:例子么也就那样

4、对于集群来说,建立DM profile,然后建立多个custom的profile,addNode进去即可。或者把现有的app profile addNode到DM的概要文件中,然后通过克隆建立集群。