通过ssh登录服务器后自动执行命令 本文最后更新于:2022年6月1日 下午 例如有一台虚拟机无法更改主机名,直接把更改主机名命令写道这里1# cd ~/ && vim .bash_profile 文件下面添加命令(👇整个文件的代码)12345678910111213# .bash_profile# Get the aliases and functionsif [ -f ~/.bashrc ]; then . ~/.bashrcfi# User specific environment and startup programsPATH=$PATH:$HOME/binexport PATH hostnamectl set-hostname --static test 系统功能 #自动执行 通过ssh登录服务器后自动执行命令 https://simple2ich4n.top/32185/ 作者 2ich4n 发布于 2021年7月16日 更新于 2022年6月1日 许可协议 Vim 下编辑显示下划线 上一篇 调整Swap分区 下一篇 Please enable JavaScript to view the comments