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:

  1. Download the STUN server package from a reliable source. One popular STUN server is stunserver.

    wget https://github.com/jselbie/stunserver/archive/master.zip
    
  2. Unzip the downloaded package.

    unzip master.zip
    
  3. Navigate to the extracted directory.

    cd stunserver-master
    
  4. Install the required dependencies.

    sudo apt install cmake libssl-dev
    
  5. Generate the build files and compile the STUN server.

    cmake .
    make
    
  6. Install the STUN server.

    sudo make install
    
  7. Create a systemd service unit file for the STUN server.

    sudo nano /etc/systemd/system/stun-server.service
    
  8. 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
    
  9. 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

ubuntu 204 安装STUNfailed to start stun-serverserviceunit stun-serverservice mot found

原文地址: https://www.cveoy.top/t/topic/hRqg 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录