2012년 11월 16일 금요일

아이프레임

<iframe src="경로" width="크기" height="크기" frameborder="0px" scrolling="no" style="border:0px" name="iframe"></iframe>

2012년 9월 23일 일요일

jquery

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko" lang="ko">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jQuery 강좌2 펼침목록 만들기</title>
<style>
.highlight{font-style:italic;background-color:red;color:blue}
</style>
<script type="text/javascript" src="jquery-1.8.2.min.js"></script>
<script type="text/javascript">
 $(document).ready(function(){
  $('p').addClass('highlight');
 });
</script>
</head>
<body>
<p>test</p>
</body>
</html>

2012년 9월 20일 목요일

코드

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title></title>
__vtype,mainscript__
__vtype,mainstyle__
<script language="JavaScript">
<!--
var favoriteurl="http://www.cigarettelady.net/" // URL???섏젙?섏꽭??
var favoritetitle="cigarettelady" // ?ъ씠?몃챸???섏젙?섏꽭??
function addfavorites(){
if (document.all)
window.external.AddFavorite(favoriteurl,favoritetitle)}
//-->
</script>
<link href="/style.css" rel="stylesheet" type="text/css"></head>
<body>
<table width="100%" cellspacing="0" cellpadding="0" align="center">
  <tbody><tr>
    <td width="*" background="http://dasalang.co.kr/images/vfr/top2/topvfrbg.gif">&nbsp;</td>
    <td width="960">
<map name="topvfr1_map">
    <area href="http://dasalang.co.kr/shop/shop.php?req=contactus&mode=form" coords="336,1,374,32" alt="" shape="rect">
    <area href="http://dasalang.co.kr/shop/shop.php?req=sch_idpw" coords="261,1,329,31" alt="" shape="rect">
    <area href="http://dasalang.co.kr/shop/shop.php?req=cominfo" coords="209,2,255,30" alt="" shape="rect">
    <area href="http://dasalang.co.kr/shop/shop.php?req=help" coords="155,1,202,29" alt="" shape="rect">
    <area href="http://dasalang.co.kr/shop/shop.php?req=brd_list" coords="103,1,149,30" alt="" shape="rect">
    <area href="http://dasalang.co.kr/main.php" coords="52,1,98,28" alt="" shape="rect">
    </map><table width="960" cellspacing="0" cellpadding="0" background="http://dasalang.co.kr/images/vfr/top2/comlogobg.gif" align="center">
  <tbody><tr> 
    <td width="585" valign="top" height="61" align="left">
     <a href="http://dasalang.co.kr/main.php"><img border="0" src="http://dasalang.co.kr/images/comlogo.gif"></a></td>   
    <td width="375" rowspan="2"><img border="0" usemap="#topvfr1_map" src="http://dasalang.co.kr/images/vfr/top2/top.gif"></td>
     
  </tr> 
  <tr>
    <td width="585" height="1"><img width="585" height="1" src="http://dasalang.co.kr/images/fixer.gif"></td>
  </tr>
 </tbody>
</table>

<table width="960" cellspacing="0" cellpadding="0" background="http://dasalang.co.kr/images/vfr/top2/gnbg.gif" align="center">     
  <tbody>
  <tr> 
    <td width="32" height="38" rowspan="2"><img src="http://dasalang.co.kr/images/vfr/top2/search.gif"></td
     <form action="http://dasalang.co.kr/shop/shop.php" name="main_sch_form1"></form>
    <td width="80" height="37"><input type="text" class="box" size="10" name="gn"></td>
    <td width="30" rowspan="2">
     <a href="javascript:sch(document.main_sch_form1.gn,document.main_sch_form1)"><img border="0" src="http://dasalang.co.kr/images/vfr/top2/go.gif"></a>
    </td>
    <input type="hidden" value="sch_goods" name="req">
    <input type="hidden" value="y" name="schbutt">
    
    <td width="60" rowspan="2">
     <a href="http://dasalang.co.kr/shop/shop.php?req=sch_goods&df=y"><img border="0" src="http://dasalang.co.kr/images/vfr/top2/dtlsch.gif"></a>
    </td>
    <td width="207" rowspan="2">
     <img width="207" height="1" border="0" src="http://dasalang.co.kr/images/fixer.gif">
    </td>
    <td width="68" rowspan="2">
     <a onMouseOver="document.all['homebutt2'].src='http://dasalang.co.kr/images/vfr/top2/home_over.gif'" onMouseOut="document.all['homebutt2'].src='http://dasalang.co.kr/images/vfr/top2/home_out.gif'" href="http://dasalang.co.kr/main.php">
        <img width="68" height="38" border="0" src="http://dasalang.co.kr/images/vfr/top2/home_out.gif" name="homebutt2"></a>
     </td>
    <td width="11" rowspan="2">
     <img border="0" src="http://dasalang.co.kr/images/vfr/top2/dot.gif">
    </td>
    <td width="76" rowspan="2"><a onMouseOver="document.all['cartbutt2'].src='http://dasalang.co.kr/images/vfr/top2/cart_over.gif'" onMouseOut="document.all['cartbutt2'].src='http://dasalang.co.kr/images/vfr/top2/cart_out.gif'" href="http://dasalang.co.kr/shop/shop.php?req=cart_list">
     <img width="76" height="38" border="0" src="http://dasalang.co.kr/images/vfr/top2/cart_out.gif" name="cartbutt2"></a>
     </td>
    <td width="11" rowspan="2">
     <img border="0" src="http://dasalang.co.kr/images/vfr/top2/dot.gif">
    </td>
    <td width="100" rowspan="2"><a onMouseOver="document.all['delivbutt2'].src='http://dasalang.co.kr/images/vfr/top2/deliv_over.gif'" onMouseOut="document.all['delivbutt2'].src='http://dasalang.co.kr/images/vfr/top2/deliv_out.gif'" href="/http://dasalang.co.kr/shop/shop.php?req=refer_order">
     <img width="100" height="38" border="0" src="http://dasalang.co.kr/images/vfr/top2/deliv_out.gif" name="delivbutt2"></a>
    </td>
    <td width="11" rowspan="2">
     <img border="0" src="http://dasalang.co.kr/images/vfr/top2/dot.gif">
    </td>
    <td width="87" rowspan="2"><a onMouseOver="document.all['rsvbutt2'].src='http://dasalang.co.kr/images/vfr/top2/rsv_over.gif'" onMouseOut="document.all['rsvbutt2'].src='http://dasalang.co.kr/images/vfr/top2/rsv_out.gif'" href="http://dasalang.co.kr/shop/shop.php?req=refer_rsv">
     <img width="87" height="38" border="0" src="http://dasalang.co.kr/images/vfr/top2/rsv_out.gif" name="rsvbutt2"></a>
    </td>
    <td width="11" rowspan="2">
     <img border="0" src="http://dasalang.co.kr/images/vfr/top2/dot.gif">
    </td>
    <td width="73" rowspan="2"><a onMouseOver="document.all['cobutt2'].src='http://dasalang.co.kr/images/vfr/top2/co_over.gif'" onMouseOut="document.all['cobutt2'].src='http://dasalang.co.kr/images/vfr/top2/co_out.gif'" href="http://dasalang.co.kr/shop/shop.php?req=co_list">
     <img width="73" height="38" border="0" src="http://dasalang.co.kr/images/vfr/top2/co_out.gif" name="cobutt2"></a>
    </td>
    <td width="11" rowspan="2">
     <img border="0" src="http://dasalang.co.kr/images/vfr/top2/dot.gif">
    </td>
    <td width="92" rowspan="2">
     <a onMouseOver="document.all['wishlistbutt2'].src='http://dasalang.co.kr/images/vfr/top2/wishlist_over.gif'" onMouseOut="document.all['wishlistbutt2'].src='http://dasalang.co.kr/images/vfr/top2/wishlist_out.gif'" href="http://dasalang.co.kr/shop/shop.php?req=wish_list&mode=view">
     <img width="92" height="38" border="0" src="/http://dasalang.co.kr/images/vfr/top2/wishlist_out.gif" name="wishlistbutt2"></a>
    </td>
  </tr>
  <tr>
    <td width="80" height="1">
     <img width="80" height="1" border="0" src="http://dasalang.co.kr/images/fixer.gif">
    </td>
  </tr>
</tbody></table>
    </td>
    <td width="*" background="http://dasalang.co.kr/images/vfr/top2/topvfrbg.gif">&nbsp;</td>
  </tr>
</tbody></table>



2012년 9월 4일 화요일

오픈마켓

옥션          yj6221
G마켓       yj622112
11번가            "
홈페이지  yj780

2012년 8월 27일 월요일

g4_path 변수가 선언되지 않았습니다. js/capslock.js

 g4_path 변수가 선언되지 않았습니다. js/capslock.js  

아웃로그인 출력할때 에러가나온다. 아래 빨간색으로 표시된  include 문을 추가

<?

include_once("./_common.php");
include_once("$g4[path]/head.sub.php");

include_once("$g4[path]/lib/outlogin.lib.php");
?>

