注意: docker安装更便捷,这里介绍原生安装。 所需依赖有:pcre zlib zlib-devel gcc-c++ libtool openssl openssl-devel 如果安装比较慢的话,可以切换镜像源,切换方式见如下文章https://blog.csdn.net/wdy_2099/article/details/70578529 安装命令如下: 下载nginx-1.12.2.tar.gz包(下载地址 https://nginx.org/download/)可以根据实际情况下载其他版本。 2.1 首先解压: 2.2 解压后,进入目录nginx-1.12.2,然后执行./configure 执行检查操作 2.3 最后执行编译 2.4 编译以后会在/usr/local下生成nginx文件夹,sbin下有启动脚本 /usr/local/nginx/sbin 启动sbin下的nginx 访问默认80端口:(我这边服务器地址为https://192.168.1.117:80/),出现以下界面则为启动成功: 注意:CentoS7中操作防火墙的规则外部访问需要开放对应端口Linux安装Nginx
1.安装依赖包
yum -y install make pcre zlib zlib-devel gcc-c++ libtool openssl openssl-devel
2.安装Nginx
[root@localhost nginx]# tar -xvf nginx-1.12.2.tar.gz
开启stream块 ./configure --with-stream
[root@localhost nginx]# cd nginx-1.12.2/ [root@localhost nginx-1.12.2]# ./configure
[root@localhost nginx-1.12.2]# make && make install
[root@localhost nginx]# cd sbin/ [root@localhost sbin]# ls nginx
3.启动Nginx
[root@localhost sbin]# ./nginx [root@localhost sbin]#
查看开放的端口号 firewall-cmd --list-all 设置开放的端口号 firewall-cmd --add-service=http –permanent firewall-cmd --add-port=80/tcp --permanent 重启防火墙 firewall-cmd –reload
本网页所有视频内容由 imoviebox边看边下-网页视频下载, iurlBox网页地址收藏管理器 下载并得到。
ImovieBox网页视频下载器 下载地址: ImovieBox网页视频下载器-最新版本下载
本文章由: imapbox邮箱云存储,邮箱网盘,ImageBox 图片批量下载器,网页图片批量下载专家,网页图片批量下载器,获取到文章图片,imoviebox网页视频批量下载器,下载视频内容,为您提供.
阅读和此文章类似的: 全球云计算