mod_wsgi virtualenv

apache mod_wsgi 에서 virtualenv 을(를) 사용하기 위한 .wsgi Code

참고 url : http://flask.pocoo.org/docs/0.12/deploying/mod_wsgi/#working-with-virtual-environments


# python 2.x
activate_this = '/path/to/env/bin/activate_this.py'
execfile(activate_this, dict(__file__=activate_this))
# python 3
activate_this = '/path/to/env/bin/activate_this.py'
with open(activate_this) as file_:
    exec(file_.read(), dict(__file__=activate_this))

Windows Time

참고 1 : https://support.microsoft.com/ko-kr/help/2385818/windows-time-service-doesn-t-start-automatically-on-a-workgroup-comput
참고 2 : http://support.microsoft.com/kb/251192/ko

  • 트리거 확인
    > sc qtriggerinfo w32time
  • 트리거 변경
    > sc triggerinfo w32time start/networkon stop/networkoff
  • 트리거 삭제

    > sc triggerinfo w32time delete
  • 서비스 유형 변경

    > sc config w32time start= auto

    auto = 자동
    demand = 수동
    disabled = 사용안함

  • win32time 설정 확인

    > w32tm /query /configuration
  • 서버 기능 활성화
    reg add "HKLM\SYSTEM\CurrentControlSet\services\W32Time\TimeProviders\NtpServer" /v "Enabled" /t "REG_DWORD" /d "1" /f