명령행에서 웹 서버 플러그인 구성 파일 병합

pluginUtility 명령을 사용하여 자동으로 생성된 플러그인 구성 파일을 수집하고 병합할 수 있습니다.

프로시저

  1. 병합하려는 plugin-cfg.xml 파일을 병합 도구에서 사용할 수 있게 하십시오.

    다른 디렉토리에 파일을 두거나 파일의 이름을 변경하고 공통 디렉토리로 복사할 수 있습니다. 파일의 이름을 변경하는 경우, plugin-cfg를 파일 이름의 일부로 유지해야 병합 도구에서 해당 파일을 찾을 수 있습니다. 예를 들어, 파일 이름으로 server1plugin-cfg.xml을 사용하십시오.

  2. 명령행을 열고 디렉토리를 server_install_root/bin 디렉토리로 변경하십시오.
  3. pluginUtility 명령행 도구의 merge 조치를 실행하십시오. 이는 bin 디렉토리에서 사용할 수 있습니다.

    --sourcePath 옵션을 사용하여 병합할 파일의 쉼표로 구분한 목록을 지정하거나 병합할 모든 파일을 포함하는 단일 디렉토리를 지정하십시오. 예를 들어, 병합할 plugin-cfg.xml 파일이 두 개의 다른 디렉토리에 있는 경우 쉼표로 구분된 목록을 사용하십시오.

    pluginUtility merge --sourcePath=C:/plugins/pluginA.jar,C:/other/pluginC.jar

    병합할 plugin-cfg.xml 파일이 하나의 디렉토리에 있는 경우 디렉토리 이름을 사용하십시오.

    pluginUtility merge --sourcePath=C:/plugins
    팁: 파일 경로에 공백이 있는 경우에는 큰따옴표(") 안에 넣어야 합니다. 예를 들어, 파일 경로가 C:\Program Files\myFiles인 경우 명령에서 --sourcePath="C:/Program Files/myFiles"를 지정하십시오.

    도구는 지정된 플러그인 구성 파일을 하나의 파일로 병합합니다. 기본적으로, 파일은 merged-plugin.xml이라는 이름으로 현재 디렉토리에 작성됩니다. 선택적으로, --targetPath 옵션을 사용하여 병합된 파일을 쓸 디렉토리나 파일 중 하나를 지정할 수 있습니다. 다음 예제에서는 대상 디렉토리와 파일 이름을 지정합니다.

    pluginUtility merge --targetPath=C:/targetDir/myMergedPluginCfg.xml

예

하나의 디렉토리에 다음 두 개의 플러그인 구성 파일이 포함되어 있습니다.

  • server_install_root/usr/plugin/serverA-plugin.xml
  • server_install_root/usr/plugin/serverB-plugin.xml

server_install_root/bin 디렉토리에서 pluginUtility 명령을 실행하십시오. 병합된 파일이 플러그인 구성 파일이 병합될 디렉토리와 동일한 디렉토리에 써지도록 지정하십시오. .

pluginUtility merge --sourcepath=../usr/plugin --targetpath=../usr/plugin

도구는 병합된 플러그인 파일을 작성하고, 다음 메시지를 씁니다.

Merging the plugin files with the pattern *plugin-cfg*.xml from the directory ../usr/plugin. 

The file plugin-cfgA.xml is selected for the merging. 

The file plugin-cfgB.xml is selected for the merging. 

Generating the merged configuration file at ../usr/plugin/merged-plugin-cfg.xml.

Generated the merged configuration file successfully

명령 옵션에 대한 자세한 정보는 pluginUtility 명령의 내용을 참조하십시오.


주제의 유형을 표시하는 아이콘 태스크 주제



시간소인 아이콘 마지막 업데이트 날짜: Friday, 16 September 2016
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-dist&topic=twlp_admin_pluginutility
파일 이름: twlp_admin_pluginutility.html