본문 바로가기

728x90

전체 글

[리눅스] 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 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를 Docker Compose를 사용하여 실행하는 방법 mongodb와 mongo-express를 Docker Compose를 사용하여 실행하는 방법 Docker Compose를 사용하여 MongoDB와 Mongo Express를 쉽게 설정하고 관리할 수 있습니다. 1. Docker Compose 파일 생성 프로젝트 디렉토리에 Docker Compose 파일(docker-compose.yml)을 생성합니다. vim docker-compose 2. Docker Compose 설정 추가 docker-compose.yml 파일에 MongoDB와 Mongo Express를 위한 서비스 정의를 추가합니다. version: '3.9' services: ### Mongodb Servers mongo1: image: anti1346/mongo:5.0.8 container_.. 더보기
[리눅스] mongodb secondary show dbs 에러 mongodb secondary show dbs 에러 show dbs; rs3:SECONDARY> show dbs; uncaught exception: Error: listDatabases failed:{ "topologyVersion" : { "processId" : ObjectId("62a024b73a8739206de930ae"), "counter" : NumberLong(6) }, "ok" : 0, "errmsg" : "not master and slaveOk=false", "code" : 13435, "codeName" : "NotPrimaryNoSecondaryOk" } : _getErrorWithCode@src/mongo/shell/utils.js:25:13 Mongo.prototype.get.. 더보기
[리눅스] 애플 맥북 실리콘 M1에서 도커 빌드시 오류 애플 맥북 실리콘 M1에서 도커 빌드 시 오류 [오류] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested docker buildx build --platform 플래그 추가 docker buildx build -f Dockerfile.arm --platform linux/arm64/v8 -t anti1346/mongo-arm:5.0.8 . 기본 빌더 출력 docker buildx ls $ docker buildx ls NAME/NODE DRIVER/ENDPOINT STATUS PLATFORMS defa.. 더보기
[리눅스] 몽고디비 클러스터 구성하기(mongodb shard cluster) 몽고디비 클러스터 구성하기(mongodb shard cluster) 테스트 환경 $ cat /etc/os-release NAME="Ubuntu" VERSION="20.04.3 LTS (Focal Fossa)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 20.04.3 LTS" VERSION_ID="20.04" HOME_URL="https://www.ubuntu.com/" SUPPORT_URL="https://help.ubuntu.com/" BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/" PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-po.. 더보기
[리눅스] mongodb(router) - 3 mongodb(router) - 3 mongodb PRIMARY docker run -it --rm --add-host=mongodb-201:1.1.1.201 --add-host=mongodb-202:1.1.1.202 --add-host=mongodb-203:1.1.1.203 anti1346/mongo:5.0.8 bash mongo mongodb-201:27017 # mongo mongodb-201:27017 MongoDB shell version v5.0.8 connecting to: mongodb://mongodb-201:27017/test?compressors=disabled&gssapiServiceName=mongodb Implicit session: session { "id" : UUID("52.. 더보기

728x90