Beego is an HTTP framework for rapid development of go applications. It can be used for rapid development of various applications such as API, web and back-end services. It is a restful framework. Its main design inspiration comes from tornado, Sinatra and flask, but it is a framework designed by combining some features of go itself (interface, struct embedding, etc.).
Today we introduce a faster installation method, which is to install beego with one click of urlos. What is urlos?
Urlos is a virtual machine management software. Based on docker container technology, it packs and runs applications, including advanced functions such as load balancing and failover. It can automatically identify machine and cloud application failures and transfer Cloud Applications to available machines. Single machine failure does not affect business development.
You can install urlos using the following command:
curl -LO www.urlos.com/iu && sh iu
We will not discuss how to use urlos here. Please search by yourself if you are interested. Let’s see how to quickly install beego in urlos:
1. Log in to the background of the urlos system, search for “beego” in the application market, and then click the Install button
2. Fill in the service name, select the running node, service port, and select the intelligent deployment
3. Fill in the domain name: www.aaa.com (fill in your own domain name here)
4. Set SFTP
Select “upload and download” tab, open SFTP upload and download and fill in SFTP port and SFTP password;
Then click the “submit” button and wait for the deployment to be completed;
After the deployment, the website has run successfully!
Upload website code
Log in with SSH or SFTP Client.
The root directory of the website is / mounts / beego001 / data / www / Web (since the service name of this tutorial is beego001, the actual operation is based on the service name you filled inAuto create）
If you want to update the website, upload the website file toSite rootAfter that, redeploy it: