본문 바로가기

반응형

전체 글

[리눅스] docker efk stack(elasticsearch cluster) docker efk stack(elasticsearch cluster) EFK 간략한 소개 EFK Stack / Dcoker and OpenSSL [node1, node2, node3] github : https://github.com/anti1346/docker-efkstack git clone https://github.com/anti1346/docker-efkstack.git alias 등록 echo "alias efk='cd /docker-container/docker-efkstack/node1'" >> ~/.bashrc echo "alias efk='cd /docker-container/docker-efkstack/node2'" >> ~/.bashrc echo "alias efk='cd /doc.. 더보기
[리눅스] ubuntu "Could not get lock" APT 오류 ubuntu "Could not get lock" APT 오류 apt 패키지 설치 시 에러 Waiting for cache lock: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 14185 (apt) [방법 1] apt 프로세스 확인 ps aux | grep -i apt $ ps aux | grep -i apt root 14185 0.0 0.3 74864 65204 pts/1 S+ 17:53 0:00 apt install -y php8.1-cli php8.1-common php8.1-mysql php8.1-zip php8.1-gd php8.1-mbstring php8.1-curl php8.1-xml php8.1-bcmath .. 더보기
[리누그] PHP 확장 모듈(extension module) 설치 - MongoDB PHP Driver PHP 확장 모듈(extension module) 설치 - MongoDB PHP Driver PECL 모듈 다운로드 : https://pecl.php.net/package/mongodb 소스 컴파일 패키지 다운로드 wget https://pecl.php.net/get/mongodb-1.13.0.tgz tar xfz mongodb-1.13.0.tgz cd mongodb-1.13.0 /usr/local/php/bin/phpize ./configure --with-php-config=/usr/local/php/bin/php-config make -j$(nproc) && make install -j$(nproc) /usr/local/php/bin/php -i | grep "Loaded Configuration .. 더보기
[리눅스] PHP zip 확장(Extension) 모듈 설치 PHP zip 확장(Extension) 모듈 설치 테스트 환경 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) zip 패키지 다운로드 https://pecl.php.net/package/zip libzip.x86_64 : C library for reading, creating, and modifying zip archives libzip-devel.x86_64 : Development files for libzip yum info libzip $ yum info libzip Loaded plugins: fastestmirror, ovl Loading mirror speeds from cached hostfile * base: mirror... 더보기
[리눅스] dockerfile docker-php-ext-install, docker-php-ext-enable, docker-php-ext-configure 명령 dockerfile docker-php-ext-install, docker-php-ext-enable, docker-php-ext-configure 명령 php 8.1 도커 컨테이너 실행 docker run -it --rm php:8.1-fpm bash php 8.1 컨테이너에 설치되어 있는 기본 모듈 root@894e0cb82f31:/var/www/html# php -m [PHP Modules] Core ctype curl date dom fileinfo filter ftp hash iconv json libxml mbstring mysqlnd openssl pcre PDO pdo_sqlite Phar posix readline Reflection session SimpleXML sodium SPL s.. 더보기
[리눅스] mongodb, mongo-express 도커 컨테이너 올리기 mongodb, mongo-express 도커 컨테이너 올리기 docker-compose.yml 편집 version: '3.9' services: ### Mongodb Servers mongo1: image: anti1346/mongo:5.0.8 container_name: mongo1 restart: unless-stopped env_file: - .env environment: - MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME} - MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD} - TZ=Asia/Seoul command: mongod --auth --replSet rs1 --keyFile /d.. 더보기
[리눅스] 도커 컨테이너로 elasticsearch, kibana 올리기(multi-node cluster) 도커 컨테이너로 elasticsearch, kibana 올리기(multi-node cluster) elasticsearch 설치 docker network 생성 docker network create esnet elasticsearch node-1 생성 및 로그 확인 docker run -it --name node-1 --net esnet -p 9200:9200 -p 9300:9300 -e ES_JAVA_OPTS="-Xms1g -Xmx1g" docker.elastic.co/elasticsearch/elasticsearch:8.2.1 -------------------------------------------------------------------------------------------------.. 더보기
[리눅스] 도커 컨테이너로 elasticsearch, kibana 올리기(single-node) 도커 컨테이너로 elasticsearch, kibana 올리기 elasticsearch 설치 elasticsearch 컨테이너 올리기 docker run -d --name elasticsearch --net esnet -p 9200:9200 -p 9300:9300 -e ES_JAVA_OPTS="-Xms1g -Xmx1g" docker.elastic.co/elasticsearch/elasticsearch:8.2.1; docker logs -f elasticsearch elasticsearch 컨테이너 진입 docker exec -it elasticsearch bash elastic 패스워드 변경 bin/elasticsearch-reset-password -u elastic elasticsearch@80e1f.. 더보기

728x90
반응형