Resolved problem with Squid - File size limit exceeded
When your squid file (*.log) probably grew to 2GB It threw a bunch of messages with the last line was File size limit exceeded.
You can fix this problem by stop squid and rotate your log file and restart squid again.
But in my case I want squid available log file size more than 2 GB.
Then I reconfigure squid with option.
# .configure --enable-large-cache-files --enable-follow-x-forwarded-for --with-large-files
Note:
If you have a rpm source file [package_name].src.rpm
you can use this option to rebuild squid.spec file
1.Installed with:
rpm -ivh [package_name].src.rpm
2.cd to /usr/src/redhat/SPECS
3.Changed the squid.spec file as follows
-----------------------------------squid.spec file--------------------------------
%configure \
--enable-large-cache-files \
--enable-follow-x-forwarded-for \
--with-large-files \
-----------------------------End of squid.spec file----------------------------
4. Ran rpmbuild -bi [name].spec to test compiling
5. Ran rpmbuild -bb [name].spec to build the binaries or rpmbuild -ba [name].spec to build all.
6. cd /usr/src/redhat/RPMS/i386/
7. rpm -ivh [package_name].rpm
You can fix this problem by stop squid and rotate your log file and restart squid again.
But in my case I want squid available log file size more than 2 GB.
Then I reconfigure squid with option.
# .configure --enable-large-cache-files --enable-follow-x-forwarded-for --with-large-files
Note:
If you have a rpm source file [package_name].src.rpm
you can use this option to rebuild squid.spec file
1.Installed with:
rpm -ivh [package_name].src.rpm
2.cd to /usr/src/redhat/SPECS
3.Changed the squid.spec file as follows
-----------------------------------squid.spec file--------------------------------
%configure \
--enable-large-cache-files \
--enable-follow-x-forwarded-for \
--with-large-files \
-----------------------------End of squid.spec file----------------------------
4. Ran rpmbuild -bi [name].spec to test compiling
5. Ran rpmbuild -bb [name].spec to build the binaries or rpmbuild -ba [name].spec to build all.
6. cd /usr/src/redhat/RPMS/i386/
7. rpm -ivh [package_name].rpm
ความคิดเห็น