From 0008f31acd4c79455f406b6f01ec63aab8a77926 Mon Sep 17 00:00:00 2001 From: chiu Date: Sat, 4 Nov 2023 01:55:19 +0000 Subject: [PATCH] install ruby with jemalloc --- install_nginx.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/install_nginx.sh b/install_nginx.sh index b1efdaa..1d663b6 100644 --- a/install_nginx.sh +++ b/install_nginx.sh @@ -162,7 +162,8 @@ if [[ "$@" == *"--install-passenger"* ]];then sudo chown $USER:$USER $HOME -R rvm user gemsets sudo chown $USER:$USER /usr/share/rvm -R - rvm install 2.7.6 --with-openssl-dir="$openssl_dir" + sudo apt install libjemalloc-dev + rvm install 2.7.6 --with-openssl-dir="$openssl_dir" -C --with-jemalloc curl -sSL https://rvm.io/mpapis.asc | sudo gpg --import - curl -sSL https://rvm.io/pkuczynski.asc | sudo gpg --import - rvmsudo rvm get stable && rvm reload && rvmsudo rvm repair all