打印

sun_java_commsuite5 简易安装指南

sun_java_commsuite5 简易安装指南

最近一直在研究sun_java_commsuite5的安装,现将安装使用心得提供给大家,不对之处请多多指点,同时为论坛做点贡献,回报各位。
  安装sun_java_commsuite5组件,首先需要对需要安装的组件有个基本认识和对基础概念进行了解。
一、安装注意事项
    如果需要使用webserver提供服务的话,安装时要将安装application server 的选项去掉,因为access server 只能选择其中的一个作为容器来进行安装。本例中以web server 安装为例。
    如果日历服务和邮件服务同时安装在一台机器上的话,日历服务被默认使用虚拟域支持,在配置sso的时候要注意。
    如果要卸载软件重新安装的话,一定不要删除SUNWam SUNWmsgser SUNWwbsvr7 以外的其它目录,否则在次安装时会报错,因为在首次安装时会安装一些附加组件,而卸载sun_java_commsuite5时不会卸载在安装时选择的组件以外的附加组件。
二、开始安装
    /sun_java_commsuite5/Solaris_sparc/installer 注:建议采用图形界面安装,远程安装需要有root权限,远程安装可以使用shell连接调用图形界面。
    安装过程非常简单,就不过多强调了,大家可以参考lijiong大大的贴子http://bbs.chinaunix.net/viewthread.php?tid=733523,我在安装的时候给我很大的帮助,在此感谢!
    需要注意的是,配置webserver 实例时,将其端口设置成80(默认),这是为以后单点登陆做准备。
    停止sendmail的smtp服务  #svcadm disable network/smtp:sendmail,可以使用netstat -a 来查看是否生效。
    user=root
      group=other
      Suffix改成o=isp
      cook domain = test.com (你自己的域名后缀)
      运行web的unix用户和组:可以默认,也可以新建成mailser(不要选择使用root),其它默认
    配置access server 时选择传统,不要选择领域
    我在安装时遇到一个问题,检测交换空间时为0M,实际上我的交换空间设置的很大,使用swap -l 查看也空余很多,不知道为什么?
    安装时选择安装时配置,系统会提示有一些组件不能在安装时配置,安装继续,等待安装结束。
三、系统配置
   
    正常安装结束后,首先启动directory server /var/opt/SUNWdsee/dsins1/start-slapd,接着启动webserver 和 web 实例。/var/opt/SUNWwbsvr7/admin-server/bin/startserv & /var/opt/SUNWwbsvr7/https-mail.test.com/bin/startserv
     
      启动web server 就已经启动了access server ,他们是相互关联的,你可以测试一下配置是否成功。

    http://www.test.com(你自己的域名 ) 测试web 实例是否正常运行
    http://www.test.com:8800https://www.test.com:8989        web server 的管理界面
      http://www.test.com/amserver             access server 管理服务器
    http://www.test.com/amconsole            access server  管理控制台
    http://www.test.com/ampassword         access server 密码重置页面
    假如以上的组件你配置都没有问题了,那就可以继续下一步了。为那些不能在安装过程配置的组件进行配置
   
    首先,# cd /opt/SUNWcomds/sbin
               # perl comm_dssetup.pl    注:在/var/opt & /opt 下会有很多comm_dssetup.pl 文件,请以本例中的目录文件为主
    安装时选择schema 2,其它默认,配置结束。

四、配置Communications Delegated Administrator

     cd /opt/SUNWcomm 执行./config-commda,默认安装,配置过程没有什么说得了,默认安装即可。重启web服务,
   
    访问http://www.test.com/da 查看是否可以登陆。

五、日历服务的配置

    cd /opt/SUNWics5/cal/sbin ,执行./csconfigurator.sh,如果安装选择组件时日历和邮件安装到一个服务器上,日历服务默认启动虚拟域支持,默认安装,选择http服务端口89。配置完毕。启动cal server .访问http://www.test.com:89

六、邮件服务

    cd /opt/SUNWmsgsr/sbin 执行./configure,配置过程默认即可,需要注意,因为已经将80端口分配给了web 实例,需要将messaging server 的http端口重新设定为其它,例如8080,配置结束后不要先启动msg服务,需要使用 ./configutil 命令来使你设定的端口生效。例:./configutil -o service.http.port -v 8080 。起动message server .访问http://www.test.com:8080

七、配置Communications Express
  
     cd /opt/SUNWuwc/sbin ,执行./config-uwc
     运行容器选择Web Server,端口默认为80,UserID 是 root,groupID 是other
     Administrator DN 是 uid=amadmin,ou=people,o=isp   
     其他默认,安装完毕。重新启动webserver 。访问http://www.test.com/uwc 看看效果

TOP