출처 : http://refe.tistory.com/entry/g4path-%EB%B3%80%EC%88%98%EA%B0%80-%EC%84%A0%EC%96%B8%EB%90%98%EC%A7%80-%EC%95%8A%EC%95%98%EC%8A%B5%EB%8B%88%EB%8B%A4-jscapslockjs

오픈카트 에러

Warning: imagejpeg() [function.imagejpeg]: SAFE MODE Restriction in effect. The script whose uid is 10008 is not allowed to access /var/www/vhosts/edvantedge.net/httpdocs/store/image/cache/data owned by uid 48 in /var/www/vhosts/edvantedge.net/httpdocs/store/system/library/image.php on line 45Warning: imagejpeg() [function.imagejpeg]: Invalid filename in /var/www/vhosts/edvantedge.net/httpdocs/store/system/library/image.php on line 45Warning: imagejpeg() [function.imagejpeg]: SAFE MODE Restriction in effect. The script whose uid is 10008 is not allowed to access /var/www/vhosts/edvantedge.net/httpdocs/store/image/cache/data owned by uid 48 in /var/www/vhosts/edvantedge.net/httpdocs/store/system/library/image.php on line 45Warning: imagejpeg() [function.imagejpeg]: Invalid filename in /var/www/vhosts/edvantedge.net/httpdocs/store/system/library/image.php on line 45Warning: imagejpeg() [function.imagejpeg]: SAFE MODE Restriction in effect. The script whose uid is 10008 is not allowed to access /var/www/vhosts/edvantedge.net/httpdocs/store/image/cache/data owned by uid 48 in /var/www/vhosts/edvantedge.net/httpdocs/store/system/library/image.php on line 45Warning: imagejpeg() [function.imagejpeg]: Invalid filename in /var/www/vhosts/edvantedge.net/httpdocs/store/system/library/image.php on line 45Warning: imagejpeg() [function.imagejpeg]: SAFE MODE Restriction in effect. The script whose uid is 10008 is not allowed to access /var/www/vhosts/edvantedge.net/httpdocs/store/image/cache/data owned by uid 48 in /var/www/vhosts/edvantedge.net/httpdocs/store/system/library/image.php on line 45Warning: imagejpeg() [function.imagejpeg]: Invalid filename in /var/www/vhosts/edvantedge.net/httpdocs/store/system/library/image.php on line 45Warning: imagejpeg() [function.imagejpeg]: SAFE MODE Restriction in effect.

오픈카트 설치후 메인상단에 퍼미션 에러가 뜬다.
image/cache에 퍼미션을 755나 777로 준다. 안되면 하위디렉토리에도 퍼미션을 준다.

출처: http://forum.opencart.com/viewtopic.php?f=19&t=61441

2012년 8월 9일 목요일

워드프레스 설치의 곤욕

설치하는데 1시간 이상 소요
wordpress디렉토리가 아닌 메인도메인에서 설치하려고 했음

압축을 풀어서 wordpress디렉토리 안의 파일들을 FTP로 계정에 전송

파이어폭스 주소창에 메인도메인을 입력했으나 계속해서 흰색바탕화면만 나옴.
ie에서는 파일내용이 잘못됬다고 나옴 (error.log는 안봤음)

결국 wordpress경로에서 설치
그후 관리자에서 경로 바꾸어 주고 index.php파일을 상위 디렉토리로 옮겨준후 내용 수정
require(‘./wp-blog-header.php’);     ==> require(‘./wordpress/wp-blog-header.php’);

http://itta.co.kr/?p=36  글참고

ftp서버

$sudo apt-get install vsftpd

$ sudo vi /etc/vsftpd.conf

anonymous_enable=NO //익명사용자 접속
local_enable=YES //로컬사용자 접속
write_enable=YES //로컬사용자의 명령수행
세군데 주석 제거

데몬 재시작
$service vsftpd restart

phpmyadmin 계정 만들기

검색창 - 내부아이피/phpmyadmin

로그인

데이터베이스 생성

사용권한에서 사용자 추가
사용자명
호스트
비번
(각각 입력수 수정버튼을 누르면 사용자추가 완료)

사용자 권한수정에서
데이터베이스에 대한 권한 추가하기가 있다
목록을 클릭하고 (만든_db)선택

데이터베이스에 대한 권한수정에서 (모두체크)
데이터 - 구조 - administration이 모두 체크된다.


실행을 클릭하고 사용자권한을 확인해 본다

간단한 프로세스는 다음과 같다
mysql접속 - 데이터베이스 만들기 - mysql테이블에서 user에 호스트,계정,비밀번호 등록 - 만들어진 호스트,계정,비밀번호를 db에 등록

2012년 8월 4일 토요일

윈도우7 드림위버 CS5에서 add form tag? 상자가 나오게 하려면

C:\Documents and Settings\dd\Application Data\Adobe\Dreamweaver CS5\en_US\Configuration\Objects\Forms\_notes폴더를 삭제

윈도우7에서는 Documents and Settings폴더가 숨겨져 있다.

windows7에서 Documents and Settings를 액세스 하는 법 참고

2012년 7월 28일 토요일

phpmyadmin 한글팩, 한글 언어팩

3.4.x 한글팩

다운로드
http://blog.yesyo.com

설치경로
/usr/share/phpmyadmin/locale/ko/LC_MESSAGES
phpmyadmin.mo 파일의 퍼미션이 600으로 되어있을 것이다. 644로 바꿔줄것

설치후에는
/catalog/language/korean/korean.php의 퍼미션을 755로 바꿔준다. 이과정을 생략하고 메인에서 한글버튼을 누르면 에러가 난다.

우분투 phpmyadmin 설치

sudo apt-get install phpmyadmin

설치중 dbconfig-common할꺼냐고 묻는다 (이미 아파치서 비밀번호 설정했다면 No)
Web server to reconfigure automatically: apache2할꺼냐고 묻는다. (웹서버에서 아파치를 자동변경하도록 apache2 선택)

sudo vi/etc/apache2/apache2.conf
구문 추가
Include /etc/phpmyadmin/apache.conf

apache 재시작
sudo /etc/init.d/apache2 restart

결과 확인
http://localhost/phpmyadmin




참조: http://www.studyc.co.kr/bbs/board.php?bo_table=linux&wr_id=5

iptime vpn

http://iptime.co.kr/bbs/view.php?id=faq_setup&page=1&ffid=&fsid=&dffid=&dfsid=&dftid=&sn1=&divpage=1&dis_comp=&sn=off&ss=on&sc=on&select_arrange=headnum&desc=asc&dis_comp=&ng_value=&x_value=&no=513

http://iptime.co.kr/bbs/view.php?id=qna&page=1&ffid=&fsid=&dffid=&dfsid=&dftid=&sn1=&divpage=69&dis_comp=&sn=off&ss=on&sc=on&select_arrange=headnum&desc=asc&dis_comp=&ng_value=&x_value=&no=241958

2012년 7월 21일 토요일

삼바서버

설치
#sudo apt-get install samba smbfs

사용자 설정
#sudo vi /etc/samba/smb.conf
설정 참고
http://jweh.tistory.com/80
사용자 등록
sudo smbpasswd -a 아이디
사용자 삭제
smbpasswd -x 아이디

재실행
sudo /etc/init.d/smbd restart

포트포워드 설정
netbios-ssn:tcp 139
microsoft-ds:tcp 445
netbios-dgm:udp 138
netbios-ns:udp 137


덧.
부트포워딩은 해줄 필요가 없다고 한다

2012년 7월 7일 토요일

장치 드라이버를 찾지 못했습니다. 설치 미디어에 올바른 드라이버가 있는지 확인한 다음 [확인]을 클릭하십시오.

2012년 5월 18일 금요일

Mysql error "InnoDB: Unable to lock ./ibdata1, error: 11"

find / -name ibdata1해봐서 원본파일 찾은다음 복사해준다

mv ibdata1 ibdata1.bak
cp -a ibdata1.bak ibdata1

출처: http://cglreport.zhenhua.info/2008/08/mysql-error-unable-to-lock-ibdata1.html

 

mv /var/lib/mysql/ibdata1 /var/lib/mysql/ibdata1.bak
cp -a /var/lib/mysql/ibdata1.bak /var/lib/mysql/ibdata1

출처: http://help-php.com/mysql-error-innodb/

sudo /etc/init.d/mysql stop

sudo apt-get purge mysql*

2012년 5월 13일 일요일

열려있는 포트 확인

#netstat -na | grep LISTEN

