Skip to content

Commit

Permalink
Merge pull request ansible#1834 from rclements-redhat/netstat_fix
Browse files Browse the repository at this point in the history
Remove reference to netstat and replace with ss command.
  • Loading branch information
rlopez133 authored Oct 7, 2022
2 parents 6261127 + c2436db commit 0f3d4b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions exercises/ansible_rhel/1.7-role/README.ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -343,16 +343,16 @@ simple vhost index

## 問題のトラブルシューティング

最後の curl は動作しましたか? netstat コマンドを実行すると、Web サーバーが動作しているポートを確認できます。
最後の curl は動作しましたか? ss コマンドを実行すると、Web サーバーが動作しているポートを確認できます。

```bash
#> sudo netstat -tulpn
#> sudo ss -tulpn | grep httpd
```

次のような行があるはずです。

```bash
tcp6 0 0 :::8080 :::* LISTEN 25237/httpd
tcp LISTEN 0 511 *:8080 *:* users:(("httpd",pid=182567,fd=4),("httpd",pid=182566,fd=4),("httpd",pid=182565,fd=4),("httpd",pid=182552,fd=4))
```

これが機能していない場合は、`/etc/httpd/conf/httpd.conf` に `Listen 8080`
Expand Down
8 changes: 4 additions & 4 deletions exercises/ansible_rhel/1.7-role/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -320,19 +320,19 @@ Congratulations! You have successfully completed this exercise!

## Troubleshooting problems

Did the final curl work? You can see what ports the web server is running by using the netstat command:
Did the final curl work? You can see what ports the web server is running by using the ss command:

```bash
#> sudo netstat -tulpn
#> sudo ss -tulpn | grep httpd
```

There should be a line like this:

```bash
tcp6 0 0 :::8080 :::* LISTEN 25237/httpd
tcp LISTEN 0 511 *:8080 *:* users:(("httpd",pid=182567,fd=4),("httpd",pid=182566,fd=4),("httpd",pid=182565,fd=4),("httpd",pid=182552,fd=4))
```

If it is not working make sure that `/etc/httpd/conf/httpd.conf` has `Listen 8080` in it. This should have been changed by [Exercise 1.5](../1.5-handlers)
Pay close attention to the fifth column of the above output. It should be `*:8080`. If it is `*:80` instead or if it is not working, then make sure that the `/etc/httpd/conf/httpd.conf` file has `Listen 8080` in it. This should have been changed by [Exercise 1.5](../1.5-handlers)

---
**Navigation**
Expand Down

0 comments on commit 0f3d4b5

Please sign in to comment.