質問編集履歴
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -103,3 +103,67 @@
|
|
103
103
|
|
104
104
|
|
105
105
|
一体何がうまくいっていないのでしょうか??もし見当がつきそうであれば教えていただけると幸いです。
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
###追記
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
以下のコマンドを実行した結果です。
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
```ここに言語を入力
|
118
|
+
|
119
|
+
(1) logrotate -d /etc/logrotate.d/nginx
|
120
|
+
|
121
|
+
(2) logrotate -d -f /etc/logrotate.d/nginx
|
122
|
+
|
123
|
+
```
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
|
131
|
+
```ここに言語を入力
|
132
|
+
|
133
|
+
➜ git:(master) logrotate -d /etc/logrotate.d/nginx
|
134
|
+
|
135
|
+
reading config file /etc/logrotate.d/nginx
|
136
|
+
|
137
|
+
reading config info for /var/log/nginx/*log
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
Handling 1 logs
|
142
|
+
|
143
|
+
|
144
|
+
|
145
|
+
rotating pattern: /var/log/nginx/*log after 1 days (10 rotations)
|
146
|
+
|
147
|
+
empty log files are not rotated, old logs are removed
|
148
|
+
|
149
|
+
not running postrotate script, since no logs were rotated
|
150
|
+
|
151
|
+
➜ git:(master) logrotate -d -f /etc/logrotate.d/nginx
|
152
|
+
|
153
|
+
reading config file /etc/logrotate.d/nginx
|
154
|
+
|
155
|
+
reading config info for /var/log/nginx/*log
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
Handling 1 logs
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
rotating pattern: /var/log/nginx/*log forced from command line (10 rotations)
|
164
|
+
|
165
|
+
empty log files are not rotated, old logs are removed
|
166
|
+
|
167
|
+
not running postrotate script, since no logs were rotated
|
168
|
+
|
169
|
+
```
|