tcp        0      0 127.0.0.1:53            0.0.0.0:*               LISTEN    
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN    
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN    
tcp6       0      0 :::80                   :::*                    LISTEN    
tcp6       0      0 ::1:631                 :::*                    LISTEN    
unix  2      [ ACC ]     STREAM     LISTENING     8421     /tmp/.X11-unix/X0
unix  2      [ ACC ]     STREAM     LISTENING     8196     /var/run/cups/cups.sock
unix  2      [ ACC ]     STREAM     LISTENING     13368    /tmp/ssh-sLojxCbr2290/agent.2290
unix  2      [ ACC ]     STREAM     LISTENING     12393    /tmp/keyring-uJCsHZ/control
unix  2      [ ACC ]     STREAM     LISTENING     12394    /tmp/keyring-uJCsHZ/ssh
unix  2      [ ACC ]     STREAM     LISTENING     13419    /tmp/.menu-cached-:0-jin
unix  2      [ ACC ]     STREAM     LISTENING     12505    /tmp/.pcmanfm-socket--0-jin
unix  2      [ ACC ]     STREAM     LISTENING     12991    /home/jin/.pulse/d353481a31e38a8575d3e37b00000006-runtime/native
unix  2      [ ACC ]     STREAM     LISTENING     293091   /tmp/.lxterminal-socket:0.0-jin
unix  2      [ ACC ]     STREAM     LISTENING     12381    @/tmp/dbus-IDhaHEUXgF
unix  2      [ ACC ]     STREAM     LISTENING     6612     @/com/ubuntu/upstart
unix  2      [ ACC ]     STREAM     LISTENING     7830     @/org/bluez/audio
unix  2      [ ACC ]     STREAM     LISTENING     8420     @/tmp/.X11-unix/X0
unix  2      [ ACC ]     SEQPACKET  LISTENING     6761     /run/udev/control
unix  2      [ ACC ]     STREAM     LISTENING     7817     /var/run/sdp
unix  2      [ ACC ]     STREAM     LISTENING     7049     /var/run/dbus/system_bus_socket
unix  2      [ ACC ]     STREAM     LISTENING     9114     /var/run/mysqld/mysqld.sock
unix  2      [ ACC ]     STREAM     LISTENING     7128     /var/run/avahi-daemon/socket

2012년 4월 30일 월요일

리눅스용 네로

리눅스용 네로는 무겁고 삭제도 콘솔에서 명령을 내려야 한다
깔끔하게 sudo apt-get remove --purge nerolinux 명령을 줬다
xfce라면 xfburn
kde라면 k3b
gnome이라면 brasero에서 굽자

2012년 4월 28일 토요일

MySQL에서 Access denied for user 'root'@'localhost' (using password: YES)

MySQL 백업하려고 했더니
Access denied for user 'root'@'localhost' (using password: YES)
이 난리 피길래, killall mysqld하니 백업명령이 먹힌다. 일단 임시방편

2012년 4월 21일 토요일

키샷3 크랙 인증

1. 키샷3 인스톨

2. 설치 후 크랙 폴더내의 keyshot3.exe 파일을 설치 폴더에 덮어 쓰기
-> C:\Program Files\KeyShot3\bin

 3. 키젠을 실행하여 keyshot3.lic 파일을 생성하고 아래의 폴더에 저장
-> C:\users\[username]\Documents\KeyShot 3\

 4. 키샷3 실행

2012년 4월 3일 화요일

failed to exexute default file manager.

failed to exexute default file manager.
괜히 엄한 파일매니저를 지정해서 그런다
터미널에서
exo-preferred-applications -c
하면 대화상자가 나온다. 여기서 설치된 파일매니저를 지정한다.
 
출처: askubuntu.com
 

2012년 3월 24일 토요일

http://yoshiboarder.tistory.com/134

http://cdmanii.com/1121

sftp://root@121.126.174.160:22

http://bpm28.tistory.com/159

http://woongnemo.tistory.com/79

2012년 3월 16일 금요일

2012 kcp수수료


참고로 바뀌는 KCP 수수료는 다음과 같습니다. (부가세 별도)

가입비 : 20만원
연회비 : 없음
신용카드 : 3.2%계좌이체 : 2%, 소액은 건당 250원
가상계좌 : 건당 300원
휴대폰 : 실물 6.5% / 컨텐츠 9%
보증보험료 : 기본면제
(단, 유의업종은 별도협의)
 
감사합니다.

2012년 3월 15일 목요일

이미지 검색을 할 때, 사이즈 구분을 어떻게 하는지 궁금합니다.

출처: 구글포럼

질문.
이미지 검색을 할 때, 사이즈 구분을 어떻게 하는지 궁금합니다.
사이즈에 대한 구분을
    큰 사이즈 중간 사이즈 아이콘
로 선택할 수 있는 항목이 있는데,
(예를 들어)가로150px, 세로50px 일 때, 합이 200px을 넘어가면 중간사이즈, 그 이하는 아이콘이 되는 걸까요

무척 궁금한 내용입니다. 도움 바랍니다.



-------
안녕하세요, 이지오 구글앱스 컨설팅입니다.

몇년전에는 small/medium/large, 이렇게 였는데, 언제부턴가 small이 icon으로 바뀌었습니다.
그렇게 보면 2008년까지의 기준은:
  • Icon: 51x51
  • medium: 그 사이
  • large: 1028x768
그런데 이것이 2012년 3월 현재는:
  • Icon: 256x256
  • medium: 그 사이
  • large: 1028x768
이렇게 확인이 되네요.

크기의 구분은 가로든 세로든 기준을 넘기면 그 다음 그룹이 됩니다.
예를들어 257x10, 10x257은 medium, 1028x10, 10x768는 large, 이렇게요.

혹시, 다른분이라도 더 정확한 reference가 있다면 정정 부탁 드립니다.

2012년 3월 10일 토요일

hp officejet j3603

초기화
전원 켜진 상태에서 전원선빼고 3과 #을 동시에 누른 상태에서  전원선을 연결
후에 언어와 국가설정
http://cafe.naver.com/hpprinting.cafe?iframe_url=/ArticleRead.nhn%3Farticleid=5367&


프린트 테스트
OK와 취소를 동시에 누른다.

2012년 3월 7일 수요일

압축파일을 /backup 에다가 저장

압축파일을 /backup 에다가 저장하고 싶으면
tar cvfp /backup/original.tar /usr/local/apache/htdocs/

2012년 3월 2일 금요일

리눅스 ip 수동설정

http://hybridego.net/1136

페이스북 댓글달기

1. (그누보드)
<?php
$id_url = 'http://'.$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF'].'?bo_table='.$bo_table.'&amp;wr_id='.$wr_id;
$num_posts = 5;
$width = 700;
?>
<div id="fb-root"></div><script src="http://connect.facebook.net/en_US/all.js#xfbml=1"></script><fb:comments href="<?php echo $id_url?>" num_posts="<?php echo $num_posts?>" width="<?php echo $width?>"></fb:comments>


2.
<!-- facebook comment markup START-->
<script>    (function (d, s, id) {
        var js, fjs = d.getElementsByTagName(s)[0];
        if (d.getElementById(id)) { return; }
        js = d.createElement(s); js.id = id;
        js.src = "//connect.facebook.net/ko_KR/all.js#xfbml=1&appId=발급받은 아이디";
        fjs.parentNode.insertBefore(js, fjs);
    } (document, 'script', 'facebook-jssdk'));</script>

            <!-- facebook comment markup BEGIN-->
            <div id="fb-s-media">
                <div class="fb-comments fb-url" data-href="<?php $url ?>" data-width="375">
                </div>
            </div>
            <script type="text/javascript">
                $(".fb-url").attr("data-href", document.URL);
                $(".g-url").attr("href", document.URL);
            </script>
            <!-- facebook comment markup END-->

2012년 2월 27일 월요일

일본어 쇼핑몰 정보

참고: http://blog.yahoo.com/_43G5CZLXFU3NB7KJPMZKQVE654/articles/page/1

요즘은 한국에서 일본인 상대로 일본어쇼핑몰을 운영하여 대박을 터트리는 업체들이 많다. 일본어쇼핑몰은 페이팔 카드결재를 연동하면 국내에서도 누구나 일본어쇼핑몰을 운영할 수 있다. 페이팔결재는 국내pg사와 달리 개인도 초기비용없이 가입 가능하다. 일본어는 나까마가 서포터합니다.

그누보드 그룹메뉴 사용시에 그룹별 최신게시물 스킨 다르게 적용하기

/bbs/group.php
  • 22번째 줄에서 for문에 제어문 추가
  • echo문에서 최근게시물 스킨 변경 (경로: /skin/latest)

if ($gr_id==G01) {
    for ($i=0; $row=sql_fetch_array($result); $i++) {
        // 이 함수가 바로 최신글을 추출하는 역할을 합니다.
        // 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
        // 사용방법
        // latest(스킨, 게시판아이디, 출력라인, 글자수);
        echo latest("simple_gallery2", $row[bo_table], 4, 90);
        echo "<p>";}
}
elseif ($gr_id==G02) {
    for ($i=0; $row=sql_fetch_array($result); $i++) {
        // 이 함수가 바로 최신글을 추출하는 역할을 합니다.
        // 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
        // 사용방법
        // latest(스킨, 게시판아이디, 출력라인, 글자수);
        echo latest("basic", $row[bo_table], 12, 90);
        echo "<p>";}
}
else {
    for ($i=0; $row=sql_fetch_array($result); $i++) {
        // 이 함수가 바로 최신글을 추출하는 역할을 합니다.
        // 스킨은 입력하지 않을 경우 관리자 > 환경설정의 최신글 스킨경로를 기본 스킨으로 합니다.
        // 사용방법
        // latest(스킨, 게시판아이디, 출력라인, 글자수);
        echo latest("basic", $row[bo_table], 8, 90);
        echo "<p>";}
}

그누보드 게시판에서 이미지 업로드시 /bbs/write_update.php에서 안넘어 갈때

참고: PHPSCHOOL

그누보드 게시판에서 이미지 업로드시 /bbs/write_update.php에서  안넘어 간다. 브라우저에서 에러메시지도 안나오고 오로지 흰색화면만 나오는 거다.

문제는 퍼미션 에러.
/data/file/B11의 퍼미션을 757로 변경했더니 이미지 업로드가 잘된다.

2012년 2월 26일 일요일

오류

파일 또는 글내용의 크기가 서버에서 설정한 값을 넘어 오류가 발생하였습니다.

post_max_size=8M , upload_max_filesize=2M

게시판관리자 또는 서버관리자에게 문의 바랍니다.

그누보드 최고관리자 비밀번호 분실시 복구방법

출처: threes.org

최고관리자 또는 사용자의 비밀번호를 변경하고 할때 사용하실수 있는 방법입니다.

telnet으로 들어가서 mysql에서 다음과 같이 작업하시거나
phpMyAdmin의 sql 실행환경에서 다음과 같이 실행하시면 됩니다.

다음의 예제는 admin 이라는 관리자(사용자)의 비밀번호를 aaa 로 변경하는것입니다.

update g4_member set mb_password = password('aaa') where mb_id='admin';

그누보드 자동등록방지 이미지는 보이고, 숫자만 안보일때

출처: 그누보드4 활용팁
 
제목이 약간 황당하죠?
말그대로 자동등록방지 (CSRF 방지) 이미지는 보이지만(정상작동)..
정작 입력하고자 하는 숫자가 안보이는 경험을 했습니다.

프로그램을 다시 덮어쓰고 여러가지 노력을 했는데...
해답은 의외의 곳에서 있었습니다.

그것은  data / session 폴더의 소유권이 root 로 변경되어, session 생성할수 없었기 때문이었습니다.

수정전


수정후


그누보드 / data / session 소유권을 웹호스팅 계정의 것으로 변경해야 합니다.

웹호스팅 서비스를 받는 경우에는 호스팅 회사에 소유권 변경해달라고 신청하세요.

텔넷으로 홈페이지 접속후  ls -al  이렇게 명령어를 치면 소유권 등 상세한 정보를 보실수 있습니다.

잘 이해가 안되시면  홈페이지의 FTP ID 와 Password 를 쪽지로 보내시면 점검해드리겠습니다.

2012년 2월 25일 토요일

centos 그누보드 설치시 에러

환경설정의 최신글 스킨경로를 기본 스킨으로 합니다. // 사용방법 // latest(스킨, 게시판아이디, 출력라인, 글자수); echo latest("basic", $row['bo_table'], 10, 70); echo "
\n"; } ?>

위와 같은 에러문이 출력.
php.ini 설정에서 short_open_tag 를 on으로 설정.

  • short_open_tag = On
  • <? 태그의 사용을 허가한다. 허가하지 않으면 <?php와 <script>태그만 인식된다.

경로: /usr/local/server/apache/conf/php.ini
위 경로에 php.ini파일이 존재하지 않을 경우, httpd를 stop했다가 start해 본다.

2012년 2월 22일 수요일

2012년 2월 17일 금요일

centos 가상호스트 참고

http://srue.net/81

/etc/httpd/conf/httpd.conf

/etc/httpd/conf/httpd.conf
#<VirtualHost *:80>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>:




/usr/local/server/apache/conf/extra/httpd-vhosts.conf

NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "/usr/local/server/apache/docs/dummy-host.example.com"
    ServerName dummy-host.example.com
    ServerAlias www.dummy-host.example.com
    ErrorLog "logs/dummy-host.example.com-error_log"
    CustomLog "logs/dummy-host.example.com-access_log" common
</VirtualHost>

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host2.example.com
    DocumentRoot "/usr/local/server/apache/docs/dummy-host2.example.com"
    ServerName dummy-host2.example.com
    ErrorLog "logs/dummy-host2.example.com-error_log"
    CustomLog "logs/dummy-host2.example.com-access_log" common
</VirtualHost>

centos 웹서버

참고: http://kch1183.blog.me
참고: http://gudle.net

설치 확인
# rpm -qa httpd php mysql

삭제
# yum remove -y httpd php mysql

mysql 사용자 등록 확인
# cat /etc/passwd

mysql 사용자 삭제
# userdel -r mysql

패키지 설치
# yum -y install mysql mysql-server mysql-connector-odbc mysql-devel
메모리설정 파일 복사
# cp /usr/share/mysql/my-huge.cnf /etc/my.cnf
# cp /etc/my.cnf /etc/my.cnf.org 로 이름을 바꾸고 파일을 복사

my.cnf파일에 utf-8인코딩 추가
[client]
default-character-set   = utf8
[mysqld]
init_connect = SET collation_connection = utf8_general_ci
init_connect = SET NAMES utf8
default-character-set = utf8
character-set-server = utf8
collation-server = utf8_general_ci
[mysqldump]
default-character-set=utf8
[mysql]
default-character-set=utf8

서비스 가동
#/etc/rc.d/init.d/mysqld start
서비스 가동 실패(fail)시 에러확인
# cat /var/log/mysqld.log
120217 17:07:21 [ERROR] Can't start server: Bind on TCP/IP port: Address already in use
120217 17:07:21 [ERROR] Do you already have another mysqld server running on port: 3306 ?
120217 17:07:21 [ERROR] Aborting
라고 나와서 관련프로세스를 죽였다.
# killall mysqld
# killall mysql
(두번째 재설치 할때는 A mysqld process already exists at 에러가  나왔다.)

mysql 접속 및 문자셋 확인
# mysql -u root
mysql> show variables like 'c%';

root 암호 초기화
mysql> USE mysql;
mysql> UPDATE user SET password=password('new_password') WHERE user='kella';
mysql> FLUSH privileges;
또는
/usr/bin/mysqladmin -u root password 'new-password'

데이터베이스 선택 및 보기
mysql> USE mysql;
mysql> SELECT Host, User, Password FROM user;

apache 설치
참조: http://batsu05.tistory.com/53
# vi /usr/local/server/apache/conf/httpd.conf
마지막줄에 추가한다.
AddDefaultCharset UTF-8
# service httpd restart


php 설치
# tar -xvzf php-5.3.10.tar.gz
# cd php-5.3.10
#  .confiure.. (옵션)
옵션
./configure --prefix=/usr/local/server/php --with-apxs2=/usr/local/server/apache/bin/apxs --with-mysql=/usr/local/server/mysql --with-config-file-path=/usr/local/server/apache/conf --disable-debug --enable-safe-mode --enable-track-vars --enable-sockets --with-charset=utf8 --with-xml --with-language=korean --enable-calender --enable-sysvsem=yes --enable-sysvshm=yes --enable-ftp --enable-magic-quotes --enable-gd-native-ttf --enable-url-includes --enable-inline-optimization --enable-bcmath --with-jpeg --with-png  --with-zlib --with-jpeg-dir=/usr --with-png-dir=/usr/lib --with-freetype-dir=/usr --with-libxml-dir=/usr --enable-exif --with-gd --with-ttf --with-gettext --enable-sigchild --enable-mbstring
(옵션에 맞는 라이브러리가 없어서 에러가 날 경우도 있다. 구글에서 에러문을 검색해 본다.)

# make && make install

CentOS 리눅스 구축관리실무 책에 보면은 php.ini-dist 파일을 /usr/local/server/apache/conf/php.ini로 이동하라고 되어있다.

하지만 설치한 php5.3버전에는 존재하지 않는 파일, 검색결과 5.3버전부터는 php.ini-production 파일을 이동하면 된다고 한다.

#vi /usr/local/server/apache/conf/httpd.conf

<IfModule dir_module>
    DirectoryIndex index.html index.htm index.php
</IfModule>
.
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
AddType application/x-httpd-php .htm .html .php .php3 .php4 .inc
AddType application/x-httpd-php-source .phps


# vi /usr/local/server/apache/htdocs/phpinfo.php
<?php
phpinfo();
?>
//작성

2012년 2월 16일 목요일

useradd: user mysql exists

mysql계정생성 명령을 주니 나온 메시지.

mysql사용자가 존재하기 때문이다. (mysql을 설치했으나 밀었던 상태인 것이다.)
#cat /etc/passwd 명령을 주고

mysql사용자가 존재한다면
#userdel -r mysql 명령을 준다

libwmf

2012년 2월 14일 화요일

centOS 디렉토리 구조

출처: http://okprince.egloos.com/1872186

/ (root) 폴더
시스템의 근간이 되는 가장 중요한 디렉토리

bin
시스템 관리자 혹은 일반 사용자가 실행할 수 있는 수많은 명령어 저장
cat, chmod, date, vi, env,ls, mkdir, rm, touch

boot
부트로더와 부팅에 필요한 필수적인 파일 저장, 디렉토리의 파일들 손상되면 부팅되지 않는다

dev
시스템의 디바이스 파일들 저장, 시스템이 있는 모든 장치가 파일로 표현, udev 데몬이 관리

etc
매우 중요한 곳으로 시스템 혹은 각종 프로그램들이 환경설정 파일들이 저장, 시스템 관리하다 보면 이곳에 위치한 파일들을 수정하는 일 많다.

/etc/fstab : 파일 시스템 관리
/etc/group : 그룹 관리
/etc/inittab : init 관리
/etc/passwd : 계정 관리
/etc/serivce : 포트 정보
/etc/sysconfig/iptables : 방화벽 설정
/etc/sysconfig/network-scripts/ifcfg-eth0 : 네트워크 카드 설정

home
유저들의 홈 디렉토리가 하위 디렉토리 형식으로 위치

lib
시스템에 있는 프로그램들이 실행할 때 필요한 공유 라이브러리 저장

media
플로피 디스크 cd-rom, dvd-rom등과 같은 이동식 디스크들이 마운트되는 곳. 이동식 디스크 삽입시 자동으로 마운트 해주는 automount가 실행되어 있으면 이동식 디스크가 삽입되면 자동으로 검색하여 /media/미디어이름 형식으로 마운트 된다.

mnt
NFS와 같은 파일시스템이 임시로 마운트되는 곳

opt
애드온 소프트웨어를 설치 할 수 있도록 만들어진 디렉토리

proc
실행중인 프로셋의 정보와 cpu, 메모리등의 시스템 정보가 가상의 파일로 저장, 숫자로 된 디렉토리들은 실행중인 프로세스들이 정보가 담겨있다.

/proc/cpuinfo : cpu 정보
/proc/devices : 현재 커널에 설정되어 있는 장치의 목록
/proc/filesystems : 현재 커널에 설정되어 있는 파일시스템 목록
/proc/loadavg : 시스템의 평균 부하량
/proc/meminfo : 메모리 정보
/proc/stat : 시스템 상태
/proc/uptime : 시스템이 켜져있는 시간
/proc/version : 현재 커널의 버전
/proc/net/ : 네트워크 관련 정보를 볼 수 있는 파일들이 있는 디렉토리

sbin
시스템 관리자용 명령어

ifconfig, reboot, suhudown, mount, fsck, mkfs, iptables

srv
서비스 디렉토리로 주로 ftp,http,cvs등의 데이터 존재

sys
시스템이 필요로하는 파일

tmp
임시로 파일을 만들고 삭제하는 공간

usr
일반 사용자들을 위한 대부분의 프로그램들이 위치

var
log파일등 수시로 업데이트 되는 파일들이 위치
var/log에는 각종 log파일이 저장
lost+found
부팅시 파일시스템에 문제가 생길 경우 fsck명령어로 복구할 때 사용되는 디렉토리, 파티션 마다 하나씩 존재한다.

centOS 하드용량

Filesystem            Size  Used Avail Use% Mounted on
/dev/hda6              20G  1.1G   18G   6% /
/dev/hda2             433G  105M  411G   1% /backup
/dev/hda1              99M   18M   76M  19% /boot
none                  2.0G     0  2.0G   0% /dev/shm
/dev/hda3             433G  166M  411G   1% /home
/dev/hda5              29G  3.4G   25G  13% /usr

centOS usr 디렉토리

drwxr-xr-x    7 root root  4096 Feb 12  2009 X11R6
drwxr-xr-x    2 root root 69632 Feb 10 04:06 bin
drwxr-xr-x    2 root root  4096 Feb 22  2005 etc
drwxr-xr-x    7 root root  4096 Feb  9 10:54 evolution28
drwxr-xr-x    2 root root  4096 Feb 22  2005 games
drwxr-xr-x   76 root root 12288 Feb  9 21:07 include
drwxr-xr-x    6 root root  4096 Dec 28 05:48 kerberos
drwxr-xr-x  117 root root 65536 Feb 13 04:02 lib
drwxr-xr-x   11 root root  4096 Feb 10 04:06 libexec
drwxr-xr-x   12 root root  4096 Feb  9 11:16 local
drwx------    2 root root 16384 Feb  9 19:30 lost+found
drwxr-xr-x    2 root root 20480 Feb 10 04:06 sbin
drwxr-xr-x  229 root root 12288 Feb  9 20:58 share
drwxr-xr-x    4 root root  4096 Feb  9 11:02 src
lrwxrwxrwx    1 root root    10 Feb  9 10:33 tmp -> ../var/tmp

centOS tftboot 디렉토리

drwxr-xr-x  4 root root 4096 Feb  9 11:04 linux-install

centOS sbin 디렉토리

-rwxr-xr-x  1 root root   25712 Mar  9  2006 MAKEDEV
-rwxr-xr-x  1 root root    6720 Jan 18  2007 accton
-rwxr-xr-x  1 root root    5244 Feb 18  2011 addpart
-rwxr-xr-x  1 root root   10122 Jul 19  2007 adsl-connect
-rwxr-xr-x  1 root root   12888 Jul 19  2007 adsl-setup
-rwxr-xr-x  1 root root    6451 Jul 19  2007 adsl-start
-rwxr-xr-x  1 root root    2748 Jul 19  2007 adsl-status
-rwxr-xr-x  1 root root    3030 Jul 19  2007 adsl-stop
-rwxr-xr-x  1 root root   15892 Feb 18  2011 agetty
-rwxr-xr-x  1 root root   35760 Jun  2  2009 alsactl
-rwxr-xr-x  1 root root   49680 Feb 25  2011 arp
-rwxr-xr-x  1 root root   14116 Sep  1  2010 arping
-rwxr-xr-x  1 root root   49972 Feb 22  2008 arptables
-rwxr-xr-x  1 root root   54208 Feb 22  2008 arptables-restore
-rwxr-xr-x  1 root root   52688 Feb 22  2008 arptables-save
-rwxr-x---  1 root root   72948 Feb  3  2010 auditctl
-rwxr-x---  1 root root   87808 Feb  3  2010 auditd
-rwxr-x---  1 root root   86808 Feb  3  2010 aureport
-rwxr-x---  1 root root   97452 Feb  3  2010 ausearch
-rwxr-x---  1 root root   55872 Feb  3  2010 autrace
-rwxr-x---  1 root root   15728 Jun  2  2009 avmcapictrl
-rwxr-xr-x  1 root root   19348 Jun  2  2009 badblocks
-rwxr-xr-x  1 root root    8844 Jun  2  2009 blkid
-rwxr-xr-x  1 root root    9808 Feb 18  2011 blockdev
-rwxr-xr-x  1 root root    9824 Feb 22  2005 bluefw
-rwxr-xr-x  1 root root   28112 Jun  2  2009 capiinit
-rwxr-xr-x  1 root root   19109 Mar  8  2006 cardctl
-rwxr-xr-x  1 root root   44376 Mar  8  2006 cardmgr
-rwxr-xr-x  1 root root    5424 May  6  2007 change_console
-rwxr-xr-x  1 root root   41832 Oct 26  2006 chkconfig
lrwxrwxrwx  1 root root       7 Feb  9 18:00 clock -> hwclock
-rwxr-xr-x  1 root root    4832 May 12  2010 consoletype
-rwxr-xr-x  1 root root  846592 Apr 20  2008 cryptsetup
-rwxr-xr-x  1 root root    5452 Feb 18  2011 ctrlaltdel
-rwxr-xr-x  1 root root   61356 Jun  2  2009 debugfs
-rwxr-xr-x  1 root root    5160 Feb 18  2011 delpart
-rwxr-xr-x  1 root root   77432 Jun  2  2009 depmod
-rwxr-xr-x  1 root root  397036 Aug 16 06:02 dhclient
-rwxr-xr-x  1 root root   17898 Aug 16 06:02 dhclient-script
-rwxr-x---  1 root root  140528 Jul 26  2008 dhcp6c
-rwxr-xr-x  1 root root    2987 Jun  2  2009 diskdumpctl
-rwxr-xr-x  1 root root   13128 Jun  2  2009 diskdumpctl_proc
-rwxr-xr-x  1 root root   24248 Jun  2  2009 diskdumpfmt
-rwxr-xr-x  1 root root   49976 Jun  2  2009 diskdumpmsg
-rwxr-x---  1 root root   23564 Jun  2  2009 divaload
-rwxr-x---  1 root root   34024 Jun  2  2009 divalog
-rwxr-x---  1 root root    9824 Jun  2  2009 divalogd
-rwxr-x---  1 root root   14752 Jun  2  2009 divertctrl
-r-xr-xr-x  1 root root   24392 Feb 18  2011 dmeventd
-rwxr-xr-x  1 root root  678460 Jul 26  2008 dmraid
-rwxr-xr-x  1 root root  678464 Jul 26  2008 dmraid.static
-r-xr-xr-x  1 root root   45596 Feb 18  2011 dmsetup
-r-xr-xr-x  1 root root  647040 Feb 18  2011 dmsetup.static
-rwxr-xr-x  3 root root   44420 Feb 25  2011 dosfsck
-rwxr-xr-x  1 root root   46108 Feb 25  2011 dosfslabel
-rwxr-xr-x  1 root root  685712 Aug 17  2010 dump
lrwxrwxrwx  1 root root       4 Feb  9 17:55 dump.static -> dump
-rwxr-xr-x  1 root root   23108 Mar  8  2006 dump_cis
-rwxr-xr-x  1 root root   12024 Jun  2  2009 dumpe2fs
-rwxr-xr-x  1 root root   21320 Jun  2  2009 dumpfilter
-rwxr-xr-x  3 root root  613112 Jun  2  2009 e2fsck
-rwxr-xr-x  1 root root   12176 Jun  2  2009 e2image
-rwxr-xr-x  3 root root   23752 Jun  2  2009 e2label
-rwxr-x---  1 root root   69352 Jun  2  2009 eiconctrl
-rwxr-xr-x  1 root root    7656 Feb 18  2011 elvtune
-rwxr-xr-x  1 root root   11032 Feb 25  2011 ether-wake
-rwxr-xr-x  1 root root  107984 Nov 17  2007 ethtool
-rwxr-xr-x  1 root root   83056 Feb 18  2011 fdisk
-rwxr-xr-x  3 root root   23752 Jun  2  2009 findfs
-rwxr-xr-x  1 root root    5818 Nov 17  2007 fixfiles
-rwxr-xr-x  1 root root   19752 Jun  2  2009 fsck
-rwxr-xr-x  1 root root   17280 Feb 18  2011 fsck.cramfs
-rwxr-xr-x  3 root root  613112 Jun  2  2009 fsck.ext2
-rwxr-xr-x  3 root root  613112 Jun  2  2009 fsck.ext3
-rwxr-xr-x  3 root root   44420 Feb 25  2011 fsck.msdos
-rwxr-xr-x  3 root root   44420 Feb 25  2011 fsck.vfat
-rwxr-xr-x  1 root root   20624 May 18  2006 fuser
-rwxr-xr-x  1 root root   14128 Jul  2  2009 fxload
-rwxr-xr-x  1 root root    8723 Jun  2  2009 generate-modprobe.conf
-rwxr-xr-x  1 root root    5056 May 12  2010 genhostid
-rwxr-xr-x  1 root root   26184 May 12  2010 getkey
-rwxr-xr-x  1 root root  206320 May  3  2007 grub
-rwxr-xr-x  1 root root   13780 May  3  2007 grub-install
-rwxr-xr-x  1 root root    2293 May  3  2007 grub-md5-crypt
-rwxr-xr-x  1 root root    2473 May  3  2007 grub-terminfo
-rwxr-xr-x  1 root root   54408 Dec 24  2010 grubby
-rwxr-xr-x  1 root root   10948 May  6  2007 halt
-rwxr-xr-x  1 root root   48116 Feb 22  2005 hdparm
-rwxr-x---  1 root root    6328 Jun  2  2009 hisaxctrl
-rwxr-xr-x  1 root root    1160 Jul  2  2009 hotplug
-rwxr-xr-x  1 root root   32680 Feb 18  2011 hwclock
-rwxr-xr-x  1 root root   15928 Jun  2  2009 ibod
-rwxr-x---  1 root root    8860 Jun  2  2009 icnctrl
-rwxr-xr-x  1 root root    2966 Jul 25  2008 ifcfg
-rwxr-xr-x  1 root root   66024 Feb 25  2011 ifconfig
-rwxr-xr-x  1 root root    4569 Apr 21  2010 ifdown
-rwxr-xr-x  1 root root   16824 Sep  1  2010 ifenslave
-rwxr-xr-x  1 root root   22008 Aug 13  2006 ifrename
-rwxr-xr-x  1 root root   15354 Apr 21  2010 ifup
-rwxr-xr-x  1 root root   32716 May  6  2007 init
-rwxr-xr-x  1 root root   36700 May 12  2010 initlog
-rwxr-xr-x  1 root root    7092 Jun  2  2009 insmod
-rwxr-xr-x  1 root root  390656 Jun  2  2009 insmod.static
-rwxr-xr-x  1 root root   20276 Nov  9  2006 install-info
-rwxr-xr-x  1 root root    1694 Dec 24  2010 installkernel
-rwxr-xr-x  1 root root  117764 Jul 25  2008 ip
-rwxr-xr-x  1 root root   12060 Feb 25  2011 ipmaddr
-rwx------  1 root root  202092 Jun  2  2009 ipppd
-rwxr-xr-x  1 root root   10272 Jun  2  2009 ipppstats
-rwxr-x---  1 root root    7108 Jun  2  2009 iprofd
-rwxr-xr-x  1 root root   47764 May 12  2010 iptables
-rwxr-xr-x  1 root root   52528 May 12  2010 iptables-restore
-rwxr-xr-x  1 root root   51024 May 12  2010 iptables-save
-rwxr-xr-x  1 root root   16076 Feb 25  2011 iptunnel
-rwxr-xr-x  1 root root   65672 Jun  2  2009 isdnctrl
-rwxr-xr-x  1 root root  252408 Jun  2  2009 isdnlog
-rwxr-xr-x  1 root root   23376 Aug 13  2006 iwconfig
-rwxr-xr-x  1 root root   13840 Aug 13  2006 iwevent
-rwxr-xr-x  1 root root    9412 Aug 13  2006 iwgetid
-rwxr-xr-x  1 root root   23012 Aug 13  2006 iwlist
-rwxr-xr-x  1 root root   13200 Aug 13  2006 iwpriv
-rwxr-xr-x  1 root root    9932 Aug 13  2006 iwspy
-rwxr-xr-x  1 root root   11236 May  6  2007 killall5
-rwxr-xr-x  1 root root   22320 Feb 17  2011 klogd
-rwxr-xr-x  1 root root  149892 May 12  2010 kmodule
-rwxr-xr-x  1 root root  579680 Feb 18  2011 ldconfig
-rwxr-xr-x  1 root root    7728 Jun  2  2009 logsave
-rwxr-x---  1 root root    6784 Jun  2  2009 loopctrl
-rwxr-xr-x  1 root root   12012 Feb 18  2011 losetup
-rwxr-xr-x  1 root root    5920 Jun  2  2009 lsmod
-rwxr-xr-x  1 root root   56272 May  4  2007 lspci
-rwxr-xr-x  1 root root   47284 Sep 27  2006 lsusb
lrwxrwxrwx  1 root root      10 Feb  9 17:52 lvm -> lvm.static
-r-xr-xr-x  1 root root 1182212 Aug 19 07:42 lvm.static
-rwxr-xr-x  1 root root   90536 Nov 17  2007 mdadm
-rwxr-xr-x  1 root root   15620 Nov 17  2007 mdmpd
-rwx------  1 root root   84992 Jul 26  2008 mgetty
-rwxr-xr-x  1 root root   11344 Feb 18  2011 microcode_ctl
-rwxr-xr-x  1 root root   11904 Feb 25  2011 mii-tool
-rwxr-xr-x  1 root root   12772 Feb 22  2005 mingetty
-rwxr-xr-x  1 root root    7668 May 12  2010 minilogd
-rwxr-xr-x  1 root root    5905 Feb 22  2005 mkbootdisk
-rwxr-xr-x  3 root root   28484 Feb 25  2011 mkdosfs
-rwxr-xr-x  3 root root   34832 Jun  2  2009 mke2fs
-rwxr-xr-x  1 root root    6912 Feb 18  2011 mkfs
-rwxr-xr-x  1 root root   15300 Feb 18  2011 mkfs.cramfs
-rwxr-xr-x  3 root root   34832 Jun  2  2009 mkfs.ext2
-rwxr-xr-x  3 root root   34832 Jun  2  2009 mkfs.ext3
-rwxr-xr-x  3 root root   28484 Feb 25  2011 mkfs.msdos
-rwxr-xr-x  3 root root   28484 Feb 25  2011 mkfs.vfat
-rwxr-xr-x  1 root root   21567 Dec 24  2010 mkinitrd
-rwxr-xr-x  1 root root   13028 Feb 18  2011 mkswap
-rwxr-x---  1 root root   15444 Jun  2  2009 mkzonedb
-rwxr-xr-x  1 root root   57448 Jun  2  2009 modinfo
-rwxr-xr-x  1 root root   69920 Jun  2  2009 modprobe
-rwxr-xr-x  1 root root   29164 Aug 30 05:36 mount.cifs
lrwxrwxrwx  1 root root      19 Feb  9 18:01 mount.smb -> ../usr/bin/smbmount
lrwxrwxrwx  1 root root      19 Feb  9 18:01 mount.smbfs -> ../usr/bin/smbmount
-rwxr-xr-x  1 root root    8408 Feb 25  2011 nameif
-rwxr-xr-x  1 root root   38120 Dec 24  2010 nash
-rwxr-xr-x  1 root root   21324 Feb 25  2011 netplugd
-rwxr-sr-x  1 root root   11371 May 12  2010 netreport
-rwxr-xr-x  1 root root   10049 Dec 24  2010 new-kernel-pkg
-rwxr-xr-x  1 root root    4840 Feb 18  2011 nologin
-rwxr-xr-x  1 root root   34296 Mar  8  2006 pack_cis
-r-xr-xr-x  1 root root  181096 Jul  9  2010 pam_console_apply
-rwxr-xr-x  1 root root  167856 Oct 21 03:25 pam_console_setowner
-rwxr-xr-x  1 root root   11888 Jul  9  2010 pam_tally
-rwxr-xr-x  1 root root   13024 Jul  9  2010 pam_tally2
-r-s--x--x  1 root root   20020 Jul  9  2010 pam_timestamp_check
-rwxr-xr-x  1 root root   43296 Feb  1  2010 parted
-rwxr-xr-x  1 root root    5032 Feb  1  2010 partprobe
-rwxr-xr-x  1 root root   19624 Feb 18  2011 partx
-rwxr-xr-x  1 root root    9831 Oct 21 03:25 path_id
-rwxr-x---  1 root root   11720 Jun  2  2009 pcbitctl
lrwxrwxrwx  1 root root       8 Feb  9 10:36 pidof -> killall5
-rwxr-xr-x  1 root root    4772 Feb 18  2011 pivot_root
-rwxr-xr-x  1 root root    5716 Feb 25  2011 plipconfig
-rwxr-xr-x  1 root root   31360 Feb 22  2005 portmap
lrwxrwxrwx  1 root root       4 Feb  9 10:36 poweroff -> halt
-rwxr-xr-x  1 root root  153468 May 12  2010 ppp-watch
-rwxr-xr-x  1 root root   32424 Jul 19  2007 pppoe
-rwxr-xr-x  1 root root   32688 Jul 19  2007 pppoe-relay
-rwxr-xr-x  1 root root   48688 Jul 19  2007 pppoe-server
-rwxr-xr-x  1 root root   15820 Jul 19  2007 pppoe-sniff
lrwxrwxrwx  1 root root      10 Feb  9 17:52 pvscan -> lvm.static
-r-sr-xr-x  1 root root  301274 Jul  9  2010 pwdb_chkpwd
-rwxr-xr-x  1 root root   91816 Feb 17  2011 quotacheck
lrwxrwxrwx  1 root root       7 Feb  9 18:06 quotaoff -> quotaon
-rwxr-xr-x  1 root root   64896 Feb 17  2011 quotaon
-rwxr-xr-x  1 root root   20028 Sep  1  2010 rdisc
lrwxrwxrwx  1 root root       4 Feb  9 17:55 rdump -> dump
lrwxrwxrwx  1 root root       4 Feb  9 17:55 rdump.static -> dump
lrwxrwxrwx  1 root root       4 Feb  9 10:36 reboot -> halt
-rwxr-xr-x  1 root root  159384 May 12  2010 redhat-support-check
-rwxr-xr-x  1 root root   15500 Jan  1  2006 request-key
-rwxr-xr-x  1 root root   14472 Feb 18  2011 rescuept
-rwxr-xr-x  1 root root   27608 Jun  2  2009 resize2fs
-rwxr-xr-x  1 root root  845808 Aug 17  2010 restore
lrwxrwxrwx  1 root root       7 Feb  9 17:55 restore.static -> restore
-rwxr-xr-x  1 root root   11412 Nov 17  2007 restorecon
-rwxr-xr-x  1 root root    8864 Jun  2  2009 rmmod
-rwxr-xr-x  1 root root  395184 Aug 17  2010 rmt
-rwxr-xr-x  1 root root   10148 Feb 18  2011 rngd
-rwxr-xr-x  1 root root   50200 Feb 25  2011 route
-rwxr-xr-x  1 root root    4128 Feb 17  2011 rpc.lockd
-rwxr-xr-x  1 root root   43404 Feb 17  2011 rpc.statd
-rwxr-xr-x  1 root root   10244 Feb 17  2011 rpcdebug
lrwxrwxrwx  1 root root       7 Feb  9 17:55 rrestore -> restore
lrwxrwxrwx  1 root root       7 Feb  9 17:55 rrestore.static -> restore
-rwxr-xr-x  1 root root   19592 Jul 25  2008 rtmon
-rwxr-xr-x  1 root root    4948 May  6  2007 runlevel
-rwxr-xr-x  1 root root   23204 Feb 17  2011 runuser
-rwxr-xr-x  1 root root   50708 Jun  2  2009 savecore
-rwxr-xr-x  1 root root   40208 Oct 21 03:25 scsi_id
-rwxr-xr-x  1 root root  451044 Oct 21 03:25 scsi_id.static
-rwxr-xr-x  1 root root    1843 May 12  2010 service
-rwxr-xr-x  1 root root   73784 Sep  8  2008 setkey
-rwxr-xr-x  1 root root   31448 May  4  2007 setpci
-rwxr-xr-x  1 root root     839 May 12  2010 setsysfont
-rwxr-xr-x  1 root root   55156 Feb 18  2011 sfdisk
-rwxr-xr-x  1 root root   18452 May  6  2007 shutdown
-rwxr-xr-x  1 root root   32148 Feb 25  2011 slattach
-rwxr-xr-x  1 root root  477674 Feb 18  2011 sln
-rwxr-xr-x  1 root root    5386 Oct 21 03:25 start_udev
-rwxr-xr-x  1 root root   33480 Feb 22  2005 stinit
-rwxr-xr-x  1 root root   15672 May  6  2007 sulogin
lrwxrwxrwx  1 root root       6 Feb  9 18:00 swapoff -> swapon
-rwxr-xr-x  1 root root   19548 Feb 18  2011 swapon
-r-xr-xr-x  1 root root   11052 Feb 18  2011 sysctl
-rwxr-xr-x  1 root root   35644 Feb 17  2011 syslogd
-rwxr-xr-x  1 root root  124456 Jul 25  2008 tc
lrwxrwxrwx  1 root root       4 Feb  9 10:36 telinit -> init
-rwxr-xr-x  3 root root   23752 Jun  2  2009 tune2fs
-rwxr-xr-x  1 root root   69008 Oct 21 03:25 udev
-rwxr-xr-x  1 root root  550052 Oct 21 03:25 udev.static
-rwxr-xr-x  1 root root   39296 Oct 21 03:25 udev_volume_id
-rwxr-xr-x  1 root root   13184 Oct 21 03:25 udevd
-rwxr-xr-x  1 root root    9056 Oct 21 03:25 udevsend
-rwxr-xr-x  1 root root    4852 Oct 21 03:25 udevsettle
lrwxrwxrwx  1 root root      10 Feb  9 18:00 udevstart -> /sbin/udev
lrwxrwxrwx  1 root root      11 Feb  9 18:00 udevstart.static -> udev.static
-rwxr-xr-x  1 root root   12096 Aug 30 05:36 umount.cifs
-r-sr-xr-x  1 root root   47459 Jul  9  2010 unix_chkpwd
-rwxr-xr-x  1 root root    1041 May  4  2007 update-pciids
-rwxr-xr-x  1 root root    9160 Sep 27  2006 usbmodules
-rwxr-x---  1 root root   22740 Jun  2  2009 vboxd
-rwxr-xr-x  1 root root    9824 Feb 22  2005 vconfig
lrwxrwxrwx  1 root root      10 Feb  9 17:52 vgchange -> lvm.static
lrwxrwxrwx  1 root root      10 Feb  9 17:52 vgscan -> lvm.static
-rwxr-xr-x  1 root root   29440 Oct 21 03:25 wait_for_sysfs
-rwxr-xr-x  1 root root   17575 Jun  2  2009 weak-modules
-r-xr-xr-x  1 root root   34804 Jul 21  2011 ypbind

