macos system launch config

MacOS Config options MacOS boot service is mainly configured via three ways: 1.  the system preferences -> Users & Groups -> Login items 2. /System/Library/StartupItems and /Library/StartupItems/ 3. launchd system initialization process configuration. The first two are relatively simple, we will focus mainly on the third more complex launchd configuration optimization. launchd is a key…

React Native on a machine 8081 occupied

Today, as i was setting up a basic React native app on my company’s laptop, I cannot run the RN packager server which is default to port 8081​. I ran the lsof -i :8081 but get nothing. Turns out I have to run it with sudo because the app that uses this port is the Corporate…