使用Apache httpd的LFS模块来启用LFS支持。此模块将Apache httpd编译为LFS支持。下面是一些代码示例:
wget http://archive.apache.org/dist/httpd/httpd-2.4.28.tar.gz tar -xzf httpd-2.4.28.tar.gz
./configure --enable-layout=Debian --enable-so --with-mpm=prefork --enable-mods-shared=all --enable-ssl --with-ssl=/usr --with-included-apr --with-apr=/usr/bin/apr-1-config --with-apr-util=/usr/bin/apu-1-config --enable-lfs
make && make install
LFSEnable On
重新启动httpd服务,现在它将支持大于2GB文件和LFS。
注意:LFS只适用于64位操作系统,如果您的操作系统是32位的,则无法使用LFS支持。