Nginx安装部署

Stella981
• 阅读 599

web服务器-Nginx安装部署

nginx源码下载

二 nginx安装

配置目的

配置目的:
1)检查环境 是否 满足安装条件     依赖解决
2)指定安装方式    配置文件   命令文件  各种文件放哪里   开启模块功能【内置模块  三方模块】
3)指定软件安装在那里


# 编译
make  

make install

三 nginx相关目录

  • nginx path prefix: "/usr/local/nginx"

    nginx binary file: "/usr/local/nginx/sbin/nginx"

    nginx modules path: "/usr/local/nginx/modules"

    nginx configuration prefix: "/usr/local/nginx/conf"

    nginx configuration file: "/usr/local/nginx/conf/nginx.conf"

    nginx pid file: "/usr/local/nginx/logs/nginx.pid"

    nginx error log file: "/usr/local/nginx/logs/error.log"

    nginx http access log file: "/usr/local/nginx/logs/access.log"

四 nginx启动管理

  • 配置文件测试

    /usr/local/nginx/sbin/nginx -t   #测试
    
    /usr/local/nginx/sbin/nginx  # 启动
    
    killall -s QUIT nginx   # 关闭
    
    /usr/local/nginx/sbin/nginx -s reload/stop  # 重载/停止
    

五. nginx测试

查看端口
netstat -ntpl 
lsof -i :80

elinks http://192.168.157.15
  • 测试页面内容

    Nginx安装部署

点赞
收藏
评论区
推荐文章
blmius blmius
2年前
MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1
文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s
Stella981 Stella981
2年前
Nginx 代理到Jetty 页面跳转端口改变问题
 Nginx安装 Windows下部署Nginx只需下载安装包,解压启动服务器即可。下载官网:http://nginx.org/en/download.html   操作Nginx首先进入安装文件夹: 查看版本  Nginxv 启动服务  startnginx  正常关闭服务
Stella981 Stella981
2年前
Linux和Windows环境下安装Nginx
Nginx的安装windows环境下安装Nginx安装Nginx的下载地址如下:http://nginx.org/en/download.html(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fngi
Stella981 Stella981
2年前
Nginx – rewrite 配置 URL重写及301跳转原理图
Nginx–rewrite配置URL重写官网:http://nginx.org/en/docs/http/ngx\_http\_rewrite\_module.html(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fnginx
Wesley13 Wesley13
2年前
4. Nginx模块
Nginx官方模块1.ngx\_http\_stub\_status\_modulehttp://nginx.org/en/docs/http/ngx\_http\_stub\_status\_module.html。(https://www.oschina.net/action/GoToLink?urlhttp%3A%2
Wesley13 Wesley13
2年前
P2P技术揭秘.P2P网络技术原理与典型系统开发
Modular.Java(2009.06)\.Craig.Walls.文字版.pdf:http://www.t00y.com/file/59501950(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fwww.t00y.com%2Ffile%2F59501950)\More.E
Stella981 Stella981
2年前
Centos 8 LNMP环境部署zabbix监控
LNMP环境构建本次构建LNMP环境采用源码的方式来进行构建软件包下载地址nginx1.19.2.tar.gzhttp://nginx.org/download/(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fnginx.org%2Fdownloa
Stella981 Stella981
2年前
Nginx 学习笔记(1)
Nginx官网:http://nginx.org/(https://www.oschina.net/action/GoToLink?urlhttp%3A%2F%2Fnginx.org%2F)支持平台:Linux  Windows 软件下载:http://nginx.org/en/download
Wesley13 Wesley13
2年前
MySQL部分从库上面因为大量的临时表tmp_table造成慢查询
背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_
Python进阶者 Python进阶者
2个月前
Excel中这日期老是出来00:00:00,怎么用Pandas把这个去除
大家好,我是皮皮。一、前言前几天在Python白银交流群【上海新年人】问了一个Pandas数据筛选的问题。问题如下:这日期老是出来00:00:00,怎么把这个去除。二、实现过程后来【论草莓如何成为冻干莓】给了一个思路和代码如下:pd.toexcel之前把这