首页 > 系统相关 >Ubuntu 下安装nginx,以及首页展示

Ubuntu 下安装nginx,以及首页展示

时间:2022-11-07 19:33:35浏览次数:44  
标签:00 9809 worker nginx Jul02 首页 Ubuntu


注意下环境,不同环境下的操作可能会有差别

Ubuntu: 

root@bmd-miot-c:/home/gpmbio# cat /proc/version
Linux version 4.15.0-108-generic (buildd@lcy01-amd64-013) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #109-Ubuntu SMP Fri Jun 19 11:33:10 UTC 2020

nginx:

root@bmd-miot-c:/home/gpmbio# nginx -v
nginx version: nginx/1.14.0 (Ubuntu)

查看nginx.conf配置文件目录

输入命令

# nginx -t

返回结果包含配置文件目录

nginx: the configuration file /etc/nginx/nginx.conf syntax is ok

nginx: configuration file /etc/nginx/nginx.conf test is successful

查看nginx进程

gpmbio@bmd-miot-c:~$ ps -ef |grep nginx
root 9809 1 0 Jul02 ? 00:00:00 nginx: master process /usr/sbin/nginx -g daemon on; master_process on;
root 9812 9809 0 Jul02 ? 00:00:00 nginx: worker process
root 9814 9809 0 Jul02 ? 00:00:00 nginx: worker process
root 9816 9809 0 Jul02 ? 00:00:00 nginx: worker process
root 9817 9809 0 Jul02 ? 00:00:00 nginx: worker process
gpmbio 23727 23283 0 01:13 pts/1 00:00:00 grep --color=auto nginx

 

​​安装以及设置首页显示​​

​​卸载方式​​

​​Nginx 出现 403 Forbidden 最终解决方法​​

附:


可惜没生效,但还是要继续研究的

标签:00,9809,worker,nginx,Jul02,首页,Ubuntu
From: https://blog.51cto.com/u_11320078/5831075

相关文章

  • Ubuntu16.04下conda虚拟环境编译cv_bridge
    1.进入conda虚拟环境后,安装相关包pipinstallrosdeprosinstallcatkin_pkgrospkgnumpypyyamlopencv-python2.初始化工作空间并获取vision_opencvmkdir-pros_cv_......
  • Docker 安装 nginx 并启动容器
    docker拉取Nginx镜像dockerpullnginx:latest拉取完成查看:dockerimages准备工作先在主机创建工作文件夹,为了挂载配置和静态文件的访问使用#启动一个容器docker......
  • 静态页使用nginx启动服务
    下载地址解压打包好的文件到html下使用命令startnginx或者直接点击nginx.exe文件启动服务在conf文件夹里面的nginx.conf文件查看配置端口,然后浏览器输入本地路径+端口......
  • nginx1.18配置https,tomcat9也配置https
    生成证书:https://www.cnblogs.com/caidingyu/p/11904277.htmltomcat9https://blog.csdn.net/lzj_lives/article/details/123824964server.xml<Connectorport="90......
  • Nginx(负载均衡Windows部署)
    目的:发布的Web接口,当大批量并发访问时,会出现响应慢问题;原理:当访问者大批量访问时,用五台服务器部署同样的接口程序,来分压,对于访问者来说只要访问Nginx,Ngin来根据配置,分配......
  • windows服务器Nginx服务化一键安装于部署
    作为一名专业搬砖工,Nginx是我们绕不开的砖头,最近连续部署了几个服务器,Ctrl a+Ctrlv在飞来飞去,总是会遇到不同不样的问题,通过总结,整理了Nginx服务化的一次完整安装......
  • nginx -s reload 与 service nginx restart 的区别
    官方文档:https://nginx.org/en/docs/beginners_guide.html1.语法nginx-ssignalsignal的值如下:stop:fastshutdown,快速的停止nginxquit:gracefulshutdown,不再接受......
  • Tomcat、Nginx和JVM的理解
    Tomcat启动的时候,启动的是JVM进程,这个进程首先是执行JVM的代码,而JVM会加载Tomcat的class执行,并分配一个主线程,这个主线程会从main函数开始执行。在主线程执行过程中,Tomc......
  • 记在Linux系统实现用nginx解析php
    记在Linux系统实现用nginx解析php实验环境:系统版本:CentOS7nginx版本:nginx-1.6.0(http://mirrors.sohu.com/nginx/nginx-1.6.0.tar.gz)php版本:php-5.3.28(http://mu......
  • Nginx configure error: the HTTP rewrite module requires the PCRE library
    IssueWhen configure nginx1.19.0,runthecommands../configure--prefix=/opt/nginx-1.19.0CopyButthefollowingerror occurs.checkingforPCRElibr......