Read Me > Install
Make sure you removed previous executable:
sudo rm -f /usr/local/bin/rts #old path
sudo rm -f /usr/bin/rts
Download binary for you platform from releases page. There is a mirror for downloads on Google Drive.
sudo cp rts /usr/local/bin
sudo chmod 777 /usr/local/bin/rts
Open Rust TLS Server Homebrew formula for details.
sudo cp rts /usr/bin
sudo chmod 777 /usr/bin/rts
sudo dpkg -i --force-overwrite rts.deb
Replace YOUR_VERSION with version you downloaded.
sudo rpm -i --force rts-YOUR_VERSION.rpm
Open Rust TLS Server Portage ebuild for details.
Open Rust TLS Server Pacman package for details.
Copy executable to C:\WINDOWS\system32 folder.
sudo cp rts /usr/bin
sudo chmod 777 /usr/bin/rts
sudo dpkg -i --force-overwrite rts.deb
To check installation execute the following code in the terminal:
$ rts
You will see similar output:
Rust TLS Server
Version: YOUR_VERSION
Authors: Bohdan Tsap [email protected]
Repository: https://github.com/bohdaq/rust-web-server
Desciption: rust-tls-server (rts) is a static content web-server written in Rust
Rust Version: RUST_VERSION
... Hello, rust-web-server is up and running: https://127.0.0.1:7878
Open browser, go to https://127.0.0.1:7878, you'll see default page.
Go back to terminal, press Ctrl + C (or CMD + C) to stop server.