> To shut down the web server, run lsof -i :19421 to get the PID of the process, then do kill -9 [process number]. Then you can delete the ~/.zoomus directory to remove the web server application files.
> To prevent this server from being restored after updates you can execute the following in your terminal:
rm -rf ~/.zoomus
My guess is that if sometime in the future you want to use zoom again, the install will fail until you remove the file ~/.zoom
chmod -x .zoomus/ZoomOpener.app/Contents/MacOS/ZoomOpener
sudo chown -R nobody:nobody .zoomus/ZoomOpener.app
Here's a modified version that deletes the app, removes the LoginItem if it exists, and makes the ~/.zoomus directory unwritable, which achieves the same thing but avoids the nag:
osascript -e 'tell application "System Events" to delete login item "ZoomOpener"'
rm -rf ~/.zoomus/ZoomOpener.app
sudo chown -R nobody:nobody .zoomus
kill -9 $(lsof -i :19421)
"kill" = kill running process
"-9" = kill as forcefully as possible
"$(...)" = command substitution: run the stuff inside the brackets and replace this term with the results (it will be the processes to kill in this case).
"lsof" = list open files (other things like ports and devices count as files on Unix systems)
"-i" = search for internet address
":19421" = local machine, port 19421
I think they're missing a "-t" on lsof, to make it output process IDs only ("terse mode") instead of a human-readable table:
kill -9 $(lsof -t -i :19421)