caddy start - Start Caddy Web Server.caddy stop - Stop/Shutdown Caddy Web Server.caddy reload - Reload Caddy Web Server.caddy restart - Restart Caddy Web Server.caddy status - Check Caddy Web Server is running or not or just run 'caddy'.caddy install - Install Caddy Web Server on fresh OS.caddy install-naked - Install only Caddy Web Server and no prompt.caddy edit - Edit Caddyfile using nano or default editor.caddy service - Make Caddy Web Server start on boot (upstart/systemd). Not required because we install service on install.caddy update - Update Caddy Web Server.caddy delete - Uninstall Caddy Web Server and data. We would prompt you if you want to keep data.caddy version - Print version information.caddy about - About Caddy Web Server Installer.
輸入caddy install安裝Caddy與PHP
1234567
[root@ ~]# caddy install Downloading Caddy Web Server v1.0.4 for 64bit... Extracting Caddy Web Server to /opt/caddyserver... [DONE] Are you gonna run php site? [y/N]: y
Installing required php files... [DONE]Installed 'php-fpm php-cli php-curl curl sudo'Fixing php sock issue... [DONE]Creating user 'caddy'... [DONE]Binding port using setcap... [DONE]Creating startup service... DONECreated symlink from /etc/systemd/system/multi-user.target.wants/caddy.service to /etc/systemd/system/caddy.service.Enter your domain nameSeperated by commaDomain name:Enter your email for automated sslEmail:
/etc/Caddyfile createdindex file created/var/caddywww/index.htmlPHP-info file created/var/caddywww/info.phpDone. Caddy has been installed :)Run caddy start to start Caddy Web Server[root@nzZKNJ1000562 ~]#