mirror of
https://github.com/EasyTier/easytier.github.io.git
synced 2025-05-19 10:27:06 +00:00
851 B
851 B
Install as a macOS Service
Download and install serviceman.
Open Terminal and run the following commands to register the service:
# Register the easytier service using a configuration file
sudo serviceman add -name easytier -system \
--workdir /var/log/easytier \
-groupname wheel -username root \
-cap-net-bind \
-- easytier-core -c ~/.config/easytier.toml
# Register the easytier service without using a configuration file
sudo serviceman add -name easytier -system \
--workdir /var/log/easytier \
-groupname wheel -username root \
-cap-net-bind \
-- easytier-core --ipv4 x.x.x.x --network-name xxx --network-secret yyy --peers tcp://peer_host:11010
Start the easytier service:
sudo serviceman start easytier
Stop the easytier service:
sudo serviceman stop easytier