The first to see Caddy Web gogs official website download page, the page under the Signature Caddy Web, I would like to gogs the author to inquire about some, understand the foundation. This time, log the Caddy Web installation operation.
One, Caddy Web server Installation
wget Script.yesgig.eu.org/caddy.sh-o--o/dev/null|bash
This script resource is from the GitHub resource document (here), and after you have deployed the Linux environment, you can then perform a bash caddy.sh run installation after you download the caddy.sh file. Or we execute the above document directly.
[root@centos-512mb-sfo1-01 ~]# wget script.yesgig.eu.org/caddy.sh-o--o/dev/null|bash
Removing old Caddy Script
Setting Up Caddy
Done. Run ' caddy ' to use caddy
[Root@centos-512mb-sfo1-01 ~]# Caddy Install
Downloading Caddy Web Server for (64bit) ... Done
Extracting caddy Web Server to/opt/caddyserver ... Done
Installing required PHP Files...which:no Apt-get in (/usr/local/mariadb/bin:/usr/local/sbin:/usr/local/bin:/sbin:/ Bin:/usr/sbin:/usr/bin:/root/bin)
Done
Installed
Enter your domain name
seperated by comma
Domain name:caddy.janecc.com
Enter your email for automated SSL
Email:
Caddyfile created
Index.html created
Done. Caddy has been installed
Run Caddy start to start caddy Web Server
After executing the installation script above, we can see the relevant Caddy command followed by the prompts, where I first perform the Caddy install install the Web environment, and then caddy start. In this process, I am required to bind a domain name, I am here to enter an already resolved domain name, but also automatically install let's encrypt free SSL certificate.
Second, check caddy installation or not
Here to open the binding domain, you can see the above diagram interface, the default for us to install the SSL certificate, and see the default page, we can go to the corresponding directory to modify the HTML page, such a simple static web site environment is configured complete.
Third, General Caddy command usage
Caddy Start-Start
Caddy Stop-Pause
Caddy Restart-reboot
Caddy Status-Check state
Caddy Install-New Installation
Caddy Service-Perform command tasks
Caddy Update-Updates
Caddy Delete-Uninstall
Caddy about-View Help
Caddy Version-check versions
To sum up, about the Caddy Web service environment is just the first contact, see this fun things first recorded, so that if you encounter in-depth use of time to learn.