Created
March 5, 2019 06:16
-
-
Save MonsterRob/fbd9f534d5ca6035226b90f5e2f86fb5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Nignx 配置文件格式为 .conf | |
| 内容的基本元素为directive(即指令) | |
| directive 格式: <name> [para1,[para2,[para3]]] ...; | |
| directive 以分号结尾 | |
| 多个directive 可以组成block ,block 格式为 <block name> <para> {directives} | |
| block允许嵌套组成context | |
| 总共分为四个层级的context: main http server location | |
| nginx -t 检查配置文件内容格式是否书写正确 | |
| nginx -s reload 使配置文件生效 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment