ubuntu 204 安装STUNfailed to start stun-serverserviceunit stun-serverservice mot found
It seems like the STUN server package or service is not available in the official Ubuntu 20.04 repositories. However, you can manually install a STUN server by following these steps:
-
Download the STUN server package from a reliable source. One popular STUN server is
stunserver.wget https://github.com/jselbie/stunserver/archive/master.zip -
Unzip the downloaded package.
unzip master.zip -
Navigate to the extracted directory.
cd stunserver-master -
Install the required dependencies.
sudo apt install cmake libssl-dev -
Generate the build files and compile the STUN server.
cmake . make -
Install the STUN server.
sudo make install -
Create a systemd service unit file for the STUN server.
sudo nano /etc/systemd/system/stun-server.service -
Add the following content to the file and save it:
[Unit] Description=STUN Server After=network.target [Service] ExecStart=/usr/local/bin/stunserver [Install] WantedBy=multi-user.target -
Enable and start the STUN server service.
sudo systemctl enable stun-server.service sudo systemctl start stun-server.service
Now, the STUN server should be installed and running on your Ubuntu 20.04 system. You can check the status of the service using the command sudo systemctl status stun-server.service
原文地址: https://www.cveoy.top/t/topic/hRqg 著作权归作者所有。请勿转载和采集!