框架
jetspeed使用=velocity(推荐)也可是jsp+spring+ojb的框架.
安装
1.下载jetspeed(我用的2.1.3).
2.切换到install.jar存放的目录下,执行java -jar jetspeed-install.jar安装
3.选择jetspeed要使用的数据库(这里我使用的是oracle,可根据具体情况)
启动
因为jetspeed安装时把tomcat也安装了,你可以用其下bin/startup.bat启动.
url=http://localhost:8080,看到界面了.
如果把spring的petportal例子,运行起 ...
newObj = getHibernateTemplate().merge(obj);
obj是一个游离对象,该方法将把obj中的属性更新到与obj主键一致的持久对象中,并返回该持久对象newObj。如果没有对应的持久对象,将会新建一个持久对象并将属性拷贝进去,并返回新对象。
参考:
Copy the state of the given object onto the persistent object with the same identifier. Follows JSR-220 semantics.
Similar to saveOrUpdate
, but n ...
在介绍cascade和inverse之前我们要明确一个问题,这两个xml属性标签,都是定义某个set集合(<set>)或是某个<many-to-one>标签的级联操作和关联维护关系的。因此也只有其做为属性的父类在操作这些属性时,它们才起作用。
cascade
例如:
<class name="Test1" table="Test1" >
<id name="id">
<generator class="increment" / ...
# 将 RewriteEngine 模式打开
RewriteEngine On
# 修改以下语句中的 / 为你的网站目录地址,如果程序放在二级目录中,如/phpcms 请将 / 修改为 /phpcms
RewriteBase /
# Rewrite 系统规则,添加或者修改请根据其规则
RewriteRule ^(.*)show-([0-9]+)-([0-9]+)\.html$ $1/show.jsp?itemid=$2&page=$3
RewriteRule ^(.*)list-([0-9]+)-([0-9]+)\.html$ $1/list.jsp?catid=$2 ...
高负载WEB动态页面与静态页面的分离Apache, CentOS, Lighttpd, mod_cache, mod_proxy, mod_rewrite, 性能2006-10-19 @ 23:36:52 · Filed under Apache, CentOS, Lighttpd试了一段时间的Lighttpd,表现的确不错,原先用APACHE只能跑到6K/S,改用Lighttpd后性能提升了将近一倍,只是跑PHP似乎很不稳定,数据库处理时间长一点就会到导致Lighttpd出现500的错误,也就是说要想使Lighttpd发挥更好的性能,除了优化程序还是优化程序,尽可能的加快PHP ...
对服务器而言最重要的就是优化了.apache的优化文章,相信你也见过不少了.这里稍微摘出lighttpd的几个优化参数看一看.1 最大连接数默认是1024修改 server.max-fds,大流量网站推荐2048.因为lighttpd基于线程,而apache(MPM-prefork)基于子进程,所以apache需要设置startservers,maxclients等,这里不需要2 stat() 缓存stat() 这样的系统调用,开销也是相当明显的.缓存能够节约时间和环境切换次数(context switches)一句话,lighttpd.conf加上server.stat-cache-engi ...
引用网站
http://sery.blog.51cto.com/10037/54645
http://www.wappan.com/html/93/fac20ee3c5bc1659bc8e6ba2771c5b31.html
ipvs安装时与http://www.wappan.com/html/93/fac20ee3c5bc1659bc8e6ba2771c5b31.html为准
配置时与http://sery.blog.51cto.com/10037/54645为准
以下是配置好的代码
分派器代码
#!/bin/sh
VIP=192.168.5.114
RIP1=192.168.5.13 ...
1.查看服务器是否运行起来了,则用下面的命令;
pgrep 服务名
例如:查看samba服务是否开启
pgrep smbd
2.kill 服务
pkill smbd
3.查看服务使用端口号
netstat -tlnp | grep 服务
例如:查看samba服务使用端口
netstat -tlnp |grep smb
4.把防火墙规则清掉
iptables -F
或
/sbin/iptables -F
打开VNC服务
[root@linux root]# vncserver
You will require a password to access your desktops.
Password: ***** 为了不想任何人都可以任意遥控此计算机。因此当第 1次启动VNC server时,会要求设置网络遥控的密码。
Verify: *****
New ‘X’ desktop is linux:1 ----一定要记住这一行稍后会用到,终端编号;
Creating default startup script /root/.vnc/xstartup
Starting applica ...
参照http://www.ccfblog.com/blog/Turion/archives/2008/10373.shtmlhttp://tech.ccidnet.com/art/9513/20080121/1349179_1.html http://www1.mplayerhq.hu/MPlayer/releases/MPlayer-1.0rc2.tar.bz2http://www1.mplayerhq.hu/MPlayer
... ll-20071007.tar.bz2http://www1.mplayerhq.hu/MPlayer
... ws-all-20071007 ...







评论排行榜