linux下安装nginx步骤

来源:互联网 发布:linux配置ip地址命令 编辑:程序博客网 时间:2024/05/22 06:27

linux下安装nginx步骤

1

git clone https://github.com/arut/nginx-rtmp-module.git

2

wget http://nginx.org/download/nginx-1.8.1.tar.gz

3

tar -zxvf nginx-1.8.1.tar.gz

4

sudo apt-get update

5

sudo apt-get install libpcre3 libpcre3-dev

6

sudo apt-get install openssl libssl-dev

7

cd nginx-1.8.1

8

./configure --prefix=/usr/local/nginx --add-module=../nginx-rtmp-module --with-http_ssl_module

9

make

10

sudo make install

11

进入安装目录/usr/local/nginx

cd  /usr/local/nginx

12

sudo ./sbin/nginx

13

在网页上输入localhost,如果看到welcome to nginx!,则表示成功。


原创粉丝点击