How to Check If a Port Is Occupied in Okta
Last Updated:
Overview
Applies To
- Okta Access Gateway
- Okta Classic Engine
Solution
Sometimes, a specific service/process cannot be started if the needed port is occupied. Through shell, the ss command can be used to check which service uses a specific port:
- Command:
sudo ss -anp | grep <port>
- Example:
[0] oag-local@oag.support.lab;/home/oag-local# sudo ss -anp | grep :443
tcp LISTEN 0 511 0.0.0.0:443 0.0.0.0:* users:(("nginx",pid=2902,fd=12),("nginx",pid=2901,fd=12))
