跳到主要內容

發表文章

GCP 增加磁碟

sudo blkid vi /etc/fs vi /etc/fstab UUID=cxxxxxxxxxxxxxxxxxxxxxxx /100G ext4 defaults 0 0 UUID="xxxxxxxxxxxxxxxxxxxxxx" /100G ext4 defaults 0 0 sda 的第一個分割區擴大 growpart /dev/sda 1 resize2fs /dev/sda1 清除 Docker 的磁碟空間 docker system prune -f
最近的文章

最新docker ubuntu linux 安裝法

 # Add Docker's official GPG key: sudo apt-get update sudo apt-get install ca-certificates curl sudo install -m 0755 -d /etc/apt/keyrings sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc sudo chmod a+r /etc/apt/keyrings/docker.asc # Add the repository to Apt sources: echo \   "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \   $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \   sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt-get update sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin sudo apt install docker-compose sudo usermod -aG docker ${USER} exit

常用指令

  docker run -it --rm --name python3 _you_like -v "$PWD/app":/usr/src/myapp -w /usr/src/myapp python:3 /bin/bash   docker run -it --rm --name python2_you_like -v "$PWD/app":/usr/src/myapp -w /usr/src/myapp python:2 /bin/bash     請空image 省空間 docker system prune -f docker container prune -f docker rmi $(docker images -a -q)

Mac Big Sur 安裝Netbeans 12

下載JDK 8 安裝  https://www.oracle.com/tw/java/technologies/javase/javase-jdk8-downloads.html 安裝JDK   安裝brew /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"    安裝netbeans brew install --cask netbeans 取得JDK 目錄 /usr/libexec/java_home -V  EX: /Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home 編輯netbeans config vi /Applications/NetBeans/Apache\ NetBeans\ 12.4.app/Contents/Resources/NetBeans/netbeans/etc/netbeans.conf netbeans_jdkhome="/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home" :wq 在執行netbeans    Done