1. nginx 컴 파일 로 생 성 된 Makefile

729 단어
nginx 분기
tengine-2.1.12
configure 에서 생 성 된 Makefile
default:        build

clean:
        rm -rf Makefile objs

build:
        $(MAKE) -f objs/Makefile
        $(MAKE) -f objs/Makefile manpage

test:
        $(MAKE) -f objs/Makefile test

install:
        $(MAKE) -f objs/Makefile install

dso_install:
        $(MAKE) -f objs/Makefile dso_install

upgrade:
        /usr/local/nginx/sbin/nginx -t

        kill -USR2 `cat /usr/local/nginx/logs/nginx.pid`
        sleep 1
        test -f /usr/local/nginx/logs/nginx.pid.oldbin

        kill -QUIT `cat /usr/local/nginx/logs/nginx.pid.oldbin`

우아 한 것 은 nginx 의 업그레이드 입 니 다. 먼저 USR 2 신 호 를 보 내 고 새로운 pid 파일 을 만 들 고 마지막 으로 오래된 pid 파일 을 삭제 합 니 다.

좋은 웹페이지 즐겨찾기