반응형 SW105 mysqld 계정 생성및 권한 ( MYSQL, MariaDB) OS : Centos 7.9 Tool : VMware MYSQL : mysql Ver 15.1 Distrib 10.1.48-MariaDB create user '사용자'@'localhost' identified by '비밀번호'; grant all privileges on *.* to '사용자'@'localhost'; grant all privileges on DB이름.* to '사용자'@'localhost'; mysql> grant all privileges on *.* to '사용자'@'localhost'; mysql> grant all privileges on DB이름.* to '사용자'@'localhost'; mysql> grant all privileges on DB이름.테이블명 to '사용자'.. 2021. 10. 26. rsync 옵션 로컴 컴퓨터에서 디렉토리 복사 및 동기화 -> rsync -avzh backup_test/ /tmp/backups/ 로컬 서버에서 원격 서버로 디렉토리 복사하기 -> rsync -avz backup_test/ bigju@192.168.0.1:/home/yundream/backups 원격 서버의 디렉토리를 로컬 서버로 복사하기 -> rsync -avzh bigju@192.168.0.1:/home/ backup_test/ ./ 데이터 복사 진행 상황 확인하기 -> rsync -avzh --progress bigju@192.168.0.1:/home/backup_test/ ./ 전송할 파일의 최대 크기 정하기 -> rsync -avz --max-size='10k' bigju@192.168.0.1:/home/ b.. 2021. 10. 25. 웹로그분석 Tool 설치, web log 확인(AWStats) OS : Centos 7.9 Tool : VMware 1. 설치 cd /usr/local/src wget http://prdownloads.sourceforge.net/awstats/awstats-6.9.tar.gz //필요한 파일 다운 tar xfz awstats*.tar.gz // 압축풀기 2. AWStats 설치 mv awstats-6.9 /usr/local/awstats chmod 755 /usr/local/awstats cd /usr/local/awstats/tools ./awstats_configure.pl *******-> httpd.conf 경로 (ex: /etc/httpd/conf/httpd.conf -> y -> 이름지정 (ex: www.bigju.com) -> /etc/awstats .. 2021. 10. 24. 사이트 트래픽 제한 - Aapche OS : Centos 7.9 Tool : VMware 1. 필요 라이브러리 설치 yum -y install gcc* cd /usr/local/src wget http://linux.softpedia.com/get/Internet/HTTP-WWW-/mod-cband-4737.shtml#download tar xfz download cd mod-cband-0.9.7.5 ./configure \ --with-apxs=/usr/sbin/apxs make && make install chmod 755 /usr/lib64/httpd/modules/mod_cband.so [activating module `cband' in /etc/httpd/conf/httpd.conf] 2. 파일 수정 vi /etc/httpd/c.. 2021. 10. 23. root 설정 보안 # vi /etc/pam.d/login --> auth [user_unknown=ignore success=ok ignore=ignore default=bad] pam_securetty.so 내용이 주석처리되어있다면 root보안 인증을 하지 않아 취약한 것이고, 주석이 되어있지 않아야 root 인증을 함으로 보안이 되어있는 것이다. # vi /etc/securetty 파일 내 *pts/x 관련 설정이 존재하는 경우 위의 pam 모듈 설정과 관계없이 root 계정 접송을 허용하므로 반드시 securetty 파일에서 pts/x 관련 설정 제거가 필요하다. ※ tty(terminal-teletype) : 서버와 연결된 모니터, 키보드 등을 통해 사용자가 콘솔로 직접 로그인할 경우. pts(pseudo-term.. 2021. 10. 20. 이전 1 ··· 11 12 13 14 15 16 17 ··· 21 다음 반응형