본문 바로가기
반응형

전체 글168

centos7에서 git 2.x 버전 설치하기 - yum -y remove git* - yum -y install http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-1.noarch.rpm - yum -y install git 2020. 10. 16.
vi 한번에 주석방법 // 블록만큼 주석 하기 1. Ctrl + v 로 원하는 만큼 블록지정 2. Shift + i 3. 입력 4. ESC 2번 누름 // 블록만큼 주석 지우기 1. Ctrl + v 로 원하는 만큼 블록지정 2. x 2020. 6. 15.
php memcache 컴파일옵션 넣기 1) php 소스 함축 해제  --> 최신 소스를 php.net에서 다운 받아서 압축해제2) memcache 소스 다운로드--> pecl.php.net에 가면 다운받을 수 있다.3) memcache 소스 복사--> memcache소스를 다운받아 압축을 해제하면 memcache-2.4.5가 생기는데 이걸php소스의 디렉토리 하위의 ext 디렉토리에 memcache로 복사4) configure 재성성--> memcacache를 같이 컴파일 하기 위해서 기존 configure 파일 삭제--> php 디렉토리에 보면 buildconf 파일이 있다.   ./buildconf --force를 실행하면  memcache를 포함하여 컴파일 할 수 있는 configure 파일이 생성됨--> buildconf 실행시 co.. 2020. 6. 11.
패스워드 변경 스크립트 echo '패스워드' | passwd --stdin 계정 2020. 6. 8.
sftp log 설정 1. sshd_config 수정 - vi /etc/ssh/sshd_config Subsystem sftp /usr/libexec/openssh/sftp-server -f local2 -l INFO 2. syslog.conf 수정 ** Cetos 6 버전에서는 rsyslog.conf - vi /etc/rsyslog.conf #sftp log local2.* /var/log/sftp.log 3. logrotate.d 설정 - vi /etc/logrotate.d/syslog /var/log/sftp.log 추가 4. 서비스 재시작 - /etc/init.d/sshd restart - /etc/init.d/rsyslog restart 5. 확인 - tail -f /var/log/sftp.log 출처: https:.. 2020. 6. 8.
dmidecode 로 하드웨어 스펙 확인하기 메모리 슬롯 확인 dmidecode -t 17 | egrep ‘Memory|Size’ 파워 확인 dmidecode -t chassis 네트워크 포트 번호 유추방법 dmidecode | grep -i "NIC" 2020. 2. 4.
반응형