Skip to content

Commit 50125e4

Browse files
committed
name service consistently
1 parent f9e37e2 commit 50125e4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

wsl/tutorial/develop-with-ubuntu-wsl.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -406,26 +406,26 @@ First, you need to create a service for `systemd` to run.
406406
4. Enable the service to start at boot:
407407
408408
```
409-
$ sudo systemctl enable python-http-server.service
409+
$ sudo systemctl enable py-server.service
410410
```
411411
412412
You should see the following result:
413413
414414
```text
415-
Created symlink /etc/systemd/system/multi-user.target.wants/python-http-server.service → /etc/systemd/system/
416-
python-http-server.service.
415+
Created symlink /etc/systemd/system/multi-user.target.wants/py-server.service → /etc/systemd/system/
416+
py-server.service.
417417
```
418418
419419
5. Start the service with this command:
420420
421421
```text
422-
$ sudo systemctl start python-http-server.service
422+
$ sudo systemctl start py-server.service
423423
```
424424
425425
6. Check that the service is running:
426426
427427
```text
428-
$ sudo systemctl status python-http-server.service
428+
$ sudo systemctl status py-server.service
429429
```
430430
431431
Now restart your Ubuntu on WSL instance. Once you reopen the terminal, your web
@@ -435,7 +435,7 @@ page should already be running when you visit
435435
If you want to stop serving the web page, close Ubuntu or stop the service in the Ubuntu terminal:
436436
437437
```text
438-
$ sudo systemctl stop python-http-server.service
438+
$ sudo systemctl stop py-server.service
439439
```
440440

441441
## Move files between Windows and Ubuntu

0 commit comments

Comments
 (0)