Recent Comments

This is default featured slide 1 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 2 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 3 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 4 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

This is default featured slide 5 title

Go to Blogger edit html and find these sentences.Now replace these sentences with your own descriptions.

2012年4月30日 星期一

CentOS6 Mount NTFS

安裝好rpmforge-release後,再安裝fuse-ntfs-3g即可
yum install fuse-ntfs-3g

2012年4月17日 星期二

釋放linux下沒有使用的記憶體


sync
echo 1 > /proc/sys/vm/drop_caches

2012年4月16日 星期一

phpPgAdmin You don't have permission to access /phpPgAdmin on this server.

安裝完phpPgAdmin後
192.168.1.XXX/phpPgAdmin會出現You don't have permission to access /phpPgAdmin on this server.
但在127.0.0.1/phpPgAdmin或localhost/phpPgAdmin都可以連上

解決方式:
設定vim /etc/httpd/conf.d/phpPgAdmin.conf
刪除Allow from 127.0.0.1
增加allow from all
重啟httpd

==================================

Alias /phpPgAdmin /usr/share/phpPgAdmin


    Order deny,allow
    Deny from all
#    Allow from 127.0.0.1
    allow from all
    Allow from ::1
    # Allow from .example.com


2012年4月4日 星期三

CENTOS6 安裝 rpmforge-release

32位元
http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.i686.rpm

64位元
http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm
http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm

rpm -Uvh http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.x86_64.rpm


centos5


CENTOS6 安裝EPEL

32位元
http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-5.noarch.rpm

64位元
http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-5.noarch.rpm
http://download.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm

http://ftp.jaist.ac.jp/pub/Linux/Fedora/epel/6/x86_64/epel-release-6-8.noarch.rpm

導入key
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

安裝 yum-priorities
yum install yum-priorities

2011年7月27日 星期三

Ubuntu 11.04 IBUS安裝無蝦米輸入法

下載網址
https://github.com/vicamo/ibus-table-boshiamy/downloads

安裝好後,點選IBUS後執行『重新啟動』後到『偏好設定』裡把嘸蝦米輸入法加入即可

2011年7月3日 星期日

password authentication failed for user "postgres"

postgresql安裝好後用pgadmin連接出現如下的錯誤訊息:

Error connecting to the server:FATAL: password authentication failed for user "postgres"  

錯誤原因是沒有設定postgres的密碼,檢查及設定如下:
[root@Vigor14 ~]# su -l postgres -bash-3.2$ psql psql (8.4.7) Type "help" for help.  postgres=# select * from pg_shadow;  usename  | usesysid | usecreatedb | usesuper | usecatupd | passwd | valunti l | useconfig  ----------+----------+-------------+----------+-----------+--------+-------- --+-----------  postgres |       10 | t           | t        | t         |        |           |  (1 row)  postgres=# alter user postgres with password 'postgres'; ALTER ROLE postgres=#