Set Up on Linux
Follow these steps to configure your environment variables on a Linux system.
-
Open a terminal window.
-
Edit your shell configuration file (for example,
.bashrcor.zshrc, depending on your shell).nano ~/.bashrc -
Add the environment variables to the end of the file.
export BN_AGENT_NAME="agent-linux-01"
export BN_AGENT_PORT=9500
export BN_AGENT_SERVER_URL="http://192.168.1.100:8080"
export BN_AGENT_SELFURL="http://192.168.1.52:9500"
export BN_AGENT_DATA_DIR="/var/lib/buildninja/agent/data" -
Save and exit the file. Press Ctrl + X, then Y, and press Enter to confirm.
-
Apply the changes to your current shell session.
source ~/.bashrc