安装
1、brew search nginx
2、brew install nginx
启动nginx ,sudo nginx ;访问localhost:8080 发现已出现nginx的欢迎页面了。
常用的指令有:
nginx -V 查看版本,以及配置文件地址
nginx -v 查看版本
nginx -c filename 指定配置文件
nginx -h 帮助
Starting, Stopping, and Reloading Configuration
To start nginx, run the executable file. Once nginx is started, it can be controlled by invoking the executable with the -s parameter. Use the following syntax:
系统管理:密码管理、系统配置、数据库备份、后台日志管理 管理员管理模块:管理员的添删改查以及管理员的权限设置 会员管理系统:注册会员的管理 IP锁定管理:IP地址的锁定 企业信息模块:公司简介、公司文化等栏目的随意设置 新闻系统模块:公司新闻、文章发布 产品系统模块:包括产品类别管理 友情连接模块:友情连接管理 招聘系统模块:招聘发布以及应聘管理 在线留言系统:客户留言信息的管理
0
nginx -s signal
Where signal may be one of the following:
stop — fast shutdownquit — graceful shutdownreload — reloading the configuration filereopen — reopening the log filesFor getting the list of all running nginx processes, the ps utility may be used, for example, in the following way:
ps -ax | grep nginx登录后复制
7813 ?? 0:00.00 nginx: master process ./nginx
7814 ?? 0:00.00 nginx: worker process
7827 ttys000 0:00.01 grep nginx
以上就介绍了nginx-备注,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号