nginx安装
新服务器需要安装nginx服务 本来查了一堆资料
好像可以直接yum源安装 先看看yum源中nginx的服务
[root@VM_211_186_centos nginx]# yum info nginx Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile Installed Packages Name : nginx Arch : x86_64 Epoch : 1 Version : 1.6.3 Release : 8.el7 Size : 1.4 M Repo : installed From repo : epel Summary : A high performance web server and reverse proxy server URL : http://nginx.org/ License : BSD Description : Nginx is a web server and a reverse proxy server for HTTP, SMTP, POP3 and : IMAP protocols, with a strong focus on high concurrency, performance and low : memory usage.
结果centos直接一句话
yum install nginx service nginx start
安装一下
然后看版本
[root@VM_211_186_centos nginx]# nginx -v nginx version: nginx/1.6.3
安装成功后查看nginx的访问日志的位置 默认在/var/log/nginx/下面
[root@VM_211_186_centos nginx]# ls -al /var/log/nginx total 20 drwx------ 2 nginx nginx 4096 Jun 16 15:57 . drwxr-xr-x. 10 root root 4096 Jun 16 15:57 .. -rw-r--r-- 1 root root 4447 Jun 16 16:44 access.log -rw-r--r-- 1 root root 218 Jun 16 16:04 error.log
分类:
nginx服务器
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
· 一个奇形怪状的面试题:Bean中的CHM要不要加volatile?
· [.NET]调用本地 Deepseek 模型
· 一个费力不讨好的项目,让我损失了近一半的绩效!
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· 没有源码,如何修改代码逻辑?
· PowerShell开发游戏 · 打蜜蜂
· 在鹅厂做java开发是什么体验
· WPF到Web的无缝过渡:英雄联盟客户端的OpenSilver迁移实战