Wednesday, September 28, 2011

Linux Increase The Maximum Number Of Open Files / File Descriptors (FD)

How do I increase the maximum number of open files under CentOS Linux? How do I open more file descriptors under Linux?

The ulimit command provides control over the resources available to the shell and/or to processes started by it, on systems that allow such control. The maximum number of open file descriptors displayed with following command (login as the root user).

Tuesday, August 30, 2011

Apache Web using POP3 Auth

Install Auth mechanism.
cpan install Apache::AuthPOP3
cpan install Net::POP3

Apache configuration
httpd.conf
ServerName userweb.linuxreaders.com
DocumentRoot /home/userweb
DirectoryIndex index.html
PerlModule Apache::AuthDBI
AuthName "Enter your Email ID & Password"
AuthType Basic
PerlAuthenHandler Apache::AuthPOP3
PerlSetVar        MailHost pop.linuxreaders.com
#PerlSetVar        UserMap pop3user1=>realname1,pop3user2=>realname2
Require valid-user 
 
 

Wednesday, July 6, 2011

Mysql command

Join tables on common columns.

mysql> select lookup.illustrationid, lookup.personid,person.birthday from lookup left join person on lookup.personid=person.personid=statement to join birthday in person table with primary illustration id;

Wednesday, January 12, 2011

This is a linux command line reference for common operations.

CommandDescription
apropos whatisShow commands pertinent to string. See also threadsafe
man -t ascii | ps2pdf - > ascii.pdfmake a pdf of a manual page
 which commandShow full path name of command
 time commandSee how long a command takes
time catStart stopwatch. Ctrl-d to stop. See also sw
dir navigation

Tuesday, December 28, 2010

Cài đặt và cấu hình Subversion


1-      Cài đặt apache và svn:  yum install --exclude=*.i386 httpd* mod_dav_svn
2-      Cấu hình web apache:  vi /etc/httpd/conf.d/subversion.conf

+ Đường dẫn lưu trú của repos : /var/www/svn/kimsach/
            Cách tạo:
            #mkdir /var/www/svn
            #svnadmin create /var/www/svn/kimsach

Thursday, December 16, 2010

Checking the file attributes using lsattr

lsattr is a command line program for listing the attributes on a Linux second extended file system
It is also a command to display attributes of devices on an AIX operating system

Tuesday, December 14, 2010

Quản lý tri thức-Một xu hướng của quản trị kinh doanh hiện đại

Trong điều kiện toàn cầu hóa kinh tế đang diễn ra một cách nhanh chóng trên toàn thế giới, cùng với sự phát triển với tốc độ chóng mặt của cuộc cách mạng khoa học kỹ thuật và công nghệ, các công ty đối mặt với rất nhiều cơ hội và thách thức do toàn cầu hóa và cuộc cách mạng khoa học - kỹ thuật - công nghệ mang lại. Nguồn nhân lực đã trở thành “một tài sản quý nhất, quan trọng nhất và quyết định nhất” cho sự tồn tại và phát triển của bất kỳ một tổ chức nào. Song, khi chúng ta nói về những nhận thức được hầu hết mọi người chấp nhận này thì cần phải hiểu đó là nguồn nhân lực có tri thức, có kỹ năng ở trình độ cao, biết lao động sáng tạo chứ không phải sức lao động cơ bắp dựa trên kinh nghiệm. Lực lượng lao động xã hội đã có sự chuyển biến rõ rệt từ những công nhân “cổ xanh” là chủ yếu thành những công nhân “cổ trắng” là chủ yếu.  Peter Drucker (1993)-một chuyên gia hàng đầu của lý luận quản lý- đã nhận xét rằng: “Trong thời kỳ 1880, khoảng chín phần mười số người lao động là lao động chân tay; ngày nay, con số này giảm xuống một phần năm. Bốn phần năm lực lượng lao động là những người lao động tri thức”.