在linux上运行service https start,响应service command not found
后来google了一下,发现需要将/sbin目录加入环境变量PATH中。
可以在使用的用户目录的.bashrc文件中加入export PATH=$PATH:/sbin/
root用户在目录/root下
maminghao用户在目录/home/maminghao下
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3