Mac

To list all packages installed with brew

brew list

To see if a specific package installed, run

brew list | grep package_name

List open ports

netstat -apv TCP
netstat -a | grep -i "listen"
netstat -Waltn | grep LISTEN
netstat -Waltn | grep tcp
netstat -anp tcp
sudo lsof  -n -P | grep LISTEN
sudp lsof -iTCP -sTCP:LISTEN
sudo netstat -tulpn
nmap localhost

Restart apache2

sudo apachectl stop

Disable Apache from starting on boot

sudo launchctl unload /System/Library/LaunchDaemons/org.apache.httpd.plist

Or

System-Preferences > Users > Select your user > Start-Objects
Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *