From 6375595b2ded25e0fdccb01729ac8556c187a298 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=92=8B=E5=B0=8F=E9=99=8C?= Date: Sat, 21 Dec 2024 22:48:50 +0800 Subject: [PATCH] 1111 --- install.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 7f7fe4b..41b1d60 100644 --- a/install.sh +++ b/install.sh @@ -56,7 +56,8 @@ if command -v node &> /dev/null; then # Run the Node.js proxy service echo "Running Node.js proxy service..." - node index.js + nohup node index.js > /dev/null 2>&1 & + echo "Node.js proxy service running in the background. You can check the logs with 'tail -f nohup.out'." else echo "Node.js is not installed. Proceeding with swoole-cli setup." @@ -104,5 +105,6 @@ else # Run the PHP indexer echo "Running PHP indexer..." - ./swoole-cli ./index.php + nohup ./swoole-cli ./index.php > /dev/null 2>&1 & + echo "PHP indexer running in the background. You can check the logs with 'tail -f nohup.out'." fi