很长时间没操作怕忘记,在此做个笔记。下次要操作的时候,可以直接翻出来查阅。废话不多说,直接开始。
一、申请SSL证书
申请途径有很多,免费收费的都有,这里不多介绍了,不是本文重点。之前阿里云有免费一年的SSL证书,现在好像转为免费2个月了。 申请成功后你会得到以下两个文件。
证书文件(.PEM格式):Nginx支持安装PEM格式的文件,PEM格式的证书文件是采用Base64编码的文本文件,且包含完整证书链。解压后,该文件以证书ID_证书绑定域名命名。
私钥文件(.KEY格式):默认以证书绑定域名命名。
二、上传证书文件
1. 执行以下命令,在Nginx的conf目录下创建一个用于存放证书的目录。
cd /usr/local/nginx/conf #进入Nginx默认配置文件目录。该目录为手动编译安装Nginx时的默认目录,如果您修改过默认安装目录或使用其他方式安装,请根据实际配置调整。 mkdir cert #创建证书目录,命名为cert。
2. 将证书文件和私钥文件上传到Nginx服务器的证书目录(/usr/local/nginx/conf/cert)。如何上传?可以使用远程登录工具附带的本地文件上传功能,上传文件。例如PuTTy、Xshell或WinSCP等。
三、安装配置证书
1. 编辑Nginx配置文件nginx.conf,修改与证书相关的配置
这里必须说一下,nginx.conf默认保存在/usr/local/nginx/conf目录下。如果您修改过nginx.conf的位置,可以执行nginx -t,查看nginx的配置文件路径,并将/usr/local/nginx/conf/nginx.conf进行替换。
确定文件位置之后,执行以下命令打开配置文件:
vim /usr/local/nginx/conf/nginx.conf
2. 在nginx.conf中定位到server属性配置
参考如下示例进行修改:
server { #HTTPS的默认访问端口443。 #如果未在此处配置HTTPS的默认访问端口,可能会造成Nginx无法启动。 listen 443 ssl; #填写证书绑定的域名 server_name; #填写证书文件绝对路径 ssl_certificate cert/ .pem; #填写证书私钥文件绝对路径 ssl_certificate_key cert/ .key; ssl_session_cache shared:SSL:1m; ssl_session_timeout 5m; #自定义设置使用的TLS协议的类型以及加密套件(以下为配置示例,请您自行评估是否需要配置) #TLS协议版本越高,HTTPS通信的安全性越高,但是相较于低版本TLS协议,高版本TLS协议对浏览器的兼容性较差。 ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4; ssl_protocols TLSv1.1 TLSv1.2 TLSv1.3; #表示优先使用服务端加密套件。默认开启 ssl_prefer_server_ciphers on; location / { root html; index index.html index.htm; } }
3. 设置HTTP请求自动跳转HTTPS
如果您希望所有的HTTP访问自动跳转到HTTPS页面,可通过rewrite指令重定向到HTTPS。
以下代码片段需要放置在nginx.conf文件中server {}代码段后面,即设置HTTP请求自动跳转HTTPS后,nginx.conf文件中会存在两个server {}代码段。
server { listen 80; #填写证书绑定的域名 server_name; #将所有HTTP请求通过rewrite指令重定向到HTTPS。 rewrite ^(.*)$ https://$host$1; location / { index index.html index.htm; } }
4. 重启Nginx服务
cd /usr/local/nginx/sbin #进入Nginx服务的可执行目录。 ./nginx -s reload #重新载入配置文件。
四、问题报错
报错the “ssl” parameter requires ngx_http_ssl_module:您需要重新编译Nginx并在编译安装的时候加上–with-http_ssl_module配置。
报错”/cert/3970497_demo.aliyundoc.com.pem”:BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(‘/cert/3970497_demo.aliyundoc.com.pem’,’r’) error:2006D080:BIO routines:BIO_new_file:no such file):您需要去掉证书相对路径最前面的/。例如,您需要去掉/cert/cert-file-name.pem最前面的/,使用正确的相对路径cert/cert-file-name.pem。
order priligy online uk 2, H gross cystic disease fluid protein 15 and I E cadherin magnification, x200
2024-11-11 05:21:26 Google Chrome 124 Windows 10peel off costco tylenol 650 mg Гў buying cheap cytotec online Van Den Wall Bake AW, and Roumen, R
2024-12-8 10:47:41 Google Chrome 124 Windows 100 M sucrose and 20 SSS at 37 C buy augmentin 375 online no prescription
2025-1-27 18:20:11 Google Chrome 130 Windows 10CrossFitters will do properly to develop this method as a lot as
is affordable for their 1RM efforts. Good drills for snatching embrace
snatch pulls, overhead squats, snatch balances, and grasp snatches.
These drills help enhance technique, strength, and mobility.
The snatch stability focuses on enhancing the receiving place.
Beginning with the barbell on the shoulders, the
lifter performs a quick dip and drive, then drops into an overhead squat to catch the bar.
This drill enhances confidence and stability within the catch phase.
The snatch is a trademark of Olympic weightlifting, representing a mix of energy,
velocity, and precision.
So if you’re looking to get higher at these highly effective movements,
you may wish to emphasize the squat in your routine. Squats may even be superior to the deadlift if your primary
muscle-building objective is to grow your quads.
They’re one of many major movers of knee flexion and extension, which is the chief mechanic in squats.
From this position, you carry out the identical explosive pull,
catch, and squat movements as in a daily squat
snatch. The squat snatch is a variation of the
snatch train that includes catching the barbell in the backside of a squat place.
Instead of catching the barbell overhead along with your legs in 1 / 4 squat, you’ll descend right into a
full squat as you catch the bar. Once the barbell is
secured overhead, you will then get up from the squat place, pressing the bar overhead as you rise.
“In CrossFit, hang snatches usually appear in a workout using gentle weight so that you just can transfer the bar fast, and crank up your heart fee,” he says.
As A Result Of the snatch can construct muscle mass similar to different
resistance workouts, frequently incorporating the motion into your routine can actually pace up your metabolism,
adds Rouse. “The snatch can also assist construct power, explosiveness, speed, body consciousness, and coordination,” she says.
“Just think about how powerful your legs need to be and the way quickly you have to move to get a heavy barbell overhead,” explains Wickham.
The snatch could be very in contrast to exercises such
because the hamstring curl and biceps curl, which only
work one muscle group at a time. “The snatch is a fancy and dynamic movement that engages nearly every muscle group within the physique,” says Rebecca Rouse,
a USA weightlifter, kettlebell coach, and NCSF-certified private
coach.
This variation isolates the second and third pull phases, bettering the lifter’s ability to generate power
from the grasp place. The Olympic lifts prepare athletes to successfully activate more muscle fibers more rapidly
than by way of some other modality of coaching. The explosiveness that
results from this coaching is of significant necessity to each sport.
Working Towards the snatch teaches one to use force to muscle groups in proper sequence — i.e., from the middle
of the physique to its extremities (core to extremity).
Learning this vital technical lesson benefits all athletes who have to impart force
to another person or object, as is often required
in almost all sports activities. Technically, any start line above the ground qualifies as a
grasp power snatch. Be cautious with high rep Olympic movements or making an attempt to
carry too much weight too soon.
If you’ll use your cage for dynamic movements like muscle-ups, get one
that may bolt to the floor. Bumper plates also permit you to drop the load from overhead with out damaging your
flooring or barbell. Drive through the tripod foot again to
a standing place. If your objective is glute, hamstring, and back gains, the
deadlift ought to take the top spot. Yes, the
squat makes use of these muscle groups too, however the deadlift places
extra of an emphasis via the posterior chain than the squat
does. You will not at all times have time for both in your
exercise, though. The decision of which to prioritize is
dependent upon your body sort and your objectives.
G. Stand up before returning the burden again to the starting position. As Quickly
As you are feeling confident with the movement,
do this 15-minute CrossFit companion workout, which options the dumbbell snatch.
E. When the barbell brushes against mid-thighs, drive hips
ahead (allowing feet to leave the ground).
It’s about giving the athlete who needs to be extra environment friendly different things to
consider with regards to attacking a high-rep snatch workout.
In other words, these actions are outstanding for transferring
talents to other domains. This variation allows for similar movement patterns
and benefits, while also bettering unilateral energy and coordination.
The objective is to raise the barbell rapidly whereas positioning the body beneath to catch it with arms
fully prolonged overhead, adopted by standing as much as full
the lift. Take your time, be affected person, work with an empty barbell or PVC pipe
whereas you’re studying, and do not overlook that technique is way extra important than how a lot weight you’re
lifting. The hang power snatch makes common appearances in CrossFit WODS.
The ability, velocity, and timing needed to drive a loaded barbell from
the ground to overhead, while concurrently squatting and catching the
barbell interprets to all sports activities. Choose up an empty
barbell (or a PVC pipe) and follow shifting very little or no weight with good type.
“It Is such a technical movement you could spend your complete lifetime getting somewhat bit better at it day-by-day, week-by-week, and year-by-year and still have one thing to improve,” says Wickham.
If you are a beginner or need to enhance your grip strength,
nonetheless, you must avoid utilizing straps. Olympic lifts
corresponding to cleans or jerks also use related muscle teams as those used when performing snatches, so they make a wonderful various train possibility too.
Each workout routines ought to be performed with appropriate type so as to avoid harm whereas nonetheless reaping their advantages.
The snatch train is an efficient full-body motion that targets a wide range of muscular tissues, from major movers to stabilizers.
By mastering the method and type of this raise, you presumably can reap the various advantages it offers – from improved energy
and power to increased mobility and flexibility.
The lifter finally straightens to a fully upright place
with the bar above their head and arms absolutely prolonged.
Improperly performing a snatch can result in injuries like pulled muscular tissues and hyperextension of joints.
E. When the dumbbell passes chest top, drop underneath the burden to land in a quarter squat, elbow utterly locked
out. C. Straighten legs whereas pulling the dumbbell off
the bottom, up alongside the front of the body. A. Stand with ft hips-width aside, with a dumbbell horizontal on the ground between feet.
If you are planning to affix a CrossFit field, the coaches
there’ll be able to teach you tips on how to do all of them.
If not, hiring a coach to assist you grasp the snatch
movement is extremely recommended by Rouse. “A qualified coach will know tips on how to train, cue, and correct any movement’s imperfections,” she
explains. Provoke the pull in a managed method and velocity
up asyou cross the knees.
You may also discover that you simply’re higher at one or the other, so you may naturally gravitate towards your strengths.
These gold standard lifts are important to a well-rounded routine.
This Is tips on how to prioritize when you don’t have time
for both. Once you are a master snatcher and ready to
try out the break up snatch, watch this CrossFit
cut up snatch video. C. Grip the bell with an overhand grip,
then shift hips up towards the ceiling so that
chest is over the weight.
References:
medical Steroid Names
2025-3-24 09:35:40 Opera 89 Windows 10