본문 바로가기
정보기술/일반

CentOS Administration

by fermi 2009. 6. 6.
[IP Table]

Open port 80

Open flle /etc/sysconfig/iptables:
# vi /etc/sysconfig/iptables

Save and close the file. Restart iptables:
# /etc/init.d/iptables restart


[USB HDD]

http://www.thelinuxpimp.com/main/node/561

파티션: fdisk -l
포맷: mkfs.ext3: mkfs.ext3 /dev/sdb1
mount: mount /dev/sdb1 /mnt/usb -t ext3
umount: mount /mnt/usb


[Backup]

http://www.cyberciti.biz/faq/rhel-backup-linux-server/

PostgreSQL: pg_dump 또는 pg_dumpall

스크립트:
--------------------------------------------
#!/bin/bash
DIR=/mnt/usb/backup/psql
[ ! $DIR ] && mkdir -p $DIR || :
LIST=$(/opt/PostgreSQL/8.3/bin/psql -U postgres -l | awk '{ print $1}' | grep -vE '^-|^List|^Name|template[0|1]')
for d in $LIST
do
  /opt/PostgreSQL/8.3/bin/pg_dump -U postgres $d | gzip -c >  $DIR/$d.out.gz
done
--------------------------------------------

User: tar

tar -czvf /mnt/usb/backup/user_backup_27July2007/root.tar /root


[NTFS]

http://micro.stanford.edu/mediawiki-1.11.0/images/Howto_access_NTFS_v2.pdf

    According to the website, http://www.linux-ntfs.org, there are three
possible options to gain an access to NTFS by the linux kernel: to install (1) linux integrated kernel driver, (2) ntfsmount, an improved driver by ntfsprorg team, and (3) ntfs-3g driver, recently developed by one of project members Szabolcs Szakacsits. In this short how-to report, the 1st and 3rd solutions will be tested to access NTFS from CentOS 5.


[HTTPD]

/usr/sbin/httpd
/etc/httpd/conf                        

'정보기술 > 일반' 카테고리의 다른 글

Segate HDD Operating Temperature (HDD 정상 작동 온도 범위)  (0) 2009.06.13
iPhone 3G Wi-Fi Issue  (0) 2009.06.12
CentOS Forum  (0) 2009.06.05
PostGIS  (0) 2009.05.27
Ruby + PostgreSQL  (0) 2009.05.26