GithubHelp home page GithubHelp logo

bobzhen / centos7-nginx-passenger-systemd Goto Github PK

View Code? Open in Web Editor NEW

This project forked from asciant/centos7-nginx-passenger-systemd

0.0 0.0 0.0 140 KB

CentOS 7 systemd (systemctl) file to use with nginx and Phusion Passenger

centos7-nginx-passenger-systemd's Introduction

CentOS7-nginx-passenger-systemd

CentOS 7 systemd (systemctl) file to use with nginx and Phusion Passenger

Can be used on CentOS 7 after compiling nginx through the passenger-install-nginx-module installer.

Save file to:

/lib/systemd/system/nginx.service

Use commands like:

sudo systemctl start nginx.service
sudo systemctl enable nginx.service

Status:

nginx.service - The nginx HTTP and reverse proxy server
   Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled)
   Active: active (running) since Sun 2014-08-24 16:55:36 EST; 22min ago
 Main PID: 2745 (nginx)
   CGroup: /system.slice/nginx.service
           ├─2727 PassengerWatchdog
           ├─2730 PassengerHelperAgent
           ├─2735 PassengerLoggingAgent
           ├─2745 nginx: master process /opt/nginx/sbin/nginx
           └─2747 nginx: worker process

Aug 24 16:55:36 vps.mydomain.com nginx[2706]: nginx: the configuration file /opt/nginx/conf/nginx.conf syntax is ok
Aug 24 16:55:36 vps.mydomain.com nginx[2706]: nginx: configuration file /opt/nginx/conf/nginx.conf test is successful
Aug 24 16:55:36 vps.mydomain.com systemd[1]: Failed to read PID from file /opt/nginx/logs/nginx.pid: Invalid argument
Aug 24 16:55:36 vps.mydomain.com systemd[1]: Started The nginx HTTP and reverse proxy server.

centos7-nginx-passenger-systemd's People

Contributors

asciant avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.