Mac
- Connecting to VNC Server from a Mac computer
- kex_exchange_identification: read: Connection reset by peer
To list all packages installed with brew
1 |
brew list |
To see if a specific package installed, run
1 |
brew list | grep package_name |
List open ports
1 2 3 4 5 6 7 8 9 |
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
1 |
sudo apachectl stop |
Disable Apache from starting on boot
1 |
sudo launchctl unload /System/Library/LaunchDaemons/org.apache.httpd.plist |
Or
1 |
System-Preferences > Users > Select your user > Start-Objects |