对于IBMi系统上添加的HTTP服务器基于CL方法 [英] CL based method for adding HTTP Servers on IBMi system

查看:142
本文介绍了对于IBMi系统上添加的HTTP服务器基于CL方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有必要制定一个CL脚本来快速部署在一组IBMi系统的Web应用程序。

I have a need to develop a CL script to quickly deploy a web application across a set of IBMi systems.

现在,我把一切都建立在那里我可以创建目录,部署配置(用正确的修改),并从CL脚本都放置文件,但我不能让它自动创建并启动HTTP服务器

Right now, I have everything set up where I can create the directories, deploy the configurations (with the correct modifications) and place the files all from the CL script, but I cannot get it to automatically create and start the HTTP Server.

所有的文件我能找到的要求服务器设置通过for iSeries的接口IBM Web管理。这是pretty太多无用的,如果我想整个系统的自动化。

All of the documentation I can find requires that the servers be set up through the "IBM Web Administration for iSeries interface." Which is pretty much useless if I am trying to automate the entire system.

唯一的CL命令我能找到它们的使用是STRTCPSVR和ENDTCPSVR。然而,似乎没有要到服务器添加到底层系统来启动它一条明路。

The only CL commands I can find which are of use are STRTCPSVR and ENDTCPSVR . However, there does not seem to be a clear way to add the server to the underlying system to start it.

有谁知道CL命令,这是否吗?如果没有,是否有一个对象/成员,我可以编辑这将服务器添加到HTTPA,将其设置为指向已建立的htdocs和CONF目录,然后我可以开始STRTCPSVR它?

Does anyone know of a CL command that does this? If not, is there an object/member I can edit which would add a server to the HTTPA, set it to point to the already set up htdocs and conf directories and then I can start it with STRTCPSVR?

推荐答案

查看的为自动HTTP实例的创建方法创建的Apache服务器实例(QzuiCreateInstance)API

该QzuiCreateInstance()API,用户可以为我的服务器实例创建一个新的IBM®HTTP服务器。

The QzuiCreateInstance() API allows users to create a new IBM® HTTP Server for i server instance.

另外, QUSRSYS / QATMHINSTC 文件包含了每一个配置实例的成员。每个成员都包含在 -apache -d / WWW / INSTANCENAME -f的conf / httpd.conf文件的格式的条目一个记录。您可以创建成员,并添加记录不使用API​​。

Also the QUSRSYS/QATMHINSTC file contains a member for every configured instance. Each member has one record that contains an entry in the format of -apache -d /www/instancename -f conf/httpd.conf. You may be able to create members and add the record without using the API.

这篇关于对于IBMi系统上添加的HTTP服务器基于CL方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