Sun Java System Web Server 7.0 Update 2 CLI Reference Manual
  Искать только в названиях книг
Загрузить это руководство в формате PDF (2046 КБ)

create-config(1)

NAME | Synopsis | Description | Options | Operands | Examples | Exit Status | See Also

NAME

    create-config – creates a new configuration

Synopsis

    create-config <connect_options>[--echo|-e] [--no-prompt|-Q] 
    [--verbose|-v] [--document-root|-d serverdocroot] 
    [--jdk-home|-j JAVA_HOME] [--server-user|-r userid] 
    [--ip|-I ip] [--platform|-m 32|64]
     --http-port|-t port --server-name|-s servername 
    config-name
    

Description

    Use this command to create a new configuration. A configuration is a set of files and virtual servers that determine the data that Web Server serves. This command creates the new server configuration at install_dir/admin-server/config-store.


    Caution – Caution –

    Do not edit any file under the config-store directory. The files under this directory are created by Sun Java System Web Server for internal use.


Options

    For connect_options description, see help(1).

    --echo|-e

    Specify this option to print this command on the standard output before executing. This option also prints the default value for all the non-mandatory options that you do not provide in the command.

    --no-prompt|-Q

    If you specify this option, wadm will not prompt you for passwords while executing this command. Use this option if you have defined all passwords in a password file and specified the file using the --password-file connect_option.

    --verbose|-v

    Specify this option to display a verbose output.

    --document-root|-d

    Specify the path where all content such as HTML pages, images, and web applications are available. The default value is ../docs.

    --jdk-home|-j

    Specify the path of the Java Development Kit (JDK) home.

    --ip|-I

    Specify the IP for the default listener.

    --platform|-m

    Specify the platform type that you want to install. The value can be 32 or 64. The default value is 32.

    --server-user|-r

    Specify the user ID of a server user. For example, root. This option is mandatory if the administration server is on UNIX.

    --http-port|-t

    Specify the port for the default listener.

    --server-name|-s

    Specify the host name of the server.

Operands

    config-name

    Specify the name of the configuration you want to create.

Examples


    wadm create-config --user=admin --password-file=../admin.passwd 
    --host=serverhost --port=8989 --ssl=true --no-prompt --rcfile=null 
    --platform=32 --http-port=18022 --document-root=../docs 
    --jdk-home=jdk_home --server-user=user 
    --server-name=config1.com config1
    

Exit Status

    The following exit values are returned:

    0

    command executed successfully

    >0

    error in executing the command

See Also

SJS Web Server  Last Revised March 2007

NAME | Synopsis | Description | Options | Operands | Examples | Exit Status | See Also