View Single Post
Halftux's Avatar
Posts: 862 | Thanked: 2,511 times | Joined on Feb 2012 @ Germany
#75
To start nginx you could try this:

Code:
sudo gainroot
cd /opt/nginx
./nginx
To stop nginx you could try this

Code:
sudo gainroot
cd /opt/nginx
./nginx -s quit
If you would like to have a init.d script instead, you need to figure out by yourself. But it is not needed it is only the right way you doing it in an old linux.

I hope for you that you didn't broke your system with apt-get -f install.

So nginx depends on this packages make sure they are installed.
Depending means that they need to be installed before you dpkg 'ing.

Depends: libc6 (>= 2.5.0-1), libgcc1 (>= 1:4.4.0), libpcre3 (>= 4.5), libssl1.1 (>= 1.1.0h), zlib1g (>= 1:1.2.1)

For nginx.conf you don't append, you replace the server section.

Give it another try it is really not so hard.

Last edited by Halftux; 2020-04-02 at 15:53.
 

The Following 3 Users Say Thank You to Halftux For This Useful Post: