macOS Server Installation
Installation using Package Installer
Section titled “Installation using Package Installer”Installing EdgeIQ on macOS (Apple Silicon and Intel) is straightforward using the provided package installer (.pkg
file).
-
Download the Installer
Visit the downloads page to get the latest macOS installer (.pkg
file). -
Run the Installer
Double-click the downloaded.pkg
file and follow the installation prompts. The installer will place theedgeiq
binary in/usr/local/bin
. -
Verify Installation
Open Terminal. The installer automatically adds/usr/local/bin
to your system’sPATH
. You should be able to run theedgeiq
command directly:Terminal window edgeiq --versionIf the command is not found, ensure
/usr/local/bin
is included in your$PATH
environment variable. You might need to restart your terminal session or source your shell profile file (e.g.,~/.zshrc
or~/.bash_profile
).Terminal window echo $PATH# If /usr/local/bin is missing, add it to your shell profile# For zsh: echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.zshrc && source ~/.zshrc# For bash: echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bash_profile && source ~/.bash_profile -
Allow Execution (If Necessary)
Depending on your macOS security settings, you might need to grant permission for the binary to run. If you encounter a security warning, go to System Settings → Privacy & Security and allow the application.
Server Configuration and Startup
Section titled “Server Configuration and Startup”After installing the edgeiq
binary, configure and start the server.
Create a Data Directory
Section titled “Create a Data Directory”The Server requires a data directory to store Jobs, logs, and metric data.
Create a directory for EdgeIQ data:
mkdir -p ~/Library/Application\ Support/EdgeIQ
Configure Environment Variables
Section titled “Configure Environment Variables”The Server can be configured through environment variables. Create a shell script to set these variables, ensuring you have write permissions or use sudo
if necessary:
cat > ~/edgeiq-server.env << EOFEDGEIQ_STAGING_DIR=~/Library/Application\ Support/EdgeIQEDGEIQ_LICENSE_EULA_ACCEPT=yesEDGEIQ_ADMIN_INIT_PASSWORD=ChangeMeVerySoonEOF
We’ve added 2 additional environment variables:
EDGEIQ_LICENSE_EULA_ACCEPT=yes
prevents the one-time prompt for accepting the EULA.EDGEIQ_ADMIN_INIT_PASSWORD
provides an initialpassword
for the Serveradmin
user.
Upon first initialization of the Server user database, if EDGEIQ_ADMIN_INIT_PASSWORD
is unset, a random password
will be generated in the Server STDOUT
output.
Start the Server
Section titled “Start the Server”To start the server with the environment variables:
source ~/edgeiq-server.envedgeiq run server
The Server will start and listen on EDGEIQ_BIND_ADDRESS
(default 127.0.0.1:3000
).
The terminal will display the admin password (either the one you set or a randomly generated one) upon successful startup. Use this to log in as admin
via your web browser at http://localhost:3000
.
Resetting the Administrator Password
Section titled “Resetting the Administrator Password”The admin
user password may be reset upon relaunching Edge IQ using edgeiq run server --reset-admin-password
More Information
Section titled “More Information”For more details, visit the full EdgeIQ Documentation.