Arch 安装Nginx
Nginx (读作”engine X”) 由Igor Sysoev(俄罗斯)于2005年编写,是一个免费、开源、高性能的HTTP服务器和反向代理,也可以作为一个IMAP/POP3代理服务器。根据 Netcraft 的 April 2015 Web Server Survey, 现在全世界14.48%的网站使用Nginx,而Apache占38.39%。Nginx因为稳定,丰富的功能集,配置简单,资源占用低而闻名世界。
安装位于官方仓库的nginx 软件包。
# pacman -S nginx //安装位于官方仓库的nginx 软件包。
启动服务
要启动Nginx服务,运行以下命令:
# systemctl start nginx
要Nginx服务开机时启动,运行以下命令:
# systemctl enable nginx
http://127.0.0.1 的默认页面是:
/usr/share/nginx/html/index.html
配置
你可以修改在 /etc/nginx/ 目录中的文件来更改配置 ./etc/nginx/nginx.conf 是主配置文件
参考文献
Arch 安装Nginx相关推荐
- Centos 利用yum源安装 nginx 1.20.1
环境 CentOS 7.9 (腾讯云服务器) nginx 1.20.1 yum源说明 腾讯云的 CentOS 服务器,用的是腾讯的yum源镜像. 感兴趣的可以去/etc/yum.repos.d中看看. ...
- 安装nginx时关系依赖库openssl.lib时,出现:error: 'NR_syscalls' undeclared (first use in this function)
安装nginx时关系依赖库openssl.lib时,出现:error: 'NR_syscalls' undeclared (first use in this function) 解决方案:根据arc ...
- centos6 下用yum 安装 nginx
以下操作在Cento6.4 系统下实现 一.更新使用163的库 vi /etc/yum.repos.d/CentOS-Base.repo yum update [base] name=CentOS-$ ...
- centos6.x中yum安装nginx
今天装了CentOS6.7,直接yum install nginx不行,错误如下: [root@localhost ~]# yum install nginx 已加载插件:fastestmirror ...
- 在Ubuntu中手动安装nginx+nextcloud
在Ubuntu中手动安装nginx+nextcloud 前言 什么是NextCloud? NextCloud功能 先决条件 步骤1:在Ubuntu 20.04上下载NextCloud 步骤2:在Mar ...
- Centos7.4安装Nginx
Centos7.4安装Nginx 使用yum命令 一.安装准备 首先由于nginx的一些模块依赖一些lib库,所以在安装nginx之前,必须先安装这些lib库,这些依赖库主要有g++.gcc.open ...
- Centos7安装Nginx详细步骤
1. gcc 安装 安装 nginx 需要先将官网下载的源码进行编译,编译依赖 gcc 环境,如果没有 gcc 环境,则需要安装: yum install gcc-c++ 2.PCRE pcre-d ...
- Centos7上安装Nginx两种方法
源码编译安装 http://nginx.org/en/download.html 到官网下载,然后用XFTP上传到root目录 把文件解压出来 tar -zxvf nginx-1.16.0.tar.g ...
- Linux安装Nginx、Redis、django
部署Nginx 部署Redis 安装Redis redis事物 服务器管理命令 慢查询日志 主从复制 Redis-Sentinel cluser分片集群 安装python 操作redis数据 部署Dj ...
最新文章
- 10.6监控io性能10.7free命令10.8ps命令10.9查看网络状态10.10linux抓包
- BAD SLAM | 直接法实时BA+RGBD基准数据集(CVPR2019)
- linux awk 教程,AWK简单使用方法
- Git 学习笔记:自定义Git(完)
- php调http接口,2步教你解决http协议php接口调用
- 《构建之法》读后感二
- Windows Installer 3.1
- 在.net中使用GAC
- 易筋SpringBoot 2.1 | 第三篇:RestTemplate请求HTTP(1)
- keybd_event模拟键盘输入
- python中的eval函数的使用详解
- CSSCI来源期刊(2010-2011年)
- Kubernetes安装Ratel
- uva 10158	War
- Android 判断是否是刘海屏
- android文件上传413 nginx [error] 9679#0: *318855 client intended to send too large body: 1593409 bytes
- 【写一个操作系统】2—VMware创建软盘映像
- HP D380 G9 改IP地址
- 功能测试之后台会员测试方法
- Arduino之坑(四)——TCP通信