I have a problem to configure a LEMP (Linux, Nginx, MySQL, PHP) server on Ubuntu 20.04, because the systemtcl don not work on wsl2.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hello, @marcofarinasso
You can use the
service
command instead ofsystemctl
, for example to start apache:I know that you’ve mentioned LEMP stack so the command for nginx will be the same:
You can check the following article on DEV on how to setup the LAMP stack on WSL2:
https://dev.to/axiol/setting-up-a-lamp-configuration-with-wsl-2-5fbm
Regards, Alex
المتصفح