Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installed successfully but the bash told me command not found #1412

Closed
CHN-STUDENT opened this issue Mar 18, 2018 · 3 comments
Closed

Installed successfully but the bash told me command not found #1412

CHN-STUDENT opened this issue Mar 18, 2018 · 3 comments

Comments

@CHN-STUDENT
Copy link

CHN-STUDENT commented Mar 18, 2018

Steps to reproduce

Today,i tried install acme.sh on my server(OS:CentOS7.4).And i read the install guidebook,i downloaded it by curl,And the script told me it installed successfully.but when i tried to use it by command acme.sh ,the bash told me command not found.
Like this:

[root@VM_6_201_centos acme.sh]# acme.sh
-bash: acme.sh: command not found

Also i tried to use another install ways,like using wget or git clone to install it,the script told me can find this installed it on my server.But the bash told me the command also not found.

[root@VM_6_201_centos acme.sh]# ./acme.sh --install
[Sun Mar 18 18:31:06 CST 2018] It is recommended to install socat first.
[Sun Mar 18 18:31:06 CST 2018] We use socat for standalone server if you use standalone mode.
[Sun Mar 18 18:31:06 CST 2018] If you don't use standalone mode, just ignore this warning.
[Sun Mar 18 18:31:06 CST 2018] Installing to /root/.acme.sh
[Sun Mar 18 18:31:06 CST 2018] Installed to /root/.acme.sh/acme.sh
[Sun Mar 18 18:31:06 CST 2018] Installing alias to '/root/.bashrc'
[Sun Mar 18 18:31:06 CST 2018] OK, Close and reopen your terminal to start using acme.sh
[Sun Mar 18 18:31:06 CST 2018] Installing alias to '/root/.cshrc'
[Sun Mar 18 18:31:06 CST 2018] Installing alias to '/root/.tcshrc'
[Sun Mar 18 18:31:07 CST 2018] Installing cron job
31 0 * * * "/root/.acme.sh"/acme.sh --cron --home "/root/.acme.sh" > /dev/null
[Sun Mar 18 18:31:07 CST 2018] Good, bash is found, so change the shebang to use bash as preferred.
[Sun Mar 18 18:31:07 CST 2018] OK
[root@VM_6_201_centos acme.sh]# acme.sh
-bash: acme.sh: command not found

Debug log

Because i can not use it command,so i used absolute path to run it.
But when i tried to print it,but the the script told me Unknown parameter : .....

[root@VM_6_201_centos ~]# ./.acme.sh/acme.sh  --issue ..... --debug 2
[Sun Mar 18 18:38:27 CST 2018] Unknown parameter : .....

So can you tell me what happend and help me?Thanks!
If you think you need more information,i will give you.

@Neilpang
Copy link
Member

close your terminal, and open it again.

[Sun Mar 18 18:31:06 CST 2018] OK, Close and reopen your terminal to start using acme.sh

@CHN-STUDENT
Copy link
Author

@Neilpang Ok,i reopen a new terminal now,now i can use it command.
But i find i can not print the debug log?

[root@VM_6_201_centos ~]# acme.sh --issue ..... --debug 2
[Sun Mar 18 19:00:50 CST 2018] Unknown parameter : .....

@CHN-STUDENT
Copy link
Author

@Neilpang sorry,i think i make a mistake...
And i suggest you add this information OK, Close and reopen your terminal to start using acme.sh on the guidebook.
Thanks for your help .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants