Configuring daemon mode on z/Linux operating systems
Configuring daemon mode on z/Linux operating systems
Currently, Zowe CLI does not offer a prebuilt daemon that can run on z/Linux operating systems. However, developers can build the daemon binary from source.
To install and build the daemon binary on z/Linux systems:
-
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. Open a command line window and 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/zowex
directory:cargo build —-release
After the command completes successfully, the Zowe daemon binary is a file named
zowe
that can be found in thetarget/release
directory. -
Copy the binary to another location on the system and add that location to your PATH.
-
To allow others to use the same binary, modify the file permissions in the binary:
chmod <permission OCTAL> zowe
chown <user>:<group> zoweThe 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 zowe
You can delete the .zowe-cli
folder 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.