【DevOps】Nginx + Lua + Redis常规部署总结
前言
近期学习了一下Nginx + Lua的集成,记录一下。图方便主要使用的是OpenResty
步骤
准备一台Linux服务器,这里举例子的机器使用的系统是Centos 7.9。以下是相关的命令,非常简单。
123456789101112131415yum install yum-utilsyum-config-manager --add-repo https://openresty.org/package/centos/openresty.repoyum install openrestyln -s /usr/local/openresty/nginx/sbin/nginx /usr/sbin/nginxcd /usr/local/openresty/nginx/confvim nginx.conf# add this part to server {}location /lua { add_header Cache-Control 'no- ...
【Summary】Adverb Suffixes - 副词词缀
Adverb Suffixes - 副词词缀-ly
-ly加在形容词后面,表示:……地。比如:
final + -ly = finallyadj. 最后的 + 副词词缀 = adv. 最后,最终地
quick + -ly = quicklyadj. 快速的 + 副词词缀 = adv. 快速地
direct + -ly = directlyadj. 直接的 + 副词词缀 = adv. 直接地
recent + -ly = recentlyadj. 最近的 + 副词词缀 = adv. 最近地
-wards
表示:朝……地、向……地。比如:
down + -wards = downwardsadv. 向下 + 副词词缀 = adv. 向下地
south + -ly = southwardsadj. 南方的 + 副词词缀 = adv. 朝南地
sun + -ly = sunwardsn. 太阳 + 副词词缀 = adv. 朝阳地
【Summary】Noun Suffixes - 名词词缀
Noun Suffixes - 名词词缀-ty
-ty通常加在形容词后面,构成表示性质、情况、状态等的抽象名词。比如:
safe + -ty = safetyadj. 安全的 + 名词词缀 = n. 安全
例句:
China is a very safe country, so we don’t worry about our safety.
-tion
-tion通常加在动词后,构成表示一种行为的过程、结果或状态的抽象名词。比如:
describe + -tion = descriptionv. 描述 + 名词词缀 = n. 描述
-ment
-tion通常加在动词后,表示这个动作的行为。比如:
move + -ment = movementv. 移动 + 名词词缀 = n. 移动
manage + -ment = managementv. 管理 + 名词词缀 = n. 管理
develop + -ment = developmentv. 发展 + 名词词缀 = n. 发展
-er / -or
-er / -or也是加在动词后面,表示做这个动作的人。比如:
sing ...
【Summary】Verb Suffixes - 动词词缀
Verb Suffixes - 动词词缀-ise / -ize
-ise / -ize 这两个词缀是等同的,通常接在形容词后面,表示:使变成…状态;…化。比如:
normal + -ize = normalizeadj. 正常的 + 动词词缀 = v. 使变成正常的状态;正常化
-ify
-ify加在形容词后面,表示:使变得怎么样。比如:
simple(去掉e) + -ify = simplifyadj. 简单的 + 动词词缀 = v. 使变得简单;简化
pure(去掉e) + -ify = purifyadj. 纯洁的 + 动词词缀 = v. 使变得纯洁:净化
-en / en-
-en加在形容词后面,表示:使变得怎么样。比如:
short + -en = shortenadj. 短的 + 动词词缀 = v. 使变短
deep + -en = deepenadj. 深的 + 动词词缀 = v. 使变深;深化
weak + -en = weakenadj. 虚弱的 + 动词词缀 = v. 使变虚弱;弱化
en-加在名词前面,表示:使变得怎么样。比如:
en- + slav ...
【Summary】Adjective Suffixes - 形容词词缀
Adjective Suffixes - 形容词词缀-ous
-ous加在名词后面,表示:具有……特征的。比如:
danger + -ous = dangerousn.危险 + 形容词词缀 = adj. 危险的
notoriety + -ous = notoriousn.恶名 + 形容词词缀 = adj. 臭名昭著的
-ful
-ful加在名词后面,表示:充满……的。比如:
hope + -ful = hopefuln. 希望 + 形容词词缀 = adj. 充满希望的
respect + -ful = respectfuln. 敬意 + 形容词词缀 = adj. 充满敬意的; 恭敬的
change + -ful = changefuln. 改变 + 形容词词缀 = adj. 充满改变的; 多变的
-able
-able加在名词后面,表示:能……的,可……的。比如:
change + -able = changeablen. 改变 + 形容词词缀 = adj. 可变化的;变化无常的
read + -able = changeablen. 阅读 + 形容词词缀 = adj. 可读 ...
【BBC】6 Minute English - Deep-sea mining:Good or bad for the planet?
Can music mend a broken heart? https://www.bbc.co.uk/learningenglish/english/features/6-minute-english_2022/ep-221208 The meanings of the words only for this article.
Vocabularies / Phrases
Vocabulary / Phrase
Part of speech
Chinese
English Explain
paradox
noun
矛盾的事情
situation that seems impossible because it contains two opposite ideas
conundrum
noun
难题
problem that is very difficult to solve
【BBC】6 Minute English - Can music mend a broken heart?
Can music mend a broken heart? https://www.bbc.co.uk/learningenglish/english/features/6-minute-english_2022/ep-221201 The meanings of the words only for this article.
Vocabularies / Phrases
Vocabulary / Phrase
Part of speech
Chinese
English Explain
soulmate
noun
灵魂伴侣
the person you have a specal romantic bond with and love very much
cynicism
noun
玩世不恭
the belief that something will not be successful, or that the people involved are not sincere
sincere
adjective
真诚的
showing what you rea ...
【BBC】6 Minute English - Meet the flavourists
Meet the flavourists https://www.bbc.co.uk/learningenglish/english/features/6-minute-english_2022/ep-221103 The meanings of the words only for this article.
Vocabularies / Phrases
Vocabulary / Phrase
Part of speech
Chinese
English Explain
dozen
noun
一打
twelve
guild
noun
(行业)协会
organization of people who do the same job or have the same interests
dark art
phrase
黑魔法
method of achieving something in a clever but dishonest, wicked or magical way
apprenticeship
noun
学徒制
period of time sp ...
【BBC】6 Minute English - Controlling the weather
Controlling the weather https://www.bbc.co.uk/learningenglish/english/features/6-minute-english_2022/ep-221110 The meanings of the words only for this article.
Vocabularies / Phrases
Vocabulary / Phrase
Part of speech
Chinese
English Explain
drizzling
verb
下毛毛雨,下蒙蒙细雨
raining lightly
meddling
verb
多管闲事
trying to change or influence something which is not your responsibility or without being asked
playing God
phrase
扮演上帝
acting as if you have unlimited power and can do anything you want
...
【BBC】 6 Minute English - Qatar's World Cup workers
Controlling the weather https://www.bbc.co.uk/learningenglish/english/features/6-minute-english_2022/ep-221117 The meanings of the words only for this article.
Vocabularies / Phrases
Vocabulary / Phrase
Part of speech
Chinese
English Explain
exploitation
noun
剥削
treating someone unfairly in order to gain an advantage for yourself
exorbitant
adjective
过高的
much bigger or more expensive than it should be
debt
noun
欠款
an amount of money that you owe to someone else
behemoth
adjective
巨大的 ...