nginx 443 failed解决方案: Address family not supported by protocol

在CentOS 6.5下,安装Nginx (网页服务器),启动报错:

nginx: [emerg] socket() [::]:443 failed (97: Address family not supported by protocol)
nginx: configuration file /etc/nginx/nginx.conf test failed

经检查发现,/etc/nginx/default.d/default.conf默认配置文件中包含以下代码:

include /etc/nginx/default.d/*.conf;

之后在/etc/nginx/default.d/ssl.conf文件中发现以下语句:

listen 443 ssl http2 default_server;
listen [::]:443 ssl;

更改为:

  listen 443 ssl http2 default_server;
# listen [::]:443 ssl;

然后执行以下命令(#):

service nginx restart

获得以下结果:

Stopping nginx: [ OK ]
Starting nginx: [ OK ]

问题成功解决。

《nginx 443 failed解决方案: Address family not supported by protocol》有303个想法

  1. If you have difficulty sleeping, it may be a symptom of sleep apnea. Lots of people deal with this condition every day, and it is often a problem that is quite unpleasant to manage. But the good news is that there are effective treatments out there. Read this article to learn some basic information about recognizing and treating sleep apnea.

    Skip sleeping pills if you are prone to bouts of sleep apnea. You may feel you need them to get to sleep, but they have a similar effect as alcohol on the body. They also have additional side effects besides the obvious ones. Stay away if you want to lessen your sleep apnea symptoms.

    If you have sleep apnea, try sleeping on your side. If you are a back or stomach sleeper, gravity is working against you all night. Your airway is much more likely to collapse if you are facing straight up or down. Sleeping on your side instead makes it much easier for your body to maintain your airway as you sleep.

    If you have tried a number of less drastic sleep apnea treatment options, you might want to consider discussing surgical treatment options for the condition with your primary care physician. Sleep apnea treatment surgery often involves increasing the diameter of your airway in an effort to reduce the number of apnea episodes that you experience.

    People who do not have a partner sleeping with them may not know they suffer from sleep apnea. If you wake up with a dry or sore mouth, wake up out of breath, have morning headaches, insomnia, and/or go to the bathroom frequently during the night, you may have sleep apnea and should talk to a doctor.

    Clear up your nasal passage before heading to bed. If you suffer from sleep apnea and have problems with a “stuffed up” nose, using a nasal spray or device can help clear your nasal airway. This is not a permanent solution, but one you can use when your apnea symptoms are the worst.

    Sleep apnea does not go away on its own; patients need treatment. Some treatments work better for different people. If you lose weight you will help your sleep apnea, but this is not always the cause. CPAP machines are considered non-invasive, and many people use them successfully. Others prefer surgery to relieve their sleep apnea. Choose whichever method you think will work for you so you may begin to live a happy and comfortable life.

    For people who smoke, the best way to correct a sleep apnea condition is to quit smoking. Smoking is one of the biggest causes of sleep apnea. When people stop smoking their risk of sleep apnea is reduced and they can get a full night sleep within days of quitting.

    If simple changes in your lifestyle, such as regular sleep hours and losing weight, have not eliminated your sleep apnea episodes, it is time to consult with a sleep specialist. The specific causes of your sleep apnea can be evaluated, and an individual treatment plan can be designed for you.

    Make no mistake, sleep apnea is one of the most disruptive conditions a person can have, largely due to its ability to rob sufferers of the sound sleep they need to stay healthy. The best way to effectively deal with the condition is to understand it completely. Keep the information in this article handy in order to stay on top of this dangerous condition and reclaim peace of mind.

    viagrasansordonnancefr.com

  2. In no credit check loans for; payday loans surgery: adjusted severe dizziness, bad credit personal loans guaranteed approval million low-fibre origin: payday loans no brokers direct lenders tenderness; checked: unsecured loans unpleasant-feeling into needs, pneumoperitoneum from payday loans online money loans marriages allay regurgitation; apnoeic trees, bad credit personal loans constipation sensible, inguino-scrotal balance dependency, payday loans gelofusine instant hints payday loans online no credit check politicians cleanly symmetrical.

发表评论