Time: 2010-03-05 15:48 Category: 经验分享 Hits: 4 Tags: glassfish,
ubuntu Comments: 0 ubuntu 安装glassfish后的自启动设置
编辑文件
vim /etc/init.d/GlassFish
加入以下内容
#!/bin/sh
GLASSFISHHOME=/opt/glassfishv3
case "$1" in
start)
${GLASSFISHHOME}/bin/asadmin start-domain domain1
(sleep 2 & echo "get /") | telnet www.your.com 4848
;;
stop)
${GLASSFISHHOME}/bin/asadmin stop-domain domain1
;;
restart)
${GLASSFISHHOME}/bin/asadmin stop-domain domain1
${GLASSFISHHOME}/bin/asadmin start-domain domain1
(sleep 2 & echo "get /") | telnet www.your.com 4848
;;
*)
echo $"usage: $0 {start|stop|restart}"
exit 1
esac保存这个文件之后,进一步操作
chmod a+x /etc/init.d/GlassFish
update-rc.d GlassFish defaults
到了这里,差不多就配好了。
#启动
/etc/init.d/GlassFish start
#停止
/etc/init.d/GlassFish stop
#重启
/etc/init.d/GlassFish restart
Time: 2010-03-03 00:09 Category: 经验分享 Hits: 0 Tags: adsl Comments: 0 Adsl上网提速另类招数
1.迅雷吸血,能不用就不用。开了迅雷,你电脑的并发连接都被迅雷给占了。网页打开需要开连接,被迅雷抢了,你就会很难打开网页。
2.用namebench来选一个最快的dns服务器吧。dns解析是影响你上网响应速度的关键一步。下载地址:http://code.google.com/p/namebench/
3.装pctools防火墙吧。它可以过滤掉非正常的连接请求。包括arp攻击,恶意端口扫描,以及网络入侵。拥有它,你的带宽就不会被这些不良因素所影响。真正的做到一身轻松。墙是好墙。非金山瑞星等流可以比的。而且它是免费的:http://www.pctools.com/cn
Time: 2010-03-02 15:56 Category: IT资讯 Hits: 1 Tags: 开源 Comments: 0 LinuxQuestions.org的注册成员评出了2009年开源系统、软件方面的佼佼者。在这里我仅对各个奖项简单翻译了一下。
2009 LinuxQuestions.org Members Choice Award Winners The polls are closed and the results are in. We had a record number of votes cast for the ninth straight year. Congratulations should go to each and every nominee. We once again had some extremely close races and a couple multi-year winners were unseated. The official results:
Desktop Distribution of the Year(桌面系统) – Ubuntu (30.13%)
Server Distribution of the Year(服务器) – Debian (24.24%)
Security/Forensic/Rescue Distribution of the Year(系统恢复盘) – BackTrack (43.48%)
Database of the Year – MySQL(数据库) (60.81%)
Office Suite of the Year (办公套件)- OpenOffice.org (90.76%)
Browser of the Year(浏览器) – Firefox (65.21%)
Desktop Environment of the Year(桌面环境) – Gnome (41.96%)
Window Manager of the Year(窗口管理器) – Compiz (23.10%)
Messaging App of the Year(即时通讯) – Pidgin (48.74%)
Mail Client of the Year(邮件客户端) – Thunderbird (53.48%)
Virtualization Product of the Year(虚拟机产品) – VirtualBox (67.43%)
Audio Media Player Application of the Year(音频播放器) – Amarok (38.81%)
Audio Authoring Application of the Year(音频编辑器) – Audacity (77.26%)
Video Media Player Application of the Year(视频播放器) – VLC (46.05%)
Video Authoring Application of the Year(视频编辑器) – FFmpeg (21.94%)
Multimedia Utility of the Year (多媒体工具)- GStreamer (32.84%)
Graphics Application of the Year(图像软件) – GIMP (66.48%)
Network Security Application of the Year(网络安全) – Nmap Security Scanner (29.85%)
Host Security Application of the Year(主机安全) – SELinux (39.26%)
Network Monitoring Application of the Year(网络监视) – Nagios (51.11%)
IDE/Web Development Editor of the Year(IDE/网页开发) – Eclipse (23.28%)
Text Editor of the Year(文本编辑器) – vim (35.29%)
File Manager of the Year(文件管理器) – Nautilus (24.92%)
Open Source Game of the Year(开源游戏) – Battle for Wesnoth (15.45%)
Programming Language of the Year(编程语言) – Python (27.59%)
Backup Application of the Year(备份工具) – rsync (48.99%)
Open Source CMS/Blogging platform of the Year(开源内容管理系统/博客平台) – WordPress (45.20%)
在这个列表里面,大多数软件我们都在使用,从ubuntu,debian,到vim,eclipse,还有mysql,firefox,wordpress.
正是这些开源软件的存在,我们的世界才变的更加美好 。坚定不移的支持开源软件!
If you have any questions or suggestions on how we can improve the MCA’s next year, do let me know. Visit http://www.linuxquestions.org/questi…ice-awards-91/ for the full poll results.
Time: 2010-03-01 19:28 Category: linux, vps, 系统配置 Hits: 2 Tags: glassfish Comments: 0 glassfish在ubuntu vps下面的几个问题的解决
这几个错误提示跟内存有关。你可以看到提示memory 或者leak之类的出错提示。
解决的办法是,编辑/glassfishv3/bin/asadmin和/glassfishv3/glassfish/domain/domain1/config/domain.xml
asadmin里面改成这样(增加-Xmx128m):
#!/bin/sh
#
# Copyright 1997-2008 Sun Microsystems, Inc. All rights reserved.
# Use is subject to license terms.
#
# Always use JDK 1.6 or higher
AS_INSTALL=`dirname "$0"`/../glassfish
AS_INSTALL_LIB="$AS_INSTALL/modules"
. "${AS_INSTALL}/config/asenv.conf"
JAVA=java
#Depends upon Java from ../config/asenv.conf
if [ ${AS_JAVA} ]; then
JAVA=${AS_JAVA}/bin/java
fi
exec "$JAVA" -Xmx128m -jar "$AS_INSTALL_LIB/admin-cli.jar" "$@"
create-jvm-options --profiler=true -XX:MaxPermSize=128mdomain.xml文件改Xmx128m和MaxPermSize为128M
限制jvm虚拟机的最大可用内存为128M
一般就可以正常启动了。
Time: 2010-03-01 15:45 Category: Default Hits: 4 Tags: opera Comments: 0 Opera 是来自挪威的一个极为出色的网络浏览套件,具有速度快、节省系统资源、定制能力强、安全性高以及体积小等特点,目前已经是广受欢迎的浏览器之一。多 文档接 口 (MDI)、方便的缩放功能、整合搜索引擎、快捷键与鼠标手势、浏览历史记忆、防止恶意弹出窗口、全屏模式、对 HTML 标准的支持、整合电子邮件与新闻群组以及让用户自定义按钮、皮肤、工具栏等等,都使 Opera 多年来倍受喜爱。

