전체 글 (319) 썸네일형 리스트형 SAMBA 에 새로운 사용자 등록 절차 samba 계정 등록 절차는 다음과 같다. 1. 시스템 사용자 등록(useradd) 및 패스워드 등록 (passwd) 2. 그룹 사용자 등록(gpasswd) 3. samba 사용자 등록(smbpasswd) 1. 시스템 사용자 등록(useradd) 및 패스워드 등록(passwd) [root@nmsfile ~]# useradd user01 [root@nmsfile ~]# passwd user01 Changing password for user user01. New UNIX password: Retype new UNIX password: passwd: all authentication tokens updated successfully. 등록 확인 : /etc/group 파일을 보면 user01 에 대한 내용이.. crontab 설정 방법 [참고할 사이트] http://www.adminschoice.com/docs/crontab.htm crond 데몬 /etc/rec.d/init.d/crond 스크립트에 의해 시작, 종료,재시작될 수 있다 기본 명령의 위치 :/user/bin/crontab =>아무곳에서도 실행 가능 함 등록,수정, 보기 사용형식 crontab [ -u 사용자 id] 파일 crontab [-u 사용자 id] { -l | -r | -e} crontab -l : 예약된 작업리스트 crontab -e : 예약된 작업 수정 crontab -r : 예약된 작업 삭제 crond 실행 확인 => ps -ef | grep crond crond 시작 => /etc/rc.d/init.d/crond start{restart | stop} 일반.. PHP + jQuery AJAX Upload 1. input file tag on event $('#tmp_widget_file').on('change', prepareUpload); function prepareUpload(event){files = event.target.files} $('#twf').on('submit', uploadFiles); 2. uploadFiles function function uploadFiles(event){ event.stopPropagation(); event.preventDefault(); var data = new FormData(); $.each(files, function(key, value){ data.append(key, value); }); $.ajax({ url: './page/getWidget.. PHP XML CDATA Parsing define(INFO, $path."info.xml"); $infoXML = new DOMDocument(); $infoXML->load(INFO); $category = getXMLTextContent($infoXML, "group"); function getXMLTextContent($xml, $field){ $vars = $xml->getElementsByTagName($field); foreach($vars as $var){ foreach($var->childNodes as $child) { if ($child->nodeType == XML_CDATA_SECTION_NODE) { return $child->textContent; } } } } PHP DOMDocument getting Attribute of Tag $xmldoc = new DOMDocument(); $xmldoc->load('api response address'); foreach ($xmldoc->getElementsByTagName('item') as $feeditem) { $nodes = $feeditem->getElementsByTagName('file'); $linkthumb = $nodes->item(0)->getAttribute('data'); echo $linkthumb; } 임시로 PHP오류 출력할 때 일부 호스팅 환경에서는 PHP오류발생시 500에러코드로 분류되며 흰 공백화면으로 띄며 모든 작업이 중단되는 경우가 있다. 이럴 때 php 오류가 어느 라인에서 발생했는지 알수없어 답답하다. 그럴떄 아래와 같은 방법을 쓰면 된다. error_reporting(E_ALL); ini_set("display_errors", 1); 우분투 Postfix를 이용한 메일서버 구축 우선 작업하기 쉽게 관리자로 접속을 하자. Shell $ su 1 $ su 작업을 시작해보자면 기본적으로 우분투 대부분엔 Postfix가 설치되어 있는데 본인이 설치를 하지 않았다면 수동으로 설치해야 한다. Shell $ apt-get install postfix 1 $ apt-get install postfix 다음은 Postfix을 설정 할 것이다. 설치한사람, 설치했었던 사람 모두 따라오도록 Shell $ dpkg-reconfigure postfix # 인터넷 사이트 # 서버는 도메인으로 # Postfix Configuration : server.com mail.server.com localhost.server.com localhost # 동기 업데이트 설정은 원하는 값으로 # 나머지 그냥 엔터 연.. Javascript 오른쪽 마우스 버튼 막기 function detectLeftButton(evt){ evt = evt || window.event;var button = evt.which || evt.button;return button == 1; } 이전 1 ··· 30 31 32 33 34 35 36 ··· 40 다음