回答編集履歴

3

念のため cd コマンドを追加

2017/04/03 06:58

投稿

tacsheaven
tacsheaven

スコア13703

test CHANGED
@@ -24,9 +24,15 @@
24
24
 
25
25
  ```bash
26
26
 
27
+ cd [certbot-auto があるディレクトリ]
28
+
27
- /usr/local/certbot/certbot-auto renew --force-renewal
29
+ certbot-auto renew --force-renewal
28
30
 
29
31
  sudo systemctl restart httpd.service
32
+
33
+
34
+
35
+ (※各行ごとに Enter して実行してください)
30
36
 
31
37
  ```
32
38
 

2

CentOS7 向けに修正

2017/04/03 06:58

投稿

tacsheaven
tacsheaven

スコア13703

test CHANGED
@@ -26,7 +26,7 @@
26
26
 
27
27
  /usr/local/certbot/certbot-auto renew --force-renewal
28
28
 
29
- sudo service httpd restart
29
+ sudo systemctl restart httpd.service
30
30
 
31
31
  ```
32
32
 

1

CentOS6 なので service コマンドによる再起動に変更

2017/04/03 06:55

投稿

tacsheaven
tacsheaven

スコア13703

test CHANGED
@@ -24,7 +24,9 @@
24
24
 
25
25
  ```bash
26
26
 
27
- /usr/local/certbot/certbot-auto renew --force-renewal && /bin/systemctl reload httpd
27
+ /usr/local/certbot/certbot-auto renew --force-renewal
28
+
29
+ sudo service httpd restart
28
30
 
29
31
  ```
30
32