我的學習手記

Archive for the Unix-AIX\Red hat Enterprise Linux\CentOS\FreeBSD

Subversion installation

Posted by Billy.F in March 17, 2010

Install Subversion on CentOS

1. Install apache yum -y install httpd mod_ssl service httpd start chkconfig httpd on

2. Install MySQL yum -y install mysql-server mysql-devel service mysqld start chkconfig mysqld on

3.Config MySQL’s root password /usr/bin/mysqladmin [...]

Some BSD collection

Posted by Billy.F in March 14, 2010

Tags:

Change timezone

Linux systems traditionally keep the definition of their timezone in /etc/localtime. This is a binary file with the timezone info, and if we want to change it we need to find the appropriate timezone file from /usr/share/zoneinfo and copy it over the one from /etc or just link to it. Once you change [...]

Vim for CentOS

Posted by Billy.F in February 23, 2010

Install Vim

yum -y install vim-enhanced mv /bin/vi /bin/vi.bak ln -s /usr/bin/vim /bin/vi echo “set nu” >> /etc/vimrc

How to upgrade CentOS 5.3 to 5.4 release

Posted by Billy.F in February 22, 2010

Reference:

http://blog.ccielogs.com/2009/10/26/how-to-upgrade-centos-5-3-to-5-4-release/

http://hi.baidu.com/dr_wang/blog/item/718fabc4f18cfca38326ac0f.html

 

1.       edit the CentOS-Base.repo to add enable =1

                /etc/yum.repos.d/CentOS-Base.repo

 

2.       yum update

Crontab 不會自動執行 修復、處理步驟

發現 Crontab 已經好幾天都不會執行, 有點詭異.

直接 crontab -e 再去 新增 / 修改 也都不會動, 手動執行都是正常.

註: crontab 寫法都是正確的.

檢查、更新 Crontab

做下述的檢查、重新設定的動作看看.

ls /var/spool/cron/crontab # 看權限是某正確, 資料是否正確.
若有使用 flock, 然後有存 tmp file 的, 把那些 tmp file 都砍了.
crontab -l > cron_backup; crontab -r; crontab cron_backup # 把 crontab 砍掉重新匯入
以上都做過, Crontab 還是都不會動.

解法

上述做法都沒有用, 最後試試 重新啟動 cron, 結果就可以動了, [...]

Need to monitor Linux server performance? Try these built-in command and a few add-on tools. Most Linux distributions are equipped with tons of monitoring. These tools provide metrics which can be used to get information about system activities. You can use these tools to find the possible causes of a performance problem. The commands discussed [...]

Grant root privilege to user account in RHEL

Posted by Billy.F in October 10, 2009

1. create the user account call “normaluser”

# useradd -d /home/user normaluser

2. then as root run:

# su -

# visudo

3. in the file you will see

Tags: ,

Configuring the Boot Loader to boot the old kernel

Posted by Billy.F in October 10, 2009

Configuring the Boot Loader

Now that you have recompiled your kernel, you must configure the boot loader to boot the new kernel. This is a crucial step. If you do not perform this step or if you perform it incorrectly, you will not be able to boot your system. If this happens, boot your system [...]

Linux Creating a Partition Size Larger than 2TB

Posted by Billy.F in September 23, 2009


Calendar

March 2010
M T W T F S S
« Feb    
1234567
891011121314
15161718192021
22232425262728
293031  

PowerGUI