centOS proc 디렉토리

dr-xr-xr-x   5 root    root            0 Feb 13 17:40 1
dr-xr-xr-x   5 root    root            0 Feb 13 17:40 10
dr-xr-xr-x   5 root    root            0 Feb 13 17:40 1051
dr-xr-xr-x   5 root    root            0 Feb 13 17:40 1151
dr-xr-xr-x   5 root    root            0 Feb 13 17:40 199
dr-xr-xr-x   5 root    root            0 Feb 13 17:40 2
dr-xr-xr-x   5 root    root            0 Feb 13 17:41 22615
dr-xr-xr-x   5 root    root            0 Feb 13 17:41 22616
dr-xr-xr-x   5 root    root            0 Feb 13 17:41 22848
dr-xr-xr-x   5 root    root            0 Feb 13 17:41 22853
dr-xr-xr-x   5 root    root            0 Feb 13 17:41 22867
dr-xr-xr-x   5 rpc     rpc             0 Feb 13 17:41 22877
dr-xr-xr-x   5 rpcuser rpcuser         0 Feb 13 17:41 22887
dr-xr-xr-x   5 root    root            0 Feb 13 17:41 22918
dr-xr-xr-x   5 root    root            0 Feb 13 17:41 22992
dr-xr-xr-x   5 root    root            0 Feb 13 17:41 23002
dr-xr-xr-x   5 root    root            0 Feb 13 17:41 23014
dr-xr-xr-x   5 root    root            0 Feb 13 17:41 23068
dr-xr-xr-x   5 root    root            0 Feb 13 17:41 23083
dr-xr-xr-x   5 root    root            0 Feb 13 17:41 23096
dr-xr-xr-x   5 root    smmsp           0 Feb 13 17:41 23115
dr-xr-xr-x   5 smmsp   smmsp           0 Feb 13 17:41 23125
dr-xr-xr-x   5 root    root            0 Feb 13 17:41 23136
dr-xr-xr-x   5 htt     htt             0 Feb 13 17:41 23165
dr-xr-xr-x   5 htt     htt             0 Feb 13 17:41 23166
dr-xr-xr-x   5 xfs     xfs             0 Feb 13 17:41 23198
dr-xr-xr-x   5 root    root            0 Feb 13 17:41 23217
dr-xr-xr-x   5 dbus    dbus            0 Feb 13 17:41 23237
dr-xr-xr-x   5 root    root            0 Feb 13 17:41 23251
dr-xr-xr-x   5 root    root            0 Feb 13 17:41 23262
dr-xr-xr-x   5 root    root            0 Feb 13 17:49 23320
dr-xr-xr-x   5 root    root            0 Feb 13 17:49 23334
dr-xr-xr-x   5 root    root            0 Feb 13 17:49 23335
dr-xr-xr-x   5 root    root            0 Feb 13 17:49 23349
dr-xr-xr-x   5 root    root            0 Feb 13 17:49 23364
dr-xr-xr-x   5 root    root            0 Feb 13 17:49 23366
dr-xr-xr-x   5 root    root            0 Feb 13 17:41 23368
dr-xr-xr-x   5 root    root            0 Feb 13 17:41 23990
dr-xr-xr-x   5 root    root            0 Feb 13 17:41 24030
dr-xr-xr-x   5 gdm     gdm             0 Feb 13 17:41 24278
dr-xr-xr-x   5 root    root            0 Feb 13 18:21 24586
dr-xr-xr-x   5 root    root            0 Feb 13 21:25 24631
dr-xr-xr-x   5 mysql   mysql           0 Feb 13 21:25 24664
dr-xr-xr-x   5 root    root            0 Feb 14 18:04 26325
dr-xr-xr-x   5 root    root            0 Feb 14 18:05 26327
dr-xr-xr-x   5 root    root            0 Feb 14 19:12 26465
dr-xr-xr-x   5 apache  apache          0 Feb 14 19:12 26468
dr-xr-xr-x   5 apache  apache          0 Feb 14 19:12 26469
dr-xr-xr-x   5 apache  apache          0 Feb 14 19:12 26470
dr-xr-xr-x   5 apache  apache          0 Feb 14 19:12 26471
dr-xr-xr-x   5 apache  apache          0 Feb 14 19:12 26472
dr-xr-xr-x   5 apache  apache          0 Feb 14 19:12 26473
dr-xr-xr-x   5 apache  apache          0 Feb 14 19:12 26474
dr-xr-xr-x   5 apache  apache          0 Feb 14 19:12 26475
dr-xr-xr-x   5 root    root            0 Feb 14 19:12 26507
dr-xr-xr-x   5 root    root            0 Feb 13 17:40 3
dr-xr-xr-x   5 root    root            0 Feb 13 17:40 32
dr-xr-xr-x   5 root    root            0 Feb 13 17:40 33
dr-xr-xr-x   5 root    root            0 Feb 13 17:40 34
dr-xr-xr-x   5 root    root            0 Feb 13 17:41 3743
dr-xr-xr-x   5 root    root            0 Feb 13 17:41 3744
dr-xr-xr-x   5 root    root            0 Feb 13 17:41 3745
dr-xr-xr-x   5 root    root            0 Feb 13 17:41 3746
dr-xr-xr-x   5 root    root            0 Feb 13 17:40 4
dr-xr-xr-x   5 root    root            0 Feb 13 17:40 439
dr-xr-xr-x   5 root    root            0 Feb 13 17:40 440
dr-xr-xr-x   5 root    root            0 Feb 13 17:40 441
dr-xr-xr-x   5 root    root            0 Feb 13 17:40 452
dr-xr-xr-x   5 root    root            0 Feb 13 17:40 5
dr-xr-xr-x   5 root    root            0 Feb 13 17:40 51
dr-xr-xr-x   5 root    root            0 Feb 13 17:40 52
dr-xr-xr-x   5 root    root            0 Feb 13 17:40 53
dr-xr-xr-x   5 root    root            0 Feb 13 17:40 54
dr-xr-xr-x   5 root    root            0 Feb 13 17:40 55
dr-xr-xr-x   5 root    root            0 Feb 13 17:40 6
dr-xr-xr-x   5 root    root            0 Feb 13 17:40 7
dr-xr-xr-x   5 root    root            0 Feb 13 17:40 8
dr-xr-xr-x   5 root    root            0 Feb 13 17:40 9
dr-xr-xr-x  10 root    root            0 Feb 13 17:41 acpi
dr-xr-xr-x   5 root    root            0 Feb 14 19:12 asound
-r--r--r--   1 root    root            0 Feb 14 19:12 buddyinfo
dr-xr-xr-x   5 root    root            0 Feb 14 02:40 bus
-r--r--r--   1 root    root            0 Feb 14 19:12 cmdline
-r--r--r--   1 root    root            0 Feb 14 19:12 cpuinfo
-r--r--r--   1 root    root            0 Feb 14 19:12 crypto
-r--r--r--   1 root    root            0 Feb 14 19:12 devices
-r--r--r--   1 root    root            0 Feb 14 19:12 diskstats
-r--r--r--   1 root    root            0 Feb 14 19:12 dma
dr-xr-xr-x   3 root    root            0 Feb 14 19:12 driver
-r--r--r--   1 root    root            0 Feb 14 19:12 execdomains
-r--r--r--   1 root    root            0 Feb 14 19:12 fb
-r--r--r--   1 root    root            0 Feb 14 19:12 filesystems
dr-xr-xr-x   3 root    root            0 Feb 14 19:12 fs
dr-xr-xr-x   4 root    root            0 Feb 14 19:12 ide
-r--r--r--   1 root    root            0 Feb 14 19:12 interrupts
-r--r--r--   1 root    root            0 Feb 14 19:12 iomem
-r--r--r--   1 root    root            0 Feb 14 19:12 ioports
dr-xr-xr-x  23 root    root            0 Feb 14 19:12 irq
-r--r--r--   1 root    root            0 Feb 14 19:12 kallsyms
-r--------   1 root    root    939528192 Feb 14 19:12 kcore
-r--r--r--   1 root    root            0 Feb 14 19:12 key-users
-r--r--r--   1 root    root            0 Feb 14 19:12 keys
-r--------   1 root    root            0 Feb 13 17:41 kmsg
-r--r--r--   1 root    root            0 Feb 14 19:12 loadavg
-r--r--r--   1 root    root            0 Feb 14 19:12 locks
-r--r--r--   1 root    root            0 Feb 14 19:12 mdstat
-r--r--r--   1 root    root            0 Feb 14 19:12 meminfo
-r--r--r--   1 root    root            0 Feb 14 19:12 misc
-r--r--r--   1 root    root            0 Feb 14 19:12 modules
lrwxrwxrwx   1 root    root           11 Feb 14 19:12 mounts -> self/mounts
-rw-r--r--   1 root    root            0 Feb 13 17:41 mtrr
dr-xr-xr-x   5 root    root            0 Feb 14 19:12 net
-r--r--r--   1 root    root            0 Feb 14 19:12 partitions
-r--r--r--   1 root    root            0 Feb 14 19:12 pci
dr-xr-xr-x   2 root    root            0 Feb 14 19:12 scsi
lrwxrwxrwx   1 root    root           64 Feb 14 02:40 self -> 26507
-rw-r--r--   1 root    root            0 Feb 14 19:12 slabinfo
-r--r--r--   1 root    root            0 Feb 14 19:12 stat
-r--r--r--   1 root    root            0 Feb 14 19:12 swaps
dr-xr-xr-x   9 root    root            0 Feb 13 17:41 sys
--w-------   1 root    root            0 Feb 14 19:12 sysrq-trigger
dr-xr-xr-x   2 root    root            0 Feb 14 19:12 sysvipc
dr-xr-xr-x   4 root    root            0 Feb 14 19:12 tty
-r--r--r--   1 root    root            0 Feb 14 19:12 uptime
-r--r--r--   1 root    root            0 Feb 14 19:12 version
-r--r--r--   1 root    root            0 Feb 14 19:12 vmstat