惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
V
Vulnerabilities – Threatpost
L
LINUX DO - 热门话题
H
Hacker News: Front Page
Hacker News - Newest:
Hacker News - Newest: "LLM"
L
Lohrmann on Cybersecurity
Cisco Talos Blog
Cisco Talos Blog
O
OpenAI News
S
Securelist
Security Latest
Security Latest
T
Threat Research - Cisco Blogs
H
Heimdal Security Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Recorded Future
Recorded Future
Microsoft Azure Blog
Microsoft Azure Blog
MyScale Blog
MyScale Blog
Webroot Blog
Webroot Blog
The Hacker News
The Hacker News
Google Online Security Blog
Google Online Security Blog
Latest news
Latest news
N
Netflix TechBlog - Medium
N
News and Events Feed by Topic
D
Docker
D
DataBreaches.Net
A
About on SuperTechFans
T
Tor Project blog
V
V2EX
G
Google Developers Blog
博客园 - Franky
N
News | PayPal Newsroom
T
The Blog of Author Tim Ferriss
I
InfoQ
H
Help Net Security
V2EX - 技术
V2EX - 技术
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
S
Security Affairs
SecWiki News
SecWiki News
The Register - Security
The Register - Security
人人都是产品经理
人人都是产品经理
NISL@THU
NISL@THU
小众软件
小众软件
B
Blog
T
Threatpost
P
Palo Alto Networks Blog
博客园 - 【当耐特】
L
LangChain Blog
AWS News Blog
AWS News Blog
月光博客
月光博客
宝玉的分享
宝玉的分享

博客园 - liangyi_neil

移步 面朝大海,春暖花开 写个三层代码 Process Desinger Java基础 使用mingw在windows下搭建c/c++IDE环境 gcc for windows 开发环境介绍 关于asp上传下载的iis配置 对服务器上SQLServer数据进行备份和下载 开发思考总结 .net必懂题 装机软件必备(IT人士) EJB 软件架构初读01 33条C#、.Net经典面试题目及答案 Silverlight WebService SOAP 内聚与偶合
配置基于WebSphere服务的Production
liangyi_neil · 2008-03-25 · via 博客园 - liangyi_neil

    搞了5天,终于配好了,隔行如隔山,对于和他无关的人,它毫无用处。

1   安装websphere application server v6.0
     注:要打补丁到6.0.2.17,这个不起眼的错误耗了我2天。

2   安装PC80WebSphereInstaller-100496.exe,准确的说是解压,因为最后的软件是配置出来的。

3   一些操作
     1) jdbc: 存放jar文件到C:\jdbc和E:\Was6\lib\ext下。
     2) DSPlantOperations.ear: 建back文件夹存放DSPlantOperations.ear,因为在编译DSPlantOperations.ear后文件将会改变,此操作为了需要时重新编译。
         编译:命令提示符定位到产品目录下,即有DSPlantOperations.ear文件的地方,输入:java -cp DSDeployTools.jar com.datasweep.plantops.deploytools.URLConfig DSPlantOperations.ear WebSphere iiop://localhost:2809 http://localhost:9080 IBM, 回车进行编译。         注:注意端口号,默认为2809和9080, 注意是IBM或者是SUN。
     3) web.xml:
         用
            <servlet>
            <servlet-name>action</servlet-name>
            <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
            <init-param>
            <param-name>config</param-name>
            <param-value>/WEB-INF/struts-config.xml</param-value>
            </init-param>
            <init-param id="InitParam_1037062312313">
            <param-name>maxFileSize</param-name>
            <param-value>500M</param-value>
            </init-param>
            <load-on-startup>2</load-on-startup>
            </servlet>
          替换
            <servlet>
            <servlet-name>action</servlet-name>
            <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
            <init-param>
            <param-name>config</param-name>
            <param-value>/WEB-INF/struts-config.xml</param-value>
            </init-param>
            <load-on-startup>2</load-on-startup>
            </servlet>

4   管理控制台的配置(https://localhost:9043/ibm/console)
    1) Application--Install New Application: Local file system--sepecify path:<Plant_Operations_Install_Location>\DSPlantOperations.ear
        the Directory to Install Application: C:\PlantOpsInstallDir, 然后一直默认配置。
        同样操作DSEnterpriseAdmin.ear。
    2) File-Based Security: 新建文件夹userRegistry,并在里面新建加入2个文件:users.props, 和groups.props。2个文件的内容:
       users.props:
            # Format:
            # name:passwd:uid:gids:display name
            # where name   = userId/userName of the user
            #       passwd = password of the user
            #       uid    = uniqueId of the user
            #       gid    = groupIds of the groups that the user belongs to
            #       display name = a (optional) display name for the user.
            admin:admin:1:1:admin
       groups.props:
            # Format:
            # name:gid:users:display name
            # where name   = groupId of the group
            #       gid    = uniqueId of the group
            #       users  = list of all the userIds that the group contains
            #       display name = a (optional) display name for the group.
            PlantOpsAdmin:1:admin:PlantOpsAdmin
       Security--Global security: 选中Enable global security, 去掉Enforce Java 2 security, Active protocol选择CSI, Active user registry, 然后assign,admin/admin, save。
       Security--Global security--custom--Custom properties,增加2个文件:
          name=groupsFile and value=<your_directory>\userRegistry\groups.props
          name=usersFile and value=<your_directory>\userRegistry\users.props
       注:注意保持后是否Security--Global security生效了,如果没有,要重新配置Security--Global security。

5   配置Enterprise Administrator
     此处已到配置产品的阶段,不做继续介绍。这里在登录时出现了assign database source错误,原因是WebShpere对版本没有打补丁。inistialize 数据库后等录PD时出错, 是因为要改为DSSecurity Provider。
    DSSecurity Provider:
        User Registries: select “custom”
        Server user ID: admin
        Server user password: admin
        Custom Registry Classname: com.datasweep.common.security.websphere.AppUserRegistry
       Custom Properties:
          1) Name = com.datasweep.common.security.websphere.db.password
          Value = <encrypted value for database password>
          注:这里的密码是加密后的密码,密码:123456,加密后为58 98 -23 51 -84 -18。获得方法:命令提示符:<path_to_DSDecurityProvider.jar file> java -classpath DSSecurityProvider.jar com.datasweep.common.security.websphere.EncryptionUtils 123456
          2) Name = com.datasweep.common.security.websphere.db.url
          Value (SQL server) = jdbc:sqlserver://<host_name>:<port_number>; databaseName=<production_database>
          注:value:jdbc:sqlserver://119.119.117.86:1433;databaseName=fred71test
          3) Name = com.datasweep.common.security.websphere.db.username
          Value = <username>
          where <username> is the database username.(sa)         
          4) Name = com.datasweep.common.security.websphere.logging.dir
          Value = <logging_directory>
          where <logging_directory> can be anywhere on your application server.
          5) Name = com.datasweep.common.security.websphere.logging.level
          Value = 5
       save and reset the serve, 然后ok!

    通过这次配置,我感觉自己好搓,一个配置搞了5天!不是说开发和测试之间的差别有多大,而是知道以现在的能力和状态,根本应付不了更多的挑战。

    I am a little tied, but there is no time to have a rest. May I should not think more, forget the future, just do your job.