質問編集履歴

7

追記

2017/08/31 02:11

投稿

roronoazoro
roronoazoro

スコア113

test CHANGED
File without changes
test CHANGED
@@ -20,7 +20,7 @@
20
20
 
21
21
  追記
22
22
 
23
- ```bash
23
+ ```sh
24
24
 
25
25
  #--作業メモです
26
26
 

6

追記

2017/08/31 02:11

投稿

roronoazoro
roronoazoro

スコア113

test CHANGED
File without changes
test CHANGED
@@ -46,7 +46,7 @@
46
46
 
47
47
 
48
48
 
49
- nginx.service - The nginx HTTP and reverse proxy server
49
+ nginx.service - The nginx HTTP and reverse proxy server
50
50
 
51
51
  Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
52
52
 

5

追記

2017/08/31 02:10

投稿

roronoazoro
roronoazoro

スコア113

test CHANGED
File without changes
test CHANGED
@@ -84,4 +84,20 @@
84
84
 
85
85
  Listen 9000
86
86
 
87
+
88
+
89
+ #--vi /etc/nginx/nginx.confの書き換え
90
+
91
+
92
+
93
+ server_name server.example.com; #←ホスト名の指定
94
+
95
+ location /perl/ {
96
+
97
+ proxy_pass http://localhost:9000/; #←転送先のURL。
98
+
99
+ proxy_set_header host $host; #←クライアントのIPアドレスを転送
100
+
101
+ }
102
+
87
103
  ```

4

追記

2017/08/31 02:10

投稿

roronoazoro
roronoazoro

スコア113

test CHANGED
File without changes
test CHANGED
@@ -80,4 +80,8 @@
80
80
 
81
81
 
82
82
 
83
+ #--/etc/httpd/conf/httpd.conf Listen80 → 90
84
+
85
+ Listen 9000
86
+
83
87
  ```

3

追記

2017/08/31 01:43

投稿

roronoazoro
roronoazoro

スコア113

test CHANGED
File without changes
test CHANGED
@@ -40,4 +40,44 @@
40
40
 
41
41
 
42
42
 
43
+ #--nginxステータスの確認
44
+
45
+ $ sudo systemctl status nginx.service
46
+
47
+
48
+
49
+ ● nginx.service - The nginx HTTP and reverse proxy server
50
+
51
+ Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; vendor preset: disabled)
52
+
53
+ Active: failed (Result: exit-code) since Thu 2017-08-31 10:14:16 JST; 1s ago
54
+
55
+ Process: 1975 ExecStart=/usr/sbin/nginx (code=exited, status=0/SUCCESS)
56
+
57
+ Process: 26733 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=1/FAILURE)
58
+
59
+ Process: 26731 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
60
+
61
+ Main PID: 1977 (code=exited, status=0/SUCCESS)
62
+
63
+
64
+
65
+ Aug 31 10:14:16 centos7 systemd[1]: Starting The nginx HTTP and reverse prox.....
66
+
67
+ Aug 31 10:14:16 centos7 nginx[26733]: nginx: [emerg] open() "/usr/local/etc/...31
68
+
69
+ Aug 31 10:14:16 centos7 nginx[26733]: nginx: configuration file /etc/nginx/n...ed
70
+
71
+ Aug 31 10:14:16 centos7 systemd[1]: nginx.service: control process exited, c...=1
72
+
73
+ Aug 31 10:14:16 centos7 systemd[1]: Failed to start The nginx HTTP and rever...r.
74
+
75
+ Aug 31 10:14:16 centos7 systemd[1]: Unit nginx.service entered failed state.
76
+
77
+ Aug 31 10:14:16 centos7 systemd[1]: nginx.service failed.
78
+
79
+ Hint: Some lines were ellipsized, use -l to show in full.
80
+
81
+
82
+
43
83
  ```

2

追記

2017/08/31 01:20

投稿

roronoazoro
roronoazoro

スコア113

test CHANGED
File without changes
test CHANGED
@@ -15,3 +15,29 @@
15
15
 
16
16
 
17
17
  ![サーバー](ebf253381e70a58e5ec2e466f6aa0ca3.jpeg)
18
+
19
+
20
+
21
+ 追記
22
+
23
+ ```bash
24
+
25
+ #--作業メモです
26
+
27
+ #--conectedが表示されたのでnginxの設定を見直してみたいと思います
28
+
29
+ #--ポートは参考書を真似て80 → 9000に変更しています
30
+
31
+ $ telnet IPアドレス 9000
32
+
33
+
34
+
35
+ Trying IPアドレス...
36
+
37
+ Connected to IPアドレス.
38
+
39
+ Escape character is '^]'.
40
+
41
+
42
+
43
+ ```

1

画像追記

2017/08/31 00:25

投稿

roronoazoro
roronoazoro

スコア113

test CHANGED
File without changes
test CHANGED
@@ -11,3 +11,7 @@
11
11
  それとも、ホストであるMacOSでも設定が完璧なら表示できるのでしょうか?
12
12
 
13
13
  よろしくお願いします。
14
+
15
+
16
+
17
+ ![サーバー](ebf253381e70a58e5ec2e466f6aa0ca3.jpeg)