Online Learning Academy - LearnAcad.com

... Sharing Knowledge

  • Increase font size
  • Default font size
  • Decrease font size
Home
CentOS


How to downgrade RPM Package using YUM?

E-mail Print PDF

1) Check Already Installed RPM and Required RPM

Following command will check which rpm version is installed.

rpm -qa | grep php

2) Install YUM Plugin

Issue following command to install yum-allowdowngrade plugin

Last Updated on Thursday, 25 October 2012 11:03 Read more...
 

How to convert Squid unixtime logs in human-readable format?

E-mail Print PDF

squid-shade1If you’re looking at squid access.log, you’ll find the first column of it is the time, for example:
 

1310313302.640 829 58.215.75.51 TCP_MISS/200 104 CONNECT smtp.126.com:25 – DIRECT/123.125.50.112 -
 

1310313303.484 1845 58.215.75.51 TCP_MISS/200 104 CONNECT smtp.126.com:25 – DIRECT/123.125.50.111 -

This is not very human readable.

To convert Squid unixtime logs in human-readable format, one can use following command:

 

perl -p -e 's/^([0-9]*)/"[".localtime($1)."]"/e' > converted.log

 

 

Last Updated on Friday, 08 November 2013 13:03
 

Squid Proxy configuration with examples

E-mail Print PDF

squid-shade1This is a collection of example Squid Configurations intended to demonstrate the flexibility of Squid.

Warning: Any example presented here is provided "as-is" with no support or guarantee of suitability. If you have any further questions about these examples please email the squid-users mailing list.

Online Manuals

We now provide an the Authoritative Configuration Manual for each version of squid. These manuals are built daily and directly from the squid source code to provide the most up to date information on squid options.

Read more...
 

Understanding Squid delay pools with examples

E-mail Print PDF

This defines the parameters for a delay pool. Each delay pool has a number of "buckets" associated with it, as explained in the description of delay_class.

For a class 1 delay pool, the syntax is: delay_pools pool 1 delay_parameters pool aggregate

For a class 2 delay pool: delay_pools pool 2 delay_parameters pool aggregate individual

For a class 3 delay pool: delay_pools pool 3 delay_parameters pool aggregate network individual

For a class 4 delay pool: delay_pools pool 4 delay_parameters pool aggregate network individual user

For a class 5 delay pool: delay_pools pool 5 delay_parameters pool tagrate

The option variables are:

Read more...
 

Squid cache error: storeAufsOpenDone: (2) No such file or directory

E-mail Print PDF

Problem:

I've seen few of this in cache.log
How can we pull out the URL/storeurl of this files that are missing.


2011/03/01 23:49:21| storeAufsOpenDone: (2) No such file or directory
2011/03/01 23:49:21|    /cache03/00/69/000069BB
2011/03/01 23:49:56| storeAufsOpenDone: (2) No such file or directory
2011/03/01 23:49:56|    /cache03/01/38/0001385C
2011/03/01 23:50:00| storeAufsOpenDone: (2) No such file or directory
2011/03/01 23:50:00|    /cache03/01/5A/00015A91
2011/03/01 23:50:00| storeAufsOpenDone: (2) No such file or directory
2011/03/01 23:50:00|    /cache03/01/5B/00015B1B
2011/03/01 23:50:01| storeAufsOpenDone: (2) No such file or directory
2011/03/01 23:50:01|    /cache03/01/68/000168CA
2011/03/02 02:08:16| storeAufsOpenDone: (2) No such file or directory
2011/03/02 02:08:16|    /cache03/04/A5/0004A55B
2011/03/02 02:08:16| storeAufsOpenDone: (2) No such file or directory
2011/03/02 02:08:16|    /cache03/04/A5/0004A558

Read more...
 


Page 2 of 6
Follow us on Twitter

Main Menu

Linux

Islam

Windows

Interview Questions

Database

Internet

Cisco

Entertainment

Networking

Graduate Courses

Psychology

Feed Burner

Subscribe to Welcome to Online Learning Academy by Email

Enter your email address:

Delivered by FeedBurner


Google Groups
Subscribe to LearnAcad
Email:
Visit this group

Login Form