This guide installs NSQ and starts the core services (nsqd, nsqlookupd, nsqadmin).
NSQ is distributed as a binary tarball. Download the latest release:
wget https://github.com/nsqio/nsq/releases/download/v1.3.0/nsq-1.3.0.linux-amd64.go1.20.tar.gz
tar -xzf nsq-1.3.0.linux-amd64.go1.20.tar.gz
cd nsq-1.3.0.linux-amd64.go1.20
sudo mkdir -p /opt/nsq
sudo cp bin/* /opt/nsq/
/opt/nsq/nsqlookupd &
/opt/nsq/nsqd --lookupd-tcp-address=127.0.0.1:4160 &
/opt/nsq/nsqadmin --lookupd-http-address=127.0.0.1:4161 &
Check that NSQ is running:
# Test nsqd
curl http://localhost:4151/ping
# Test nsqlookupd
curl http://localhost:4161/ping
# Test nsqadmin
curl http://localhost:4171/ping
Access the web UI at http://localhost:4171.
See NSQ Configuration for configuration guidance.
Any questions?
Feel free to contact us. Find all contact information on our contact page.
Prefer automation? See NSQ Ansible Setup for an example playbook.
Prefer containers? See NSQ Docker Setup.
See NSQ Security for hardening guidance.