WSLãç»å ´ãã¦ãã大å¤ä¾¿å©ã«å©ç¨ãã¦ãã¾ãã 以åã¯VMwareãVirtualBoxã¨ãã£ãä»®æ³ãã·ã³ããã¼ã«ã«PCã¸å ¥ããããã¦ãã¾ããããç§ã®å ´åãããã¦ãã¯WSLã§è¶³ããæãã«ãªã£ã¦ãã¾ãã ç§ã®å ´åãç°å¢ã使ã£ã¦ãããã¡ã«ãã¯ã©ãã·ã¥ããããããã±ã¼ã¸ãããããã¾ããã¦è¨å®ãããããªã£ã¦å°ã£ããªã©ããã°ãã°ç°å¢ãæ»ããããã¨ãããã¾ãã ä»®æ³ãã·ã³ãå©ç¨ãã¦ããæã¯ãã®ã¤ã¡ã¼ã¸ã®ã¹ãããã·ã§ãããåå¾ãããã¨ã§ä¸¸ãã¨ããã¯ã¢ãããã¦ãã¾ããã WSL2ã§ãããã¯ã¢ãããããã¨ãå¯è½ã§ããæé ãã¡ã¢ãã¦ããã¾ãã ç°å¢ 2023å¹´1ææç¹ã®å 容ã«ãªãã¾ããWSLã¯çµæ§é²åãã¦ããå°è±¡ã§ãã®ã§ãè¨äºãå¤ããªã£ãéã¯æ³¨æã§ãã ï¼å°å ¥æé ãªã©åæã«æ¯ã¹ãã¨ããªã楽ã«ãªãã¾ããï¼ OSã¯Windows11 Proã§ããPowerShellããæä½ãã¾ãã PS > wsl --vers
WSL2ã§ã¯ãã¤ã³ã¹ãã¼ã«ããUbuntuãä»®æ³ãã·ã³ã¨ãã¦ç¨¼åãããã¹ãã¨ã¯å¥ã®IPã¢ãã¬ã¹ãæãã¾ãããã®ããããã¹ã(Windows)ããWSL2(Ubuntu)ã§åãã½ããã¦ã§ã¢ãã¤ã¤ãéãWSL2ã®IPã¢ãã¬ã¹ãæå®ããå¿ è¦ãããå ´åãããã¾ãã ã§ã¯ãWSL2ã®IPã¢ãã¬ã¹ã¯ã©ã®ããã«ç¢ºèªããã°ããã§ãããã? ãªãã以ä¸è¨äºã®ããã«.wslconfigãè¨å®ãã¦ããã¨ãWSL2ä¸ã§ç¨¼åããã½ããã¦ã§ã¢ã«localhostã§ã¢ã¯ã»ã¹ã§ããããã«ãªãã®ã§ãããå°ãªãã¨ãèªåã®ç°å¢ã§ã¯ã.wslconfigããªãããã¾ãåããªãã£ããããã¹ãå´ã®ã½ããã¦ã§ã¢ãlocalhostããã¾ã解決ã§ããªãã£ããããå ´åãããã¾ããæ¬è¨äºã¯ããããã±ã¼ã¹ã§å½¹ã«ç«ã¤æ³å®ã§ãã ããWSL 2ãæ大ã®èª²é¡ã§ãã£ãâlocalhostâåé¡ã解決 ï½ãWindows 10ãBuild 18945ã
WSL2ã¯åå解決ãWindowsãã¹ãã«ãé¡ããã¦ããã®ã§ãããããåãã¾ãããã¨ãã話ã ã¤ã¼ãµãããã¢ããã¿ã¼ vEthernet (WSL) ã®IPv4ã¢ãã¬ã¹ãã¨ãã limitation /etc/resolv.conf㧠nameserver 8.8.8.8ã¨ããè¨å®ãã¦ãã¨ä½¿ããªã (ãããåå 㧠DISPLAY ç°å¢å¤æ°ã« 8.8.8.8:0 ãè¨å®ãã¦ãã¾ãæå ã®emacsã®æç»ãGoogleã«ãé¡ããã¦ãã¾ãã¾ãã) 2. ipconfig.exe ãå©ã ipconfig.exe | sed -e 's/\r//' | grep 'IPv4 Address' | head -n 1 | cut -d ':' -f 2 | awk '{print $1}' Windows IP æ§æ ã¤ã¼ãµããã ã¢ããã¿ã¼ ã¤ã¼ãµããã: æ¥ç¶åºæã® DNS ãµãã£ãã¯ã¹ . .
February 25, 2024 VSCode + WSL makes Windows awesome for web development Iâm kinda shocked. Windows actually got good for web developers. Between VSCode, WSL, and Intelâs latest desktop chips, Iâve been living with a PC for over a week that runs my programming tests faster than an M3 Max, ships with an excellent window manager out-the-box, and generally feels like a completely viable alternative t
WSL2ã使ããããã«ãªã£ãã®ã§ãWindows ã§ã Docker ã使ã£ã¦ã¿ããã¨ã«ãã¾ãããDocker Desktop ãã¤ã³ã¹ãã¼ã«ããã¨ãç¡æ¡ä»¶ã§ Cãã©ã¤ãä¸ã«ä»®æ³ç°å¢ãä½ããã¾ããããCãã©ã¤ãã®ç©ºã容éãå°ãªããªã£ãã®ã§ãDockerç°å¢ãDãã©ã¤ãã«ç§»åããã¨ãã話ã 試ããç°å¢ Windows10 Pro 2004 OSãã«ã 19041.329 Docker Desktop community 2.3.0.3 WSL2(Windows Subsystem for Linux) Docker Desktop ã®è¨å®ã§ã¯ WSL2 Integration ãæå¹ã«ãã¦ãã¾ããWSLã®ãã£ã¹ããªãã¥ã¼ã·ã§ã³ã¯ Ubuntu 20.04 ã使ã£ã¦ããã®ã§ãããã¨ã®ã¤ã³ãã°ã¬ã¼ã·ã§ã³ãæå¹ã«ãã¦ããã¾ãã æ¹æ³ Docker Desktop ã使ã£ã¦ãã WSL ä¸ã®ãã£ã¹ã
WSL 2.0.0以éã§è©¦é¨çã«æä¾ããã¦ãããããã¯ã¼ã¯ãã©ã¼ã¢ã¼ãã¯é常ã«é åçã§ããã¾ã 試é¨çã¨ãããã¨ã§ããã¤ã課é¡ãããã®ãäºå®ã§ããããã§ã¯Dockerã§ã®èª²é¡ã¨åé¿çã交ãã¤ã¤ãã©ã¼ã¢ã¼ãã®æ·±æ·µãè¦ãã¦ã¿ããã¨æãã¾ãã [2024.9.22]Docker 27.3.0 ã« WSLç¨ã®ç¹å¥ã«ã¼ã«ãå ¥ãã¾ãããããã«ããWindowsãã¹ãããã®127.0.0.1ã¸ã®ã¢ã¯ã»ã¹ã¯ã³ã³ããã§ãã¼ãããããããµã¼ãã¹ã¸ã¢ã¯ã»ã¹ã§ããããã«ãªãã¾ããã https://github.com/moby/moby/releases/tag/v27.3.0 ã¨ãããã¨ã§ããã®è¨äºã«æ¸ããå 容ã¯ãã§ã«æ話ã§ããå®å¿ãã¦ãã©ã¼ã¢ã¼ãããå©ç¨ãã ããã
$ sudo apt-get update Ign:1 http://archive.ubuntu.com/ubuntu jammy InRelease Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease Ign:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease Ign:4 http://archive.ubuntu.com/ubuntu jammy-backports InRelease Ign:2 http://security.ubuntu.com/ubuntu jammy-security InRelease
wsl2ã®ãã¹ãåã£ã¦å¤ãããããã§ããï¼ ã¨ããæ¥ã å¾è¼©ã¡ãããwsl2ä¸ã§ä½æ¥ããã¨ãã«ããã¹ãåã«èªåã®ãã·ã³åã表示ãããã®å«ã ãªï½ã å¾è¼©ã¡ãããwsl2ã®ãã¹ãåã£ã¦å¤ããããªãã®ããªï½ã å¾è¼©ã¡ãããã»ãã»ããè¯ãé»ãç»é¢ã®ãã£ããã£ã¨ãæ®ããã¨å¤ããããªãã§ããï½ã ãããï¼ç¬ãè¨ããªï¼ ãããï¼ã¾ãé»ãç»é¢ã£ã¦è¨ã£ã¦ãã...ï¼ å¾è¼©ã¡ãããLinuxã®ãã¹ãåå¤æ´ã³ãã³ãã ã¨ä¸æããããªãã£ããï½ã å¾è¼©ã¡ãããå¤æ´æ¹æ³ç¥ã£ã¦ã人ããªãããªï½((ï¾ï¾ï¾ï¾ã ããããåãã£ãããæãããã£ï¼ï¼ï¼ã ã¨ãããã¨ã§ãwsl2ã®ãã¹ãåå¤æ´æé ã説æãããã¨ã«ãªã£ãã wsl2ã®ãã¹ãåå¤æ´æ¹æ³ ããããå¾è¼©ã¡ããã®è¨ãéããwslã§ã¯ä¸è¨ã®ãããªè¡¨ç¤ºã«ãªããã ãããããã·ã³åã®ã¨ããããä»»æã®ãã¹ãåã«å¤æ´ãããå ´åãã ãããã/etc/wsl.confã«è¨è¼ããã®ãæ
Windows 㧠Linux ã®æ©è½ãæ軽ã«æ±ããã¨ã®ã§ããWSL (Windows Subsystem for Linux)ï¼ ãWSLãã¨ãWSL2ãã®2ã¤ãããã®ã¯ãåãã®æ¹ãå¤ãã¨æãã¾ããï¼å®ã¯ä»ã«ãããã¼ã¸ã§ã³ãããããã¨ããåç¥ã§ããããï¼ é ã«è§£èª¬ãã¦ããã¾ãï¼ â :ãWSL1ãã¨ãWSL2ã WSLã«ã¯ï¼å¤§ããªä»çµã¿ã®éããã2ã¤ã®ã¿ã¤ããããã¾ãï¼ WSL1ï¼WSLï¼ãå ã«éçºããã¦ããï¼å¾çºã§ WSL2 ãã§ãã¾ããï¼ ãã®ç¨®é¡ã®ãã¼ã¸ã§ã³ã¯ï¼ãã®2ã¤ã®ã¿ã§ãï¼ï¼WSL1.1ã¨ãï¼WSL2.1ã¨ãã¯ããã¾ãããï¼ ç¾å¨ã®WSLã®ãã¼ã¸ã§ã³ã確èªããã«ã¯ï¼Powershellä¸ã§ä»¥ä¸ã³ãã³ããå®è¡ãã¾ãï¼ ï¼ã³ãã³ãã«å¤±æããå ´åã¯ï¼Windowsã®ãã¼ã¸ã§ã³ãå¤ãï¼WSL2ãå©ç¨ã§ããªãå¯è½æ§ãããã¾ãï¼
ãã°ãã§ãã ãµã¨AWS謹製ã®Cloudscapeã使ã£ããµã¤ããä½ã£ã¦ã¿ãããªãããã®ããã«ã¾ãã¯Reactã¨Next.jsãå¦ãã§ã¿ããã¨ã«ãã¾ããã ç§ã¯æ®æ®µWindowsç°å¢ãå©ç¨ãã¦ããWSL2ä¸ã§Next.jsãå®è¡ããããã®ç°å¢ãä½ã£ã¦ã¿ãã®ã§ãããããã ãã§ãå°å³ã«ããã£ãã®ã§ãã®è¨äºã§å ±æãããã¨æãã¾ãã æ¤è¨¼ç°å¢ æ¬è¨äºã®å 容ã¯ç§ã®æ®æ®µã®éçºæ©(Windows 10 Pro)ã®WSL2ç°å¢(Ubuntu 20.04)ã§è©¦ãã¦ãã¾ãã Ubuntu 22.04ã§ãªãã¦20.04ãªã®ã¯22.04ç°å¢ãæ®æ®µã®æ¥åã§ä½¿ã£ã¦ããããé¿ããã®ãçç±ã§ããæ¬è¨äºã®å 容ã§OSä¾åã®é¨åã¯ç¡ãã¨æãã¾ãã ãã¹ãå´ç°å¢ 64 bitç Windows 10 Professional 21H1 Visual Studio Code 1.72.2ãã¤ã³ã¹ãã¼ã«æ¸ã¿ WSLç°å¢ Ubuntu
Dockerã§MySQL 8.0.xãåãããã¨ããã以ä¸ã®ã¨ã©ã¼ãåºã¦ãã³ã³ãããèµ·åãã¾ããã§ããã [ERROR] [MY-010295] [Server] Could not set file permission for ca.pem [ERROR] [MY-013236] [Server] The designated data directory /var/lib/mysql/ is unusable. You can remove all files that the server added to it. [ERROR] [MY-010119] [Server] Aborting MySQLã®ãã¼ã¸ã§ã³ã5.7ãã5.7.16ã«å¤æ´ããã¿ãããªã®ãè¦æãã¾ãããã 8ç³»ã§åããããã®ã§ãããã§ã¯è§£æ±ºã«ãªã£ã¦ãã¾ããã§ããã ãªã®ã§ãWSLä¸ã®ã/etc/wsl.conf
mnt以ä¸ã®å ±æãã¡ã¤ã«ã®ãã¼ããã·ã§ã³ãLinuxä¸ã§å¤æ´ã§ããããã«ãã åé¡ WSLä¸ã®LinuxããWindowsã®å ±æãã¡ã¤ã«ã/mnt/c以ä¸ã®ãã¹ã§åç §ã§ãããããã®ãã¼ããã·ã§ã³ã¯ãã¹ã¦777ã«ãªã£ã¦ãã¦ãLinuxããã¯å¤æ´ã§ããªã ãããå¤æ´ã§ããããã«ãã ãªãã以ä¸ã®æé ã¯WSL1ãWSL2ã§å ±é æé 1. wsl.confã«optionsãæå®ãã $ sudo vi /etc/wsl.conf ----------------------------- [automount] options = "metadata" ----------------------------- wsl.confã¯ããã©ã«ãã§ã¯åå¨ããªãã®ã§ãæ°è¦ä½æãã 2. WSLãåèµ·åãã $ wsl.exe -l -v $ wsl.exe -t Ubuntu-20.04 åè http
ããã«ã¡ã¯ãã«ãã¼ããã°ã®ã¿ã«ãã§ãã 2021å¹´ç¾å¨ãWebéçºã¯ãã£ã±ãDockerã使ã£ã¦éçºãããã¨ãå¤ããªãã¾ããã Macã¯å ãUNIXãªã®ã§Dockerã¨ã®è¦ªåæ§ãé«ãéçºããããã£ãã®ã§ãããWindowsã ã¨WSLç»å ´åã¾ã§ã¯Dockerã¨ã®ç¸æ§ã¯è¯ããªãæ¬é ãããã¡ã§ããã ããããWSL(Windows Subsystem for Linux)ã®ç»å ´ã«ãããWindowsä¸ã§ãLinuxãåä½ããããããªããããã«WSL2ããªãªã¼ã¹ããããã¨ã§ãWindowsã§Dockerã¯æ ¼æ®µã«æ±ãããããªãã¾ããã Hyper-Vã使ããªãã£ãWindows 10 Homeã§ãWSL2ã使ããã¨ã§Dockerã使ããã®ã¯ããããã§ãããã æ¬è¨äºã§ã¯ãããªWSL2ã¨Dockerã®ã¤ã³ã¹ãã¼ã«æ¹æ³æé ãè¨äºã«ãã¾ããã ã¾ãã¯Windows Updateãããã WSL2ã®ã·ã¹ãã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}