八、配置单点登陆(sso)

    配置sso的目的是使日历、邮件、通讯录运行在一个界面上,方便使用,通过access server的一次认证登陆,就可以使用所有的服务。
  
    在Communications Express 中使用Access Manager 启用单点登录

    1. 打开uwc-deployed-path/WEB-INF/config/uwcauth.properties 文件。
    2. 修改uwcauth.properties 文件中的以下Communications Express 参数,以启用Access Manager SSO。
       uwcauth.identity.enabled=true
       uwcauth.identity.login.url=http://www.test.com/amserver/UI/login
       uwcauth.identity.cookiename=iPlanetDirectoryPro
       uwcauth.identity.binddn=uid=amAdmin, ou=People,o=isp
       uwcauth.identity.bindcred="amadmin的密码"
       uwcauth.http.port=80
       identitysso.singlesignoff=true
       identitysso.portalurl=www.test.com
      
  首先,使用/opt/SUNWmsgsr/sbin/下工具configutil 为Messaging Server 配置使用Uwc

     ./configutil -o local.webmail.sso.uwcenabled -v 1
     
     ./configutil -o local.webmail.sso.amnamingurl -v http://www.test.com/amserver/namingservice

     ./configutil -o local.webmail.sso.uwcenabled -v 1

     ./configutil -o local.webmail.sso.uwclogouturl -v http://www.test.com/uwc/base/UWCMain\?op=logout

     ./configutil -o local.webmail.sso.uwcport -v 80

     ./configutil -o local.webmail.sso.uwccontexturi -v “uwc”

     ./configutil -o local.webmail.sso.amcookiename -v iPlanetDirectoryPro

     ./configutil -o local.webmail.sso.uwchome -v http://www.test.com/uwc

     ./configutil -o service.http.allowadminproxy -v yes

     重新启动message server
  
  修改/etc/opt/SUNWics5/config/ics.conf ,为calendar server 配置使用uwc,建议先行备份ics.conf文件

   local.calendar.sso.amnamingurl=http://www.test.com/amserver/namingservice
   local.calendar.sso.amcookiename=iPlanetDirectoryPro
   local.calendar.sso.amloglevel=3
   local.calendar.sso.logname=am_sso.log
   local.calendar.sso.singlesignoff=yes

     重新启动calendar server

九、通过Communications Delegated Administrator 来

   访问http://www.test.com/da ,登陆进去,分配服务软件包给域,指定服务软件包数量,指定用户使用服务软件包,建立用户必须同时将邮件和日历的服务软件包分配给用户,才能在uwc中同时访问calendar、mail和通讯录.

   系统安装之后提供的服务软件包的邮件最大为300k,不能满足需要,必须新增自定义服务软件包,/opt/SUNWcomm/lib/config-templates/da.cos.skeleton.ldif 文件为模版文件,可以参考使用。

   新建文件xxx.ldif

   dn: cn=xxx,o=mailuser,o=cosTemplate,o=isp
   changetype: add
   objectclass: top
   objectclass: LDAPsubentry
   objectclass: extensibleobject
   objectclass: cosTemplate
   cn: xxx
   mailMsgMaxBlocks: 10240
   mailQuota: 400000000
   mailMsgQuota: 50000
   mailAllowedServiceAccess: imap:ALL$+pop:ALL$+smtp:ALL$+http:ALL
   daServiceType: mail user
  
   执行./ldapmodify -D admin -w -f xxx.ldif 进行新增服务软件包

   访问http://www.test.com/uwc 来看看效果吧,安装到此完毕!

十、调整通讯录导入文件大小

   在上载大于2 MB 的文件时,Communications Express 显示“服务器错误”。默认情况下,Communications Express 允许导入最大大小为2 MB 的文件数据

   增加上载文件大小
   
   cd /opt/SUNWuwc/WEB-INF/web.xml,配置web.xml 中的MultipartFormServletFilter

   <web-app>
..
..
<filter>
<filter-name>MultipartFormServletFilter</filter-name>
<filter-class>com.sun.uwc.calclient.MultipartFormServletFilter</filter-class>
..
..
<init-param>
<param-name>fileSizeHardLimit</param-name>
<param-value>10485760</param-value>
<description>Ten mega bytes</description>
</init-param>
<init-param>
<param-name>requestSizeLimit</param-name>
<param-value>10485760</param-value>
<description>Ten mega bytes</description>
</init-param>
<init-param>
<param-name>fileSizeLimit</param-name>
<param-value>10485760</param-value>
<description>Ten mega bytes</description>
</init-param>
<init-param>
<param-name>failureRedirectURL</param-name>
<param-value>put your url here</param-value>
<description>Request is redirected to this url when uploaded file size crosses
fileSizeHardLimit value</description>
</init-param>
..
..
</filter>
..
..
..
..
</web-app>

十一、垃圾邮件过滤

   可以使用免费软件spamassassin ,具体配置正在整理,改日奉上。

TOP


感谢一直以来您对我们的支持!
当前时区 GMT+8, 现在时间是 2008-10-11 11:53 京ICP证060528 号

Designed By 17DST