The system is CentOS5 because of the recent explosion of Nginx security vulnerabilities, so we started to upgrade Nginx first to upgrade a slave front-end. The problem is that the ssl Certificate problem 1. log error, and the new program cannot start at 2011082617: 55: 21 [emerg] 6336 #0: SSL_CTX_use_PrivateKey_file (etcnginxsslxxx. key) failed (SSL:
The system is CentOS 5
Due to the recent explosion in Nginx security vulnerabilities, Nginx was upgraded.
Upgrade one slave front-end first. The problem is the problem with the ssl certificate.
1. log errors, and new programs cannot start
2011/08/26 17:55:21 [emerg] 6336 #0: SSL_CTX_use_PrivateKey _File("/Etc/nginx/ssl/xxx. key") failEd(SSL: error: 06065064: diGitAl envelope routines: EVP_DecryptFinal _Ex: Bad decrypt error: 0906A065: PEM routines: PEM_do_header: bad decrypt error: 140B0009: SSL routines: SSL_CTX_use_PrivateKey_file: PEM lib)
Then check nginx official website http://wiki.nginx.org/HttpSslMoDuLe
I found that they made a step more when doing sslkey.
CpServer. key server.key.org
openssl rsa -in server.key.org -out server.key
Previously, I directly used the default server. key to start nginx every time. Now, after using this new key, no password is required for starting nginx.
2. After switching to the primary frontend, check that the startup is okay, but the log reports an error:
2011/08/27 14:52:42 [emerg] 21997 #0: eventfd () failed (38: FuNcTion not implemented)
14:52:42 [alert] 21988 #0: worker process 21989 exited with fatal code 2 and can not be respawn
In addition, there is only one main program starting and the port cannot be connected.
Searching for error logs on the Internet indicates that Nginx uses Linux-native aio and requires support from the Linux kernel.
The kernel of the master front-end is indeed old (previously upgraded), 2.6.18-164. el5, and then upgraded to the latest 2.6.18-238.19.1.el5. After restart, the kernel will be normal.
Visit Official WebsiteBbs'Target = '_ blank'>ForumExplanation:
You have to recompile nginx * without * -- with-file-aio configure
Option.
Your system lacks eventfd ()SuPport and nginx compiled
-- With-file-aio configure option (on another host? Compile on
Host in question with -- with-file-aio shocould fail unLessYour
System headers screwed up) won't work on it.
The general idea is that you need to re-compile nginx without the -- with-file-aio parameter. The cause is that the system does not support eventfd (), however, nginx is compiled with -- with-file-aio. So there is a problem.
So. For the server, the overall upgrade is also necessary, because the entire upgrade to the latest, the program is certainly no problem, but only one upgrade, there is a problem people do not tell us.