Configure daemon mode on z/Linux operating systems
Configure daemon mode on z/Linux operating systems
Currently, Zowe does not offer a prebuilt daemon that can run on z/Linux operating systems. However, developers can build the daemon binary from source.
The following steps describe how to install and build the daemon binary on z/Linux systems and the technical limitations.
-
Ensure that the z/Linux system can communicate using the Internet.
-
Install Zowe CLI on the z/Linux system.
-
Install the following Linux packages on the z/Linux system:
-
make
-
gcc-c++ (or g++)
-
git
-
Rust
For information about how to install Rust, see the Rust documentation.
-
-
Shallow clone the Zowe CLI Git repository for the version of CLI that you installed. Issue the following command:
git clone https://github.com/zowe/zowe-cli –depth 1 –branch v$(zowe –version) -
Change to the following directory:
zowe-cli/zowex -
Build the daemon binary. Issue the following command from the
zowe-cli/zowexdirectory:cargo build —-releaseAfter the command completes successfully, the Zowe daemon binary is a file named
zowethat can be found in thetarget/releasedirectory. -
Copy the binary to another location on the system and add it to your PATH.
-
(Optional) Modify the file permissions to allow others to use the same binary:
chmod <permission OCTAL> zowe
chown <user>:<group> zoweExample: The following example illustrates the command to allow all users to run the Zowe binary. However, only the user that created the binary can overwrite the binary.
chmod 755 zoweNote: You can delete the
.zowe-clifolder that was created in Step 4 after the binary builds successfully. The Zowe daemon commands will not function, and the daemon will need to be rebuilt for all new versions of Zowe CLI.