windows-subsystem-for-linux

Installing MongoDB in WSL

爷,独闯天下 提交于 2021-02-06 09:06:47
问题 I was trying to install MongoDB in WSL running Ubuntu 18.04 after seeing this documentation. But MongoDB says that: IMPORTANT The mongodb package provided by Ubuntu is not maintained by MongoDB Inc. and conflicts with the official mongodb-org package. If you have already installed the mongodb package on your Ubuntu system, you must first uninstall the mongodb package before proceeding with these instructions. MongoDB also says that WSL doesn't support mongodb-org WINDOWS SUBSYSTEM FOR LINUX

Where are the files inside wsl2 physically stored?

末鹿安然 提交于 2021-02-04 17:48:41
问题 I've installed wsl2 on my windows machine and I was not able to figure out where the files are actually stored. Note, that I don't mean that I wanna browse them inside the file explorer - I know it can be done by typing in the explorer \\wsl$\ . If I would have to guess I would say the files are stored in the same hard-drive that the os is stored. So actually I have two related questions. Where the files are stored? If they are stored in the hard drive of my os, can I somehow relocate my wsl

Where are the files inside wsl2 physically stored?

本小妞迷上赌 提交于 2021-02-04 17:48:15
问题 I've installed wsl2 on my windows machine and I was not able to figure out where the files are actually stored. Note, that I don't mean that I wanna browse them inside the file explorer - I know it can be done by typing in the explorer \\wsl$\ . If I would have to guess I would say the files are stored in the same hard-drive that the os is stored. So actually I have two related questions. Where the files are stored? If they are stored in the hard drive of my os, can I somehow relocate my wsl

In WSL2: Ubuntu 20.04 for Windows 10 nodejs is installed but npm is not working

a 夏天 提交于 2021-01-29 18:18:52
问题 I am using WSL2: Ubuntu 20.04 in my Windows 10 operating system. I have installed nodejs using the command sudo apt-get install -y nodejs when I do node -v command I get v12.18.3 mrd@DESKTOP-2EO5K4H:/mnt/c/Users/musfi$ node -v v12.18.3 but when I do npm -v command I get this below command mrd@DESKTOP-2EO5K4H:/mnt/c/Users/musfi$ npm -v -bash: /mnt/c/Program Files/nodejs/npm: /bin/sh^M: bad interpreter: No such file or directory I also do whereis command. Hope this will help to find solution.

Redis queue worker crashes in utcparse

杀马特。学长 韩版系。学妹 提交于 2021-01-29 16:13:11
问题 I'm trying to get a basic rq working following the tutorial at https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-xxii-background-jobs. I'm running on windows 10 WSL1 ubuntu 20.04. I installed rq using sudo apt-get install python3-rq and rq is at version 1.2.2 I installed the python lib using pip3 install rq and this is then at version 1.4.0. My worker code is in app/tasks.py and is import time def example(): print('Starting task') for i in range(1..10): print(i) #time.sleep(1)

Error connecting to kafka server via IDE in WSL2

做~自己de王妃 提交于 2021-01-29 14:25:19
问题 I'm not able to connect to a kafka server(first server I tried on WSL2) running on ubuntu, via intellij or vscode running on windows. I even tried using the VM's IP, but no luck. As I understand, we should be able to connect using 'localhost' as per this doc https://docs.microsoft.com/en-us/windows/wsl/compare-versions am I missing something? Here is my code Properties producerProperties = new Properties(); producerProperties.setProperty(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, "localhost

Get err_connection_refused accessing django running on wsl2 from Windows but can curl from Windows terminal

杀马特。学长 韩版系。学妹 提交于 2021-01-29 13:55:40
问题 I got the err_connection_refused when trying to accessing django running on wsl2 (http://localhost:8000) from Windows but when I use curl http://localhost:8000 from Windows terminal bash, it's working fine. I have tried to add a new firewall inbound rule for port 8000 but it's still not working. Is there anything else I need to take care of. Thanks a lot 回答1: Seems like a forwarding problem. WSL2's interface is NAT'd, whereas WSL1 was bridged by default. Some ideas: Does the problem resolve

MariaDB connection to ExpressJS access denied no password error

那年仲夏 提交于 2021-01-29 08:40:52
问题 I'm trying to connect an Express app to MariaDB, both running on localhost. I have the following code in an Express app: const mariadb = require('mariadb'); const pool = mariadb.createPool({ user: 'testuser', password: 'password', database: 'test', connectionLimit: 5 }); I can connect using 'testuser' from the MariaDB command line, but when Express executes the code above, I see the following in the console: SQLError: (conn=63, no: 1698, SQLState: 28000) Access denied for user 'testuser'@

Can't run php artisan on ubuntu terminal on windows 10 machine

走远了吗. 提交于 2021-01-29 07:12:01
问题 I am trying to run artisan commands on ubuntu terminal from Windows machine, using Windows terminal and Ubuntu app from Microsoft store. Tried and searched many times but still no progress. I tried steps in this question Laravel PHP Command Not Found as when I am running php artisan .. error shows "Command 'php' not found, but can be installed with:sudo apt install php7.4-cli" also I downloaded laravel globally on my windows machine but when I try to run laravel on ubuntu terminal "/usr/bin

I Get ImportError: No module named pathlib, even after installing pathlib with pip

感情迁移 提交于 2021-01-29 07:11:29
问题 This is my first time asking on this site, so sorry if my question is not layed out correctly y@DESKTOP-MQJ3NCT:~/Real-Time-Voice-Cloning$ python demo_toolbox.py Traceback (most recent call last): File "demo_toolbox.py", line 1, in <module> from pathlib import Path ImportError: No module named pathlib I have tried: pip3 install pathlib and: sudo -H pip3 install pathlib but continue to get the same error I am using the windows store version of ubuntu 18 LTS and python 3.7 回答1: Sorry, turns out