unknown directive "aio" in Nginx 0.8.14

Igor Sysoev is at rambler-co.ru
Thu Sep 10 13:40:35 MSD 2009


On Thu, Sep 10, 2009 at 11:26:14AM +0200, Dinh Pham wrote:

> Hi all,
> 
> I installed Nginx 0.8.14 to try out a new feature: AIO support. Also, I
> compiled Nginx with --with-file-aio
> 
> However, Nginx show warnings that it does not support AIO:
> 
> Starting nginx: [emerg]: unknown directive "aio" in
> /usr/local/nginx/nginx.conf:46
> 
> Here is my configuration
> 
>         location ~* ^\/files\/(.+) {
>             alias /home/files/$1;
>             internal;
>             aio on;
>             # sendfile off;
>             directio 512;
>         }
> 
> Is this feature experimental and withdrawn?

Could you show this ./configure line:
checking for Linux AIO support ...
?

Probabaly, your kernel does not support eventfd(), it's available since
2.6.22 only.

BTW, instead of

         location ~* ^\/files\/(.+) {
             alias /home/files/$1;

it's better to use just

         location /files/ {
             root /home;


-- 
Igor Sysoev
http://sysoev.ru/en/





More information about the nginx mailing list