good day

카테고리 없음 2024. 4. 3. 11:12
commander
Posted by 이그제민
l

xampp 아파치 설정

windows 2023. 2. 22. 17:13

httd.conf

 

# 포트 2개 쓰자

Listen 80
Listen 8081

 

DocumentRoot 경로설정1

<Directory 경로설정1>

  

</Directory>

 

httpd-vhosts.conf

<VirtualHost *80 *:8081>
    DocumentRoot "경로설정2"
<Directory "경로설정2">
  AllowOverride None
  Require all granted
</Directory>
</VirtualHost>

'windows' 카테고리의 다른 글

windows php redis 설정  (0) 2023.02.16
ubuntu 22.04 virtual box 설치  (0) 2023.01.30
windows command  (0) 2023.01.25
Posted by 이그제민
l

node server start shell

 

server_start.sh

#!/bin/bash
PROJECT=rise
ENV=$1
SERVERNAME=$2

if [ -z "$1" ]; then
  echo "ENV IS NULL"
  exit 0
fi

if [ -z "$2" ]; then
  echo "SERVERNAME IS NULL"
  exit 0
fi

SERVER_PATH=/root/${PROJECT}_${ENV,,}

forever --uid "${ENV,,}_${SERVERNAME,,}" start -c "node --expose-gc" -a -l "${SERVER_PATH}/logs/forever_${SERVERNAME,,}.log" -w --watchIgnore --sourceDir "${SERVER_PATH}/${SERVERNAME,,}/" index.js

 

 

 

server_stop.sh

#!/bin/bash
PROJECT=rise
ENV=$1
SERVERNAME=$2

if [ -z "$1" ]; then
  echo "ENV IS NULL"
  exit 0
fi

if [ -z "$2" ]; then
  echo "SERVERNAME IS NULL"
  exit 0
fi

forever stop ${ENV,,}_${SERVERNAME,,}

'linux' 카테고리의 다른 글

linux command 1  (0) 2023.01.18
리눅스 기타  (0) 2023.01.17
user 에 sudo 실행기능 추가  (0) 2023.01.12
linux vimrc setting  (0) 2023.01.12
Posted by 이그제민
l