본문 바로가기

반응형

centos

CentOS 8에서 Yum Repository 서버를 구축하는 방법 CentOS 8에서 Yum Repository 서버를 구축하는 방법 테스트 환경 $ cat /etc/redhat-release CentOS Linux release 8.4.2105 Repository 서버 구축 epel 패키지 설치 yum install -y epel-release createrepo 패키지 설치 yum install -y yum-utils createrepo 웹 서버(apache) 패키지 설치 yum install -y httpd mod_ssl 리포지토리 디렉터리 만들기(yum 저장소) mkdir -p /apps/repo_root/repo mkdir -p /apps/repo_root/repo/centos/7/{extras,isos,os,updates} mkdir -p /apps/repo.. 더보기
CentOS 7에서 phpredis를 gitithub에서 직접 설치하는 방법 CentOS 7에서 phpredis를 gitithub에서 직접 설치하는 방법필수 패키지 설치sudo yum install -y epel-releasesudo yum install -y gcc make autoconfGitHub phpredisphpredis 5.3.4 : https://github.com/phpredis/phpredis/archive/refs/tags/5.3.4.tar.gzphpredis 다운로드GitHub에서 phpredis 소스를 다운로드합니다.wget https://github.com/phpredis/phpredis/archive/refs/tags/5.3.4.tar.gz -O phpredis-5.3.4.tar.gz압축 해제tar xfz phpredis-5.3.4.tar.gz디렉토리 .. 더보기
OpenSSL을 사용하여 파일을 암호화하고 복호화하는 방법 OpenSSL을 사용하여 파일을 암호화하고 복호화하는 방법OpenSSL은 암호화 및 복호화를 수행할 수 있는 강력한 도구 중 하나입니다.테스트 환경운영체제 버전 및 BIT$ cat /etc/redhat-releaseCentOS Linux release 7.9.2009 (Core)$ getconf LONG_BIT64OpenSSL 버전$ openssl versionOpenSSL 1.0.2k-fips 26 Jan 2017참고: 아래의 예제에서는 대칭 키(암호화 및 복호화에 사용되는 키)를 생성하고 파일을 암호화하는 방법을 설명합니다. 이 예제에서 사용된 대칭 암호화 알고리즘은 AES (Advanced Encryption Standard)입니다. 1. 대칭 키 생성먼저 대칭 키를 생성합니다. 이 키는 암호화와.. 더보기
rsync 명령어 rsync 명령어사용법(Push)rsync [OPTION...] SRC... [USER@]HOST::DESTrsync -avzhpgoq /data/resize_img/2021/{01,02,03,04,05} root@1.1.1.1:/data/resize_img/2021/옵션설명-v, --verboseincrease verbosity-a, --archivearchive mode; equals -rlptgoD (no -H,-A,-X)-r, --recursiverecurse into directories-b, --backupmake backups (see --suffix & --backup-dir)-u, --updateskip files that are newer on the receiver--deletedel.. 더보기
CentOS 7에서 OpenLDAP 서버를 삭제하는 방법 CentOS 7에서 OpenLDAP 서버를 삭제하는 방법slapd 서비스 중지 및 설정 삭제sudo systemctl stop slapdsudo systemctl disable slapd<h4 data.. 더보기
[LDAP] OpenLDAP 설치 및 구성 OpenLDAP 설치 및 구성 OpenLDAP 설치 yum install -y compat-openldap openldap openldap-servers openldap-clients $ yum install -y compat-openldap openldap openldap-servers openldap-clients openldap-servers-sql openldap-devel OpenLDAP 데이터베이스 설정 cp /usr/share/openldap-servers/DB_CONFIG.example /var/lib/ldap/DB_CONFIG chown ldap. /var/lib/ldap/DB_CONFIG $ cp /usr/share/openldap-servers/DB_CONFIG.example /var.. 더보기
CentOS 7에서 OpenSSL을 최신 버전으로 업그레이드하는 방법 CentOS 7에서 OpenSSL을 최신 버전으로 업그레이드하는 방법 CentOS 7 OpenSSL 지원 프로토콜 확인 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) $ openssl version OpenSSL 1.0.2k-fips 26 Jan 2017 $ openssl ciphers -v | awk '{print $2}' | sort | uniq SSLv3 TLSv1.2 OpenSSL 삭제 yum remove openssl 기본 라이브러리 설치 yum install gcc gcc-c++ pcre-devel zlib-devel perl wget OpenSSL Downloads https://www.openssl.org/source/ 소스.. 더보기
CentOS 7에서 PHP Redis 확장 모듈을 설치하는 방법 CentOS 7에서 PHP Redis 확장(Extension) 모듈을 설치하는 방법phpredis는 PHP에서 Redis를 쉽게 사용할 수 있도록 해주는 확장 모듈입니다. 필요한 패키지 설치sudo yum install -y gcc make autoconf jemalloc tclRedis 패키지 설치sudo yum install -y redissudo systemctl --now enable redisredis-cli --versionredis-cli -h 127.0.0.1 -p 6379 pingPHP Redis Extension 모듈 설치phpredis 다운로드 및 압축 해제GitHub에서 phpredis 모듈을 다운로드하고 압축을 해제합니다.cd /usr/local/srcwget https://git.. 더보기

반응형