Quickly install Caddy web server and simple application scripts with one click

888u

Last update at :2024-06-19,Edit by888u

Snail was browsing overseas resource websites at night and saw a script and simple application for quickly installing Caddy Web server with one click, so I planned to compile it in the blog. Caddy is a WEB Service server written in GO language and supports HTTP/2 static web server. Of course, Snail has not studied its function in depth, because after a simple and quick installation, I saw that it supports HTML and other static files. For PHP, we commonly use dynamic interactive environments such as Nginx and Apache, which are somewhat different.

When recording this article, Snail browsed the relevant information about Caddy. There is still relatively little information in mainland China. Maybe you will pay attention to it later or may come into contact with it later. Let’s use this to quickly install Caddy. The WEB server methods and actual applications are recorded.

First, Caddy WEB server installation

wget script.yesgig.eu.org/caddy.sh -O – -o /dev/null|bash

This script resource comes from the GitHub resource document (here). After deploying the Linux environment, you can download the caddy.sh file and execute bash caddy.sh to run the installation. Or we can execute the above document directly.

After executing the above installation script, we can see that the relevant caddy commands are executed according to the prompts. Here I first execute caddy install to install the WEB environment, and then caddy start. During this process, I was asked to bind a domain name. I entered a resolved domain name here, and Let\\’s Encrypt free SSL certificate was automatically installed.

Second, check whether Caddy is installed

Here Snail opens the bound domain name, and you can see the interface as shown above. The SSL certificate is installed for us by default, and when you see the default page, we can go to the corresponding directory to modify the HTML page. Such a simple The static WEB website environment is now configured.

Third, general Caddy command usage

caddy start – start

caddy stop – pause

caddy restart – restart

caddy status – check status

caddy install – fresh installation

caddy service – execute command tasks

caddy update – update

caddy delete – uninstall

caddy about – view help

caddy version – check version

To summarize, this is just my first contact with the Caddy WEB service environment snail. When I see this fun thing, I will record it first so that I can learn it later if I encounter in-depth use.

Recommended site searches: jsp space, Hong Kong hosting, how to check domain name registration number, Korean server rental, Korean cn2 server, Ministry of Industry and Information Technology website registration system, cloud server rental platform, free ip proxy server, US host purchase , Hong Kong high defense server

Quickly install Caddy web server and simple application scripts with one click

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码