Quickly install Caddy Web servers and simple application scripts

Source: Internet
Author: User
Tags html page centos free ssl free ssl certificate ssl certificate

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.