我的笔记

[b][size=large]vi方向键的输出分别为ABCD [/size][/b]


echo "set nocompatible" >> ~/.vimrc


[b][size=large]linux中tail命令---用于查看文件内容 [/size][/b]

最基本的是cat、more和less。
1. 如果你只想看文件的前5行,可以使用head命令,如:
head -5 /etc/passwd
2. 如果你想查看文件的后10行,可以使用tail命令,如:
tail -2 /etc/passwd 或 tail -n 2 /etc/passwd
tail -f /var/log/messages
参数-f使tail不停地去读最新的内容,这样有实时监视的效果 用Ctrl+c来终止!
3. 查看文件中间一段,你可以使用sed命令,如:
sed -n '5,10p' /etc/passwd
这样你就可以只查看文件的第5行到第10行。

[b][size=large]常用concurrent 集合类[/size][/b]
ArrayBlockingQueue 可以设置队列的容量,容量满的时候put操作将导致阻塞.
ConcurrentHashMap
ConcurrentLinkedQueue

[b][size=large]jboss 启动时的日志错误[/size][/b]

ERROR: invalid console appender config detected, console stream is looping.
经过查询其原因如下:

应用若有自己的log4j 配置的时候,会导致JBoss启动时出现 "ERROR: invalid console appender config detected, console stream is looping."
解决方案:
只要去JBoss server的conf文件夹中的jboss-service.xml中的org.jboss.logging.Log4jService的设定区域中加个参数:<attribute name="CatchSystemOut">false</attribute>即可


[b][size=large]JBoss4.2.x版本发布web应用,用ip直接访问的解决办法[/size][/b]

最近有个应用要部署到JBoss上,就用了较新的JBoss4.2版本。

部署上去很奇怪的是,以前用4.0GA版本的时候,部署完毕在ie地址栏敲入ip:port就能访问的应用却报错说:找不到服务器~而用localhost:port就可以正常访问。

百思不得其解~

1、直接修改jboss-4.2.0.GA\server\default\deploy\jboss-web.deployer\server.xml:

将中的${jboss.bind.address}改为实际的IP地址或者0.0.0.0即可恢复ip直接访问。

xml 代码 <Connector port="8088" address="${jboss.bind.adress}"
maxThreads="250" maxHttpHeaderSize="8192"
emptySessionPath="true" protocol="HTTP/1.1"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />

2、修改启动脚本文件run.bat,加上执行参数 -b options:

先创建一个run.bat的快捷方式,然后右键快捷方式,查看其属性,在“目标”栏中加入-b 192.168.19.34或者-b 0.0.0.0,然后启动这个快捷方式即可。

----------------------------------------

[b][size=large]mysql如果表不存在就创建该表[/size][/b]
CREATE TABLE IF NOT EXISTS pxl_table(id int(16),name varchar(32));

当前数据库: select database();
----------------------------------------
[size=large][b]ECLIPSE 3.5 JEE 稳定配置[/b][/size]

-startup
plugins/org.eclipse.equinox.launcher_1.0.201.R35x_v20090715.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.0.200.v20090519
-product
org.eclipse.epp.package.jee.product
--launcher.XXMaxPermSize 256M
-showsplash
org.eclipse.platform
--launcher.XXMaxPermSize 256m
-vmargs
-Dosgi.requiredJavaVersion=1.5
-Xms256m
-Xmx512m
-XX:PermSize=128m
-Xverify:none
-XX:+UseParallelGC
-----------------------------------------
[size=large][b]select into from和insert into select from两种表复制语句区别[/b][/size]

Sql代码
select * into target_table from source_table;
insert into target_table(column1,column2) select column1,5 from source_table;

select * into target_table from source_table;
insert into target_table(column1,column2) select column1,5 from source_table;

以上两句都是将源表source_table的记录插入到目标表target_table,但两句又有区别。
第一句(select into from)要求目标表target_table不存在,因为在插入时会自动创建。
第二句(insert into select from)要求目标表target_table存在,由于目标表已经存在,所以我们除了插入源表source_table的字段外,还可以插入常量,如例中的:5。

----------------------------------------

芳亮 (19:29:40):
127.0.0.1 monitor.daily.taobao.net
芳亮 (19:42:54):
monitor.report.tair.address1 = 192.168.212.95:5198
monitor.report.tair.address2 = 192.168.212.95:5198
monitor.report.tair.groupname = group_1

http://monitor.daily.taobao.net/monitor-report/alipay/monitor_alipay.htm
传统

测试数据库:
192.168.205.81
hubble
hubble


几个核心应用:
1. * buyhost
2. * trademgrhost
3. shopmgrhost
4. * shopcenterhost
5. * shopsystemhost
6. tadgethost
7. * tchost
8. * tbuichost
9. * ichost
10. listHost
11. ItemHost
12.login


svn地址:
http://svn.taobao-develop.com/repos/monitor-report/trunk/monitor-report
http://svn.taobao-develop.com/repos/monitor-agent/monitor-client
http://svn.taobao-develop.com/repos/monitor-collector/trunk/monitor-collector


http://121.0.25.149/cgi-bin/rrd_graph.pl?node_name=monitor33.cm3&mod=cpu

http://monitor.taobao.com/monitor-report/secitcapacity/countRateAnalysis/count_rate_analysis.htm

windows 无法连接到该域
域名:taobao.ali.com


taobao-monitor-dev@list.alibaba-inc.com
taobao-monitor@list.alibaba-inc.com

veloclipse velocity的eclipse插件
安装地址:
http://veloeclipse.googlecode.com/svn/trunk/update/
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值