v2fly / v2ray-step-by-step

This repo is a fork of ToutyRater/v2ray-guide, we aim to provide a new step-by-step guide of v2ray
https://guide.v2fly.org
Creative Commons Attribution 4.0 International
753 stars 426 forks source link

Add flag "--force" to Line 73 #162

Closed killDevils closed 4 years ago

killDevils commented 4 years ago

Under Ubuntu 18.04, if use this command directly:

sudo ~/.acme.sh/acme.sh --issue -d mydomain.me --standalone --keylength ec-256

CLI shows:

It seems that you are using sudo, please read this link first:
https://github.com/acmesh-official/acme.sh/wiki/sudo

If remove the "sudo", CLI shows error:

...
2020/05/09 21:03:28 socat[2038] E bind(5, {AF=2 0.0.0.0:80}, 16): Permission denied
[Sat May  9 21:03:33 HKT 2020] mydomain.me:Verify error:Invalid response from http://mydomain.me/.well-known/acme-challenge/seMUrEsUr47-Lc9Nc7cS3xQO8VmhVMjfXhw0wcGEmIc [64.32.28.244]: 
/home/naidaomeihui/.acme.sh/acme.sh: line 2271: kill: (2038) - No such process
[Sat May  9 21:03:33 HKT 2020] Please add '--debug' or '--log' to check more details.
[Sat May  9 21:03:33 HKT 2020] See: https://github.com/acmesh-official/acme.sh/wiki/How-to-debug-acme.sh
...

Finally, according to [https://github.com/acmesh-official/acme.sh/wiki/sudo], add --force at the end:

sudo ~/.acme.sh/acme.sh --issue -d mydomain.me --standalone --keylength ec-256 --force

Succeed.