Find nginx version?

前端 未结 6 1374
生来不讨喜
生来不讨喜 2021-02-01 11:50

I have installed nginx on Debian 7 with the following steps

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nginx
sudo service nginx start
<         


        
6条回答
  •  别跟我提以往
    2021-02-01 12:23

    My guess is it's not in your path.
    in bash, try:
    echo $PATH
    and
    sudo which nginx
    And see if the folder containing nginx is also in your $PATH variable.
    If not, either add the folder to your path environment variable, or create an alias (and put it in your .bashrc) ooor your could create a link i guess.
    or sudo nginx -v if you just want that...

提交回复
热议问题