server for web
1.0.0
一次性全自動殼腳本以安裝所有必需的軟件,以在Ubuntu 18.04 LTS上運行任何PHP框架。創建用戶,安裝UFW,NGINX(或Apache),PHP,Nodejs/Yarn,Mariadb/MySQL,PostgreSql,Certbot(讓我們加密),Redis,Memcached,Beanstalkd,beanstalkd,fail2ban,mosh。可選參數可用。
除了說明之外,此腳本有些事情(默認情況下):
ncdu , awscli , whois , httpie , mc , speedtest , micro , mosh要更好地選擇要安裝的內容,請檢查參數部分
curl或wget (除非您克隆回購)沒有新服務器,腳本可能會要求替換文件的內容。從不推薦。
該腳本是通過在終端中運行以下命令之一來安裝的。您可以通過curl或wget通過命令行安裝此操作。
最後,您將收到一個帶有所有密碼的報告。保持安全。
bash -c " $( curl -fsSL https://git.io/Jv9a6 ) " bash -c " $( wget -qO- https://git.io/Jv9a6 ) " 從您尚不知道的項目中檢查安裝腳本是一個好主意。您可以通過首先下載安裝腳本,查看它來做到這一點,使一切看起來正常,然後運行它:
curl -Lo install.sh https://raw.githubusercontent.com/insign/server-for-laravel/master/install.sh
bash install.sh-u|--user= - 設置新用戶名。默認值:laravel-p|--pass= - 設置新用戶密碼。默認值是隨機的(在末尾顯示)--name= - 設置您的名字。默認值為DevOps--email= - 設置電子郵件。默認值是無@none--dont-create-new-user不要創建新用戶(不建議)--keep-existing-user如果存在,請保留存在的用戶--skip-swap跳過創建swapfile(除非已經存在,否則不建議使用)--swap-size將MB設置為交換文件大小。默認值為2048(2GB)--skip-updates - 跳過更新併升級系統(不建議)--no-omz不要安裝OH-MY-ZSH框架(不建議)--no-mosh安裝MOSH(SSH替代)--no-ufw不要安裝或配置UFW防火牆(不建議)--prefer-apache安裝Apache Server(並且不要安裝或配置NGINX)--no-nginx不要安裝或配置nginx--no-php不要安裝或配置PHP--no-node - 不要安裝或配置紗線/節點/npm--no-mysql不要安裝或配置mysql(實際上MariaiaDB)--my-pass-root= - 設置MySQL root密碼。默認值是隨機的(在末尾顯示)--my-pass-user= - 設置MySQL用戶密碼。默認值是隨機的(在末尾顯示)--no-postgres不要安裝或配置PostgreSQL--pg-pass= - 設置系統用戶“ Postgres”密碼。默認值是隨機的(在末尾顯示)--pg-pass-root= - 設置PG Postgres用戶密碼。默認值是隨機的(在末尾顯示)--pg-pass-user= - 設置PG用戶密碼。默認值是隨機的(在末尾顯示)--no-supervisor - 不要安裝或配置主管守護程序--no-certbot不要安裝或配置CERTBOT(讓我們加密)--no-redis不要安裝或配置redis服務器--redis-pass設置REDIS主密碼。默認值是隨機的(在末尾顯示)--no-memcached - 不要安裝或配置Memcached--no-beanstalkd不安裝或配置beanstalkd--key-only= - 放在這裡(帶引號)如果您想使用密碼禁用登錄名,則您的個人ssh pubkey。警告:請務必知道您在做什麼。--reboot - 在腳本執行末尾重新啟動系統。通常不應該使用。--human - 如果有人類等待結束。然後進入新終端。 ssh [email protected] " bash -c "$ (curl -fsSL https://git.io/Jv9a6) " "" --reboot --key-only= " $( cat ~ /.ssh/id_rsa.pub ) " "在上述情況下,可以安全使用
--reboot參數。
bash -c " $( curl -fsSL https://git.io/Jv9a6 ) " " " --no-mysql --no-postgres --no-redis --no-memcached --no-beanstalkdUFW不配置為允許遠程端口到DB或緩存。您應該更喜歡私人網絡。
bash -c " $( curl -fsSL https://git.io/Jv9a6 ) " " " --no-nginx --no-php --no-postgres --no-node --no-certbot --no-redis --no-memcached --no-beanstalkdbash -c " $( curl -fsSL https://git.io/Jv9a6 ) " " " --no-mysql --no-nginx --no-php --no-node --no-certbot --no-redis --no-memcached --no-beanstalkdbash -c " $( curl -fsSL https://git.io/Jv9a6 ) " " " --no-mysql --no-nginx --no-php --no-node --no-postgres --no-certbotfdfind , fzf 不客氣,只需做出一些解釋即可。
根據LGPL-3.0許可。檢查GNU GPL3許可證文件以獲取更多詳細信息。