<divclass="cardback"><DOCUMENT_FRAGMENT><divclass="mw-parser-output"><divclass="thumb tright"><divclass="thumbinner"style="width:152px;"><aclass="image"href="https://pzwiki.wdka.nl/mw-mediadesign/images/thumb/c/c2/Amateur_librarian.jpeg/720px-Amateur_librarian.jpeg"><imgalt=""class="thumbimage"decoding="async"src="https://pzwiki.wdka.nl/mw-mediadesign/images/thumb/c/c2/Amateur_librarian.jpeg/320px-Amateur_librarian.jpeg"></a><divclass="thumbcaption"><divclass="magnify"><aclass="internal"href="File:Amateur_librarian.jpeg.html"title="Enlarge"></a></div>Quote from <i>Why and How to Become an Amateur Librarian</i></div></div></div>
<liclass="toclevel-2"><ahref="#If_nginx_is_compiled_and_installed_from_the_source_code"><spanclass="tocnumber">2.2</span><spanclass="toctext">If nginx is compiled and installed from the source code</span></a></li>
<h1><spanclass="mw-headline"id="nginx_service_file">nginx service file</span><spanclass="mw-editsection"><spanclass="mw-editsection-bracket">[</span><ahref="/mw-mediadesign/index.php?title=User:Simon/Trim4/prototypes/nginx_configuration&action=edit&section=T-2"title="Edit section: ">edit</a><spanclass="mw-editsection-bracket">]</span></span></h1>
<p>To enable, start, stop, or check the status of the nginx web server, a service file is needed. To create one in a systemd Linux distribution, make this file:
<h2><spanclass="mw-headline"id="If_nginx_is_compiled_and_installed_from_the_source_code">If nginx is compiled and installed from the source code</span><spanclass="mw-editsection"><spanclass="mw-editsection-bracket">[</span><ahref="/mw-mediadesign/index.php?title=User:Simon/Trim4/prototypes/nginx_configuration&action=edit&section=T-4"title="Edit section: ">edit</a><spanclass="mw-editsection-bracket">]</span></span></h2>
<p>If nginx binary is installed at /usr/local/nginx/sbin/nginx, enter: