Too many open files in system 라는 메시지가 뜨면서 telnet이 끊기는 현상 발생..

file-max값을 늘려주어야 합니다. [root@moweb1 ~]# sysctl -a | grep file fs.file-max = 100000 fs.file-nr = 1035 0 100000 [root@moweb1 ~]# sysctl -w fs.file-max=206015 fs.file-max = 206015 You have new mail in /var/spool/mail/root [root@moweb1 ~]# sysctl -a | grep file fs.file-max … Continue reading

php에서 mssql 연결하기

@ FreeTDS 소스를 사이트에서 받아서 설치합니다. http://www.freetds.org/ @ 컴파일 합니다 # ./configure –with-tdsver=7.0 –enable-msdblib –enable-dbmfix –with-gnu-ld –enable-shared –enable-static –prefix=/usr/local/freetds # make # make install – config수정합니다 /usr/local/freetds/etc/freetds.conf [egServer70] host = 서버아이피 port = 1433 tds version = 4.2 @ php … Continue reading

asp에서 mysql 연결하기

Dim strConn, Conn strConn = “DRIVER={MySQL ODBC 3.51 Driver}; Server=아이피; Database=디비명; UID=디비계정; Password=디비패스워드;STMT=SET NAMES EUCKR” Set Conn = Server.CreateObject(“ADODB.Connection”) Conn.Open strConn 윈도우용 mysql연결 드라이버는 아래에서 다운받아서 설치하면 된다 http://dev.mysql.com/downloads/connector/odbc/5.1.html#win32 mysql이 utf-8로 구성되어 있으면 한글이 깨지는데 STMT에 euckr로 셋팅해주면 된다

리눅스에서 nfs 설정하기

nfs는 리눅스 서버간 디렉토리를 원격으로 mount할때 쓴다. 대상 서버의 /etc/exports 파일을 열어서 아래와 같이 편집한다. /data/backup 192.168.1.0/255.255.255.0(rw,no_root_squash) nfsd 재시작 # /etc/init.d/nfs restart 서버의 nfs설정 확인 # showmount -e localhost 마운트를 잡을 서버에서 nfs 연결 # mount -t nfs ip address:/data/backup … Continue reading

페이지 4 의 22« 처음...23456...1020...마지막 »