본문 바로가기

반응형

전체 글

(197)
vpopmail + 스팸필터링 출처 : http://linux.tini4u.net/write.php?sid=06/07/26/3839821 1. hcode 설치 hcode는 한글코드를 인/디코딩 하기 위해 필요한 바이너리 파일 입니다. 검색엔진에서 쉽게 구할 수 있으나, 제대로 작동하지 않는 소스가 상당수 차지하고 있죠 따라서 필자는 임은재님께서 올려주신 hcode 소스를 사용하도록 하겠습니다.[root@localhost]# wget http://people.kldp.org/~eunjea/tmp/hcode2.1-mailpatch3-TABpatch.tgz [root@localhost]# tar xfz hcode2.1-mailpatch3-TABpatch.tgz [root@localhost]# cd hcode2.1-mailpatch3-TAB..
GeoDNS BIND patch GeoDNS BIND patch[Download]What is it?A 40-line patch for BIND to add geographical filters support to the existent views in BIND. Look at it.What can I use it for?The most popular use of this patch is to send web site visitors to their nearest web server. Suppose you have a site called www.example555.com with two web servers: one in the US and one in England. You can use this patch in order for ..
socket_test_server #include #include #include #include #define QLEN 10#define PORT 10020int main(int argc, char* argv[]){ struct sockaddr_in ServerAddr; /* 서버의 주소 구조체 */ struct sockaddr_in ClientAddr; /* 클라이언트의 주소 구조체 */ SOCKET serverSocket, clientSocket; /* 서버,클라이언트 소켓의 기술자 */ int port = PORT ; /* 서버 프로그램의 포트 번호 */ int addrlen; /* 주소의 길이 */ int recvbyte = 0; /* 수신한 데이터의 길이 */ char buf[10]; /* 서버가 전송할 데이터 저장 버퍼 */..
socket_test_client #include #include #include #include #include #include #include #define PORT 10020 /* 접속할 서버 프로그램의 포트 번호 */ int main(int argc, char *argv[]) { struct sockaddr_in ServerAddr; /* 접속할 서버의 주소 구조체 */ struct hostent *prthost; /* 호스트표 항목에 대한 포인터*/ SOCKET client; /* 클라이언트 소켓의 기술자 */ int port = PORT; /* 연결할 서버의 포트 번호 */ char *host = "localhost"; /* 지역 호스트의 기호 이름을 지정 */ char buf[10] = "Hello"; /* 서버에게 전달할 ..
agent server (create by sk) #include #include #include #include #include #include #include #include #include #include #include #include #include #define HOST "localhost" #define USER "root" #define PASS "tjrrb12" #define DATABASE "agent" #define BUFFERSIZE 1000 #define PORT 5500 using namespace std; using namespace mysqlpp; int main() { int serverSocket=socket(PF_INET, SOCK_STREAM, 0 ); struct sockaddr_in serverAddress; me..
agent server makefile (create by sk) # Targets BIN= sel_svr sel_cli CC = g++ INCLUDE = -I.. CFLAGS = -g -W -Wall -O0 \ -fno-strict-aliasing -fno-inline -rdynamic -m64 -mtune=k8 \ -fPIC -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_THREADS \ -D_POSIX_THREAD_SAFE_FUNCTIONS \ -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE $(INCLUDE) LDFLAGS = LIBS = -lmysqlpp LDENV = LD_RUN_PATH=/lib:/usr/lib:/usr/local/lib:.:..:/usr/local/include/mysql++:/usr/local..
agent client makefile (create by sk) # Targets BIN= j2-monitoring-agent CC = g++ INCLUDE = -I.. CFLAGS = -g -W -Wall -O0 \ -fno-strict-aliasing -fno-inline -rdynamic -m64 -mtune=k8 \ -fPIC -D_POSIX_PTHREAD_SEMANTICS -D_POSIX_THREADS \ -D_POSIX_THREAD_SAFE_FUNCTIONS \ -D_REENTRANT -D_THREAD_SAFE -D_GNU_SOURCE $(INCLUDE) LDFLAGS = LIBS = LDENV = LD_RUN_PATH=/lib:/usr/lib:/usr/local/lib:.:..: POSTCMD = true .SUFFIXES : .SUFFIXES : .cp..
j2-agent(/etc/init.d/) (create by sk) #!/bin/sh # # chkconfig: - 86 14 # description: J2 agent daemon # processname: j2-monitoring-agent # # ### BEGIN INIT INFO # Provides: J2 agent # Required-Start: $local_fs $network # Required-Stop: $local_fs $network # Should-Start: # Should-Stop: # Default-Start: # Default-Stop: 0 1 2 3 4 5 6 # Short-Description: Start and stop j2 agent # Description: j2 monitoring agent ### END INIT INFO # Sou..
j2-agent.spec (create by sk) Name: j2-monitoring-agent Version: 1.0.0 Release: 1%{?dist} Summary: Monitoring service Group: j2 License: GPL URL: http://renew.j2.co.kr Source0: %{name}-%{version}.tar.gz BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) BuildRequires: /bin/rm, /bin/mkdir, /bin/cp Requires: /bin/bash, /usr/bin/g++, /bin/cat, /usr/sbin/dmidecode, /sbin/ifconfig, /usr/bin/mpstat %define _..
rpmbuild sh (create by sk) #!/bin/sh rm -rf j2-monitoring-agent-1.0.0.tar.gz tar cvf j2-monitoring-agent-1.0.0.tar.gz j2-monitoring-agent-1.0.0 rm -rf rpmbuild/SOURCES/j2-monitoring-agent-1.0.0.tar.gz cp j2-monitoring-agent-1.0.0.tar.gz rpmbuild/SOURCES/j2-monitoring-agent-1.0.0.tar.gz cd ~/rpmbuild/SPECS/ rpmbuild -ba j2_monitoring.spec cd ~/rpmbuild/RPMS/

반응형