Nginx/Passenger: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
| Line 104: | Line 104: | ||
lxc delete passenger/passenger:6.1.2 || true | lxc delete passenger/passenger:6.1.2 || true | ||
cat <<' | cat <<'INI' | \ | ||
lxc exec passenger -- bash | lxc exec passenger -- bash | ||
cat <<' | cat <<'EXE' | sudo bash | ||
apt-get update;echo | apt-get update;echo | ||
apt-get install -y apt-transport-https ca-certificates gnupg build-essential | apt-get install -y apt-transport-https ca-certificates gnupg build-essential | ||
apt-get install -y software-properties-common git curl file procps libfuse2 | apt-get install -y software-properties-common git curl file procps libfuse2 | ||
apt-get clean;sleep 5 | apt-get clean;sleep 5 | ||
EXE | |||
curl -fsSL https://oss-binaries.phusionpassenger.com/auto-software-signing-gpg-key-2025.txt \ | curl -fsSL https://oss-binaries.phusionpassenger.com/auto-software-signing-gpg-key-2025.txt \ | ||
| sudo tee /etc/apt/keyrings/phusion.asc >/dev/null | | sudo tee /etc/apt/keyrings/phusion.asc >/dev/null | ||
cat << | cat << APT | sudo tee /etc/apt/sources.list.d/passenger.list >/dev/null | ||
deb [arch=$(dpkg --print-architecture)\ | deb [arch=$(dpkg --print-architecture)\ | ||
signed-by=/etc/apt/keyrings/phusion.asc]\ | signed-by=/etc/apt/keyrings/phusion.asc]\ | ||
https://oss-binaries.phusionpassenger.com/apt/passenger noble main | https://oss-binaries.phusionpassenger.com/apt/passenger noble main | ||
APT | |||
cat <<' | cat <<'EXE' | sudo bash | ||
apt-get update;echo | apt-get update;echo | ||
apt-get install -y nginx libnginx-mod-http-passenger | apt-get install -y nginx libnginx-mod-http-passenger | ||
| Line 128: | Line 128: | ||
passenger version | passenger version | ||
apt-get clean | apt-get clean | ||
EXE | EXE | ||
INI | |||
lxc snapshot passenger passenger:6.1.2 && sleep 1 | lxc snapshot passenger passenger:6.1.2 && sleep 1 | ||
| Line 162: | Line 162: | ||
|valign='top' style='width:50%'| | |valign='top' style='width:50%'| | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
cat <<' | cat <<'INI' | \ | ||
lxc exec passenger -- bash | lxc exec passenger -- bash | ||
cat <<' | cat <<'EXE' | sudo bash | ||
if [ ! -f /etc/nginx/modules-enabled/50-mod-http-passenger.conf ]; then | if [ ! -f /etc/nginx/modules-enabled/50-mod-http-passenger.conf ]; then | ||
ln -s /usr/share/nginx/modules-available/mod-http-passenger.load \ | ln -s /usr/share/nginx/modules-available/mod-http-passenger.load \ | ||
| Line 170: | Line 170: | ||
fi | fi | ||
ls -lah /etc/nginx/conf.d/mod-http-passenger.conf | ls -lah /etc/nginx/conf.d/mod-http-passenger.conf | ||
EXE | EXE | ||
INI | |||
</syntaxhighlight> | </syntaxhighlight> | ||
|valign='top' style='width:50%'| | |valign='top' style='width:50%'| | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
cat <<' | cat <<'INI' | \ | ||
lxc exec passenger -- bash | lxc exec passenger -- bash | ||
cat <<' | cat <<'EXE' | sudo bash | ||
systemctl restart nginx;echo | systemctl restart nginx;echo | ||
passenger-config validate-install --auto;echo | passenger-config validate-install --auto;echo | ||
passenger-memory-stats --no-apache;echo | passenger-memory-stats --no-apache;echo | ||
passenger-config about ruby-command | passenger-config about ruby-command | ||
EXE | |||
INI | |||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
Revision as of 23:25, 6 February 2026
cat <<'EXE' | sudo bash
apt-get update;echo
apt-get install -y nginx
nginx -v;echo ;apt-get clean
EXE
|
|||
| |||
Passenger » Why
|
Passenger » Why | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||
Passenger » How
|
Passenger » How | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
References
|
References | ||
|---|---|---|