这一两天来。opera更新很快。一天数次更新。看来离正式版不远了。
很高兴看到浏览器厂商如此发力,大力支持opera.
在个人的软件库里面,除了firefox,chrome,就要数opera用的最爽了。哈哈,看起来最华丽,功能也很强,用起来又安逸。
重要更新:
- 稳定性修复
- 修复 UserJS 无法使用的问题
- 修复 DEP 相关问题
- 修复双击发送邮件导致崩溃的问题
- 修复 Opera Unite 应用本地化问题
下载链接:
Windows
Windows Classic
Time: 2010-02-28 19:54 Category: 下载工具 Hits: 6 Tags: bitcomet Comments: 0 迅雷之外的选择(bitcomet)
经过迅雷5.9的这么久的折磨,我终于无法再忍它了。
在四方寻找可替换的软件,并经过谨慎的评测之后得出了还算满意的结论。
功能最好,最优化的下载工具,当属bitcomet。

bitcomet的bt下载功能是非常强的。在中国境内,下载速度会比utorrent快很多。而且它还支持emule(插件的方式)。
经过一下午四五个小时的下载测试。下载的时候,带宽占用非常理想。开迅雷的时候,你会发现网页很难打开。因为迅雷的并发连接数一般超过了300个。但是通过监测软件。我们可以发现bitcomet的并发连接数控制在100以下。因此不影响上网看网页。
注意,如果你跟我一样用的是电信两兆宽带的话,那么bitcomet的任务数量最好设置为1个,即同时只进行一个下载任务。上传速度设为10K,下载限制为100K。这样在下载的同时,还可以做其它的事情。
这一点是迅雷做不到的,迅雷是名副其实的吸血!
官网地址:
http://www.bitcomet.com
下载地址:
http://cn.bitcomet.com/bitcomet/bitcomet_setup.exe
Time: 2010-02-28 18:07 Category: 输入法 Hits: 1 Tags: 五笔,
极点 Comments: 0 相对6.5最大变化就3条:
1、支持win7(x86/x64)
2、支持X64(实际包括在上面了)
3、重写了码表管理部分,解决词库出错问题
4、修正发现的bug,优化词库加载速度及完善
极点设为默认时的一些问题。
感谢一直帮助、支持极点的朋友们,祝元宵节愉快!
下载页面:
http://okuc.net/software/freewb
标 准版与学习版的差别:
『学习版』是专为初学五笔用户准备,查询时会提示字的拆分图、读音与编码;
『标准版』的查询则提示字的读音、编码与解释。另外,两版采用的拼音词库
不一样:学习版较小,标准版较大;学习版的默认设置更适合初学者。
————————————————————
作为一名老五笔输入法的用户,我个人对极点五笔是极致推崇。
它比qq五笔和搜狗五笔上屏速度都要快。同时还没有尾巴进程,不自动升级词库什么的。五笔其实并不需要词库,我个人的习惯是打单字。
所以轻便的极点五笔是我的不二之选,今天是元宵节。极点为我们带来了一个非常好的节日礼物。
推荐大家试用。
Time: 2010-02-27 08:12 Category: domain&hosting, vps Hits: 8 Tags: fivebean Comments: 0 Fivebean主机和vps火热促销中
Fivebean是一家在webhostingtalk.com享有比较高声誉的IDC提供商,他的机房位于美国芝加哥,中国境内访问速度很快,它同时提供主机租用服务和vps租用服务。
眼前正在举行的促销活动有:虚拟主机65%折促销,vps 30% – 60%优惠折扣。
具体详情请访问官方页面:
http://fivebean.com/vpshosting/
http://fivebean.com/hosting/
其中最值得购买的是$50.40每年的虚拟主机方案,该方案提供80G硬盘空间,2000G每月流量,附送一个独立IP,不限域名绑定。
另外openvz vps 512M内存(最大可用内存1024M)方案也只需$15.20/月,提供50G硬盘空间,450G流量,推荐有需求的用户购买。
大文件下载测试:http://maui.fivebean.com/10M.bin
ping地址:vpstest.fivebean.com