วันศุกร์ที่ 20 มีนาคม พ.ศ. 2558

เปิดหน้าเว็บ Airwave ไม่ได้

เว็บ Airwave ใช้งานไม่ได้ ทั้งที่เครื่อง server เปิดใช้งานอยู่


เข้าสู่ระบบทำการตรวจสอบการทำงาน
[root@1]# service pound status
pound is stopped
ตรวจสอบการทำงานของระบบ

[root@1]# service postgresql status
postmaster is stopped

[root@1]# service postgresql restart
Starting postgresql service:    [Failed]
postmaster dead but pid file exists

Cause : To get a better idea on why postgres is not starting we can check the pgsql log under /var/log

# cd /var/log
# less pgsql

Jan 15 10:24:06 rgppaws001 postgres[29137]: [1-2] LOCATION:  CreateLockFile, miscinit.c:919
Jan 15 10:24:52 rgppaws001 postgres[29256]: [1-1] FATAL:  53100: could not write lock file "/tmp/.s.PGSQL.5432.lock": No space left 
on device

The above message states that database is not able to write any more to /tmp/s.PGSQL.5432.lock since there is no space left in "/tmp"

We can do df -h to confirm the space.

Resolution : Clear up the old files in "/tmp" directory. We can use rm -rf command to clear files. Once we get free space under "/tmp" we can try restarting the postgres service.
[root@1 log]# service postgresql restart
Stopping postgresql service:                               [  OK  ]
Starting postgresql service:                               [  OK  ]

[root@1]# service pound restart



ข้อมูลจาก http://community.arubanetworks.com

วันพุธที่ 4 มีนาคม พ.ศ. 2558

วิธีการตั้งค่า IP Address บน Linux CentOS

วิธีการตั้งค่า IP Address บน Linux CentOS
1. ตรวจสอบก่อนว่าเราจะกำหนด IP Address ใน Card LAN อันไหน เช่น eth0 ก็ให้ทำตั้งไฟล์ชื่อ ifcfg-eth0

nano /etc/sysconfig/network-scripts/ifcfg-eth0


DEVICE="eth0"
NM_CONTROLLED="yes"
ONBOOT=yes
TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=yes
NAME="System eth0"
IPADDR=192.168.1.39
NETMASK=255.255.255.0
GATEWAY=192.168.1.1
DNS1=192.168.1.1


2. ทำการ Restart Service network

/etc/init.d/network restart

เสร็จเรียบร้อยครับ