# cat zzz | tai64nlocal
'OS > Linux' 카테고리의 다른 글
우분투 TFTP 설치 (0) | 2017.03.03 |
---|---|
chmod 8진수 (0) | 2015.12.07 |
MTU 설정으로 인터넷 속도 향상 (0) | 2015.08.05 |
Qmailtoaster 설치 centos6.5 (0) | 2015.07.28 |
Centos 언어 설정 (0) | 2014.11.27 |
# cat zzz | tai64nlocal
우분투 TFTP 설치 (0) | 2017.03.03 |
---|---|
chmod 8진수 (0) | 2015.12.07 |
MTU 설정으로 인터넷 속도 향상 (0) | 2015.08.05 |
Qmailtoaster 설치 centos6.5 (0) | 2015.07.28 |
Centos 언어 설정 (0) | 2014.11.27 |
F8 사용 : bcdedit /set {default} bootmenupolicy legacy
F8 미사용 : bcdedit /set {default} bootmenupolicy standard
解錠条件 施錠
解錠
施錠
Win10 God Mode (0) | 2019.04.24 |
---|
인터넷 최적(MTU) 속도 찾기
Ethernet 설정 변경
테스트 방법
ping -f -l 1500 google.com
** Reply from .... 이고 Loss 0% 이면 확인
** Timeout 또는 Packet .... DF set 이며 실패 더 낮은값을 적용해 본다
리눅스 적용
[~]# ifconfig eth0 mtu 1400
윈도우
C:\>netsh interface ip show interface
또는
C:\>netsh interface ipv4 show subinterfaces
시작->실행 regedit
[HKEY_LOCAL_MACHINE][System][CurrentControlSet][Services][Tcpip][Parameters][interfaces]
각 인터페이스에 맞게
새로만들기 DWORD 값으로 키 생성
ex)
이름 : MTU
값 : 10진수 1400
chmod 8진수 (0) | 2015.12.07 |
---|---|
cat 출력시 시간표현 변환 (0) | 2015.12.01 |
Qmailtoaster 설치 centos6.5 (0) | 2015.07.28 |
Centos 언어 설정 (0) | 2014.11.27 |
네트워크상 공유된 PC IP로 직접 접근방법 (0) | 2014.10.10 |
selinux 해제
상태확인 및 수정
[~]# setstatus
[~]# vi /etc/sysconfig/selinux
SELINUX=disabled 로 변경
hostname변경 및 네트워크 설정
[~]# vi /etc/hosts
ex)test.domain test localhost.localdomain localhost 형식으로 변경
[~]# vi /etc/sysconfig/network
wget 이 없는경우 설치
[~]# cd /usr/local/src
[~]# yum install wget
Centos 업데이트
[~]# yum update
rpmforge업데이트
[~]# rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
[~]# rpm -Uvh http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
[~]# rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
또는
[~]# rpm --import http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-6
[~]# rpm -Uvh http://mirror.centos.org/centos-6/6/os/x86_64/Packages/centos-release-6-6.el6.centos.12.2.x86_64.rpm
기존 postfix,exim 삭제
[~]# rpm -e --nodeps postfix
[~]# groupdel postdrop
[~]# userdel postfix
[~]# rpm -e --nodeps exim
인스톨
[~]# yum groupinstall -y Development tools
[~]# yum install gcc gcc++ perl-CPAN perl-core perl-Mail-SPF-Query
dependencies 인스톨
[~]# yum install -y wget mlocate vim-enhanced mysql-server http php-mysql perl-ExtUtils-MakeMaker
perl-libwww-perl make compat-libf2c-34 compat-libstdc++-33 aspell
MYSQL 심볼릭 설정
[~]# ln -s /user/lib64/mysql/ /usr/lib/
qtp 다운로드
[~]# cd /usr/local/src
[~]# mkdir QMT
[~]# cd QMT
[~]# rpm -Uvh http://qtp.qmailtoaster.com/trac/download/1
[~]# yum install qmailtoaster-plus
실행불가및 다운이 안될경우 직접 다운로드 및 RPM 설치
qmailtoaster-plus-0.3.2-1.4.21.noarch.rpm
[~]# wget http://qtp.qmailtoaster.com/repos/nodist/qmailtoaster-plus-0.3.2-1.4.21.noarch.rpm
[~]# rpm -Uvh qmailtoaster-plus-0.3.2-1.4.21.noarch.rpm
qtp-dependencies 설치
[~]# cd /opt/qmailtoaster-plus/bin
dependencies
qtp-dependencies 수정 및 적용
[~]# vi qtp-dependencies
삭제
perl (libwww:perl)
perl (Mail:SPF)
automake17
compat-libgcc
변경
compat-libf2c --> compat-libf2c-34
compat-libsdc++-33 --> compat-libstdc++-33
[~]# qtp-dependencies
패키지 다운로드 및 패키지 설치
다운로드
[~]# mkdir /usr/local/src/QMT
[~]# cd /usr/local/src/QMT
[~]# wget http://qmailtoaster.com/distro/centos/cnt5064/current-download-script.sh
[~]# wget http://qmailtoaster.com/distro/centos/cnt5064/cnt5064-install-script.sh
[~]# wget http://qmailtoaster.com/distro/centos/cnt5064/cnt5064-svcs.sh
[~]# wget http://qmailtoaster.com/distro/centos/cnt5064/cnt5064-djbdns-localcache-install.sh
DB 스크립트수정
[~]# vi cnt5064-svcs.sh
MYSQLPW=패스워드 수정
sh firewall.sh --> 변경 ##sh firewall.sh
DB스크립트 실행
[~]# sh cnt5064-svcs.sh
패키지다운로드
[~]# sh current-download-script.sh
두번실행으로 전부 다운받았는지 확인한다.
Install 스크립트수정
[~]# vi cnt5064-install-script.sh
BDIR=redhat ---> BDIR=root/rpmbuild
전부 바꿔야함 /usr/src/$BDIR/ --> /$BDIR/
qmailtoaster 설치
[~]# sh cnt5064-install-script.sh
또는
[~]# wget http://itposting.tistory.com/attachment/cfile26.uf@2554CC4055B742DA12B55F.tar
[~]# mv cfile26.uf@2554CC4055B742DA12B55F.tar cnt6064.tar
[~]# tar xvf cnt6064.tar
[~]# tar xvf ./cnt/cnt6064-install-script.sh cnt6064-install-script.sh
[~]# sh cnt6064-install-script.sh
실행
[~]# cd /var/qmail/bin
[~]# qmailctl stat
[~]# qmailctl start
*stat 확인후
supervise : fatal : unable to qcquire qmail-send/supervise/lock:temporary failure
위와같은 상태인 경우 lock파일 삭제후 재시작한다.ㅣ
service qmail stop
cd /var/qmail/supervise/qmail-send/supervise/
rm -rf lock
qmail-dk 적용해제
[~]# ln -sf qmail-queue.orig qmail-queue *해제
[~]# ln -sf qmail-dk qmail-queue *적용 qmail-dk 설정 필요
[~]# qmailctl restart
사용자추가
[~]# cd /home/vpopmail/bin
[~]# ./vadddomain site.com pswd123
[~]# ./vadduser webmaster@site.com pswd123
테스트
텔넷이 없는경우 텔넷 설치
[~]# yum install telnet
SMTP 테스트
[~]# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 test.com - Welcome to Qmail Toaster Ver. 1.3 SMTP Server ESMTP
helo localhost
250-test.com - Welcome to QmailToaster Ver. 1.3 SMTP Server ESMTP
250-STARTTLS
250-PIPELINING
250-8BITMIME
250-AUTH LOGIN PLAIN CRAM-MD5
mail from : webmaster@test.com
205 ok
rcpt to : receivemail@test.com
250 ok
data
354 go ahread
test message
.
250 ok 123455667 qp 1234
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK <123.123@test.com>
user admin@test.com
+OK
pass pass1234
+OK
list
1 230
.
retr 1
+OK
Return-Path: <test@test.com>
Delivered-To : admin@test.com
.........생략 .....
quit
** 테스트중 /home/vpopmail/bin/vchkpw error 발생시 ㄴ
[~]# service qmail stop
각 run에 soflimit 가 있으면 모두 증가 시킵니다.
[~]# vi /var/qmail/supervise/pop3/run
[~]# vi /var/qmail/supervise/pop3-ssl/run
[~]# vi /var/qmail/supervise/smtp/run
softlimt -m xxxx
xxx값을 증가시킵니다.
telnet localhost 110 명령어들
STAT : 몇통의 메일이 와 있는지 알 수 잇습니다.
LIST : 몇통의 메일이 있는지 알 수 있을 뿐만 아니라,
RETR : 번호와 함께 써서 메일을 읽어 옵니다
DELE : 해당 번호의 메일을 지웁니다.
NOOP : 연결 지속명령
RSET : 메일서버의 marked 된걸 unmark 시킨데요..
UPDATE : 갱신
QUIT : 종료
TOP : 메일의 앞부분만 보는 것 같네요.
UIDL :
USER : 로그인시 ID
PASS : 로그인시 PASSWORD
cat 출력시 시간표현 변환 (0) | 2015.12.01 |
---|---|
MTU 설정으로 인터넷 속도 향상 (0) | 2015.08.05 |
Centos 언어 설정 (0) | 2014.11.27 |
네트워크상 공유된 PC IP로 직접 접근방법 (0) | 2014.10.10 |
[Centos] IP 변경 (0) | 2014.05.13 |
[root@localhost]# set | grep LANG
LANG=ko_KR.UTF-8
[root@localhost] vi /etc/sysconfig/i18n
LANG="ko_KR.UTF-8"
SUPPORTED="ko_KR:ko:en_US.UTF-8:en_US:en"
MTU 설정으로 인터넷 속도 향상 (0) | 2015.08.05 |
---|---|
Qmailtoaster 설치 centos6.5 (0) | 2015.07.28 |
네트워크상 공유된 PC IP로 직접 접근방법 (0) | 2014.10.10 |
[Centos] IP 변경 (0) | 2014.05.13 |
[Centos] DNS 네임서버 설정 (0) | 2014.02.20 |
SMB 가 설치되어 있어야 합니다.
SMB://IP/
Qmailtoaster 설치 centos6.5 (0) | 2015.07.28 |
---|---|
Centos 언어 설정 (0) | 2014.11.27 |
[Centos] IP 변경 (0) | 2014.05.13 |
[Centos] DNS 네임서버 설정 (0) | 2014.02.20 |
[Centos] Subversion 설치 및 Apache 연동 (0) | 2014.02.12 |
[root@localhost]# /etc/sysconfig/network-scripts
[root@localhost]# vi ifcfg-eth0
DEVICE="eth0"
BOOTPROTO="static"
IPADDR="192.168.1.10"
NETMASK="255.255.255.0"
NETWORK="192.168.1.0"
BROADCAST="192.168.1.255"
GATEWAY="192.168.1.1"
DNS1="168.126.63.1" or "8.8.8.8"
DNS2="168.126.63.2" or "8.8.4.4"
[root@localhost]# service network restart
[root@localhost]# ifconfig -a
DHCP 설정
DEVICE="eth0"
BOOTPROTO="dhcp"
HWADDR = "xx:xx:xx:xx:xx:xx:xx:xx"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="ethernet"
UUID="xxxxx-xxx-xxx-xxx-xxxxxx"
STATIC 설정
DEVICE="eth0"
BOOTPROTO="static"
IPADDR="192.168.0.2"
NETMASK="255.255.255.0"
NETWORK="192.168.0.0"
BROADCAST="192.168.0.255"
HWADDR = "E8:00.32:00:53:74"
GATEWAY="192.168.0.1"
DNS1="168.126.63.1"
DNS2="168.266.63.2"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
NM_CONTROLLED="yes"
ONBOOT="yes"
TYPE="ethernet"
UUID="xxxxx-xxx-xxx-xxx-xxxxxx"
Centos 언어 설정 (0) | 2014.11.27 |
---|---|
네트워크상 공유된 PC IP로 직접 접근방법 (0) | 2014.10.10 |
[Centos] DNS 네임서버 설정 (0) | 2014.02.20 |
[Centos] Subversion 설치 및 Apache 연동 (0) | 2014.02.12 |
[Centos] 명령어 요약 yum,rpm,ls,ll (0) | 2014.02.10 |
네트워크상 공유된 PC IP로 직접 접근방법 (0) | 2014.10.10 |
---|---|
[Centos] IP 변경 (0) | 2014.05.13 |
[Centos] Subversion 설치 및 Apache 연동 (0) | 2014.02.12 |
[Centos] 명령어 요약 yum,rpm,ls,ll (0) | 2014.02.10 |
[Centos] yum 으로 mysql 설치 (0) | 2014.02.06 |
수정일자:
설치환경 : Centos 6.5 x64
설치버전 : subversion-1.6.11-9.el6_4.x86_64
설치전 확인사항 :
설치사항
1. 설치 확인및
[root@localhost]# rpm -qa | grep subversion
[root@localhost]# yum install subversion
[root@localhost]# svn --version
2. repository 생성 및 설정
[root@localhost]# mkdir /home/svn
[root@localhost]# cd home/svn
[root@localhost]# svnadmin create --fs-type fsfs repos
[root@localhost]# cd /home/svn/repos/conf
[root@localhost]# vi svnserve.conf
[general]
anon-access=none
auth-access=write
password-db=passwd
authz-db=authz
realm=repos
[root@localhost]# vi passwd
[users]
svnuser=123456
authz-db=authz 사용하는경우
[root@localhost]# vi /etc/sysconfig/svnserve
#OPTIONS="--threads --root /home/svn --listen-port 3690"
OPTIONS="--threads --root /home/svn"
3. 서비스 시작
[root@localhost]# svnserve -d -r /home/svn
포트지정 서비스 시작
[root@localhost]# svnserve -d -r /home/svn --listen-port 3690
서비스에 등록 되었을때
[root@localhost]# service svnserve start
4.기본디렉토리 생성
[root@localhost]# which vi //vi 위치 확인
/bin/vi
[root@localhost]# export SVN_EDITOR=/bin/vi //SVN 에디터 설정 /etc/profile 에 추가해도 됨
[root@localhost]# svn mkdir svn://localhost/repos/trunk
--이 줄 이하는 자동으로 제거 됩니다 --
A svn://localhost/truck
~
~ 로그 메시지가 변경되지 않았거나 지정되지 않았습니다
취소(A),계속(C),수정(E): C
인증 영역(realm): <svn://localhost:3690> MyTask Repository
'root'의 암호:
인증 영역(realm): <svn://localhost:3690> MyTask Repository
사용자명:svnuser
'svnuser'의 암호:123456
커밋된 리비전 1.
[root@localhost]# svn mkdir svn://localhost/repos/branches //반복
[root@localhost]# svn mkdir svn://localhost/repos/tags //반복
[root@localhost]# svn list svn://localhost/repos //확인
[root@localhost]# service svnserve restart
※ apache연동
5.사용자 인증 패스워드 파일 생성
[root@localhost]# htpasswd -cm /home/svn/repos/svn_pswd root //최초 사용자 생성시 c옵션
[root@localhost]# htpasswd -m /home/svn/repos/svn_pswd svnuser //추가 user1
6.Apache연동 모듈 설치 mod_dav_svn
[root@localhost]# yum install mod_dav_svn
[root@localhost]# find / -name "*svn.so"
/usr/lib/httpd/modules/mod_dav_svn.so //32bit
/usr/lib/httpd/modules/mod_authz_svn.so
/usr/lib64/httpd/module/mod_dav_svn.so //64bit
/usr/lib64/httpd/modules/mod_authz_svn.so
yum 으로 httpd가 설치된경우 자동으로 /etc/httpd/conf.d/subversion.conf 가 생성되고
모듈이 자동 로드 되도록 설정 되어있음
[root@localhost]# vi /etc/httpd/conf.d/subversion.conf
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
<Location /home/svn>
DAV svn
SVNParentPath /home/svn
AuthzSVNAccessFile /home/svn/repos/authz
<LimitExcept GET PROPFIND OPTIONS REPORT>
AuthType Basic
AuthName "로그인"
AuthUserFile /home/svn/repos/svn_pswd
Require valid-user
</LimitExcept>
</Location>
7.설정확인 및 테스트
[root@localhost]# service svnserve restart
[root@localhost]# service httpd restart
http://localhost/svn/repos
8.svn 저장소 삭제
[root@localhost]# rm -rf /home/svn/repos
참고
http://itnp.kr/roller/home/entry/centos_5_6%EC%97%90_subversion_13 |
[Centos] IP 변경 (0) | 2014.05.13 |
---|---|
[Centos] DNS 네임서버 설정 (0) | 2014.02.20 |
[Centos] 명령어 요약 yum,rpm,ls,ll (0) | 2014.02.10 |
[Centos] yum 으로 mysql 설치 (0) | 2014.02.06 |
[Centos] rpm 명령어 (0) | 2014.02.06 |
수정일자:2014/02/12
리눅스 버전 확인
[root@localhost]# rpm -qa *-release
[root@localhost]# cat /etc/issue
커널 버전확인
[root@localhost]# uname -r
메모리 확인
[root@localhost]# free
[root@localhost]# free -m
디스크 확인
[root@localhost]# df
[root@localhost]# df -hT
환경설정 확인
[root@localhost]# env
※ yum
[root@localhost]# yum install httpd //인스톨
[root@localhost]# yum update httpd //업데이트
[root@localhost]# yum remove httpd // 제거
[root@localhost]# yum list installed python //install 여부 확인
[root@localhost]# yum list available | grep subversion //인스톨 할수있는 버전확인
[root@localhost]# yum list search python //찾기
※ rpm
[root@localhost]# rpm -qa | grep httpd //설치 정보
※ find
find 사용법
[root@localhost]# find / -name "test*"
※ ls,ll
ls,ll 사용법
윈도우의 dir
[root@localhost]# ls -al | grep test
[root@localhost]# ll
[Centos] DNS 네임서버 설정 (0) | 2014.02.20 |
---|---|
[Centos] Subversion 설치 및 Apache 연동 (0) | 2014.02.12 |
[Centos] yum 으로 mysql 설치 (0) | 2014.02.06 |
[Centos] rpm 명령어 (0) | 2014.02.06 |
[Centos] 서비스 등록 /etc/init.d/ 사용법 (0) | 2014.02.06 |