举例:安装ssh 修改配置 sudo cp /usr/local/etc/ssh/ssh_config.example /usr/local/etc/ssh/ssh_config sudo cp /usr/local/etc/ssh/sshd_config.example /usr/local/etc/ssh/sshd_config sudo /usr/local/etc/init.d/openssh start 但是重启后配置文件无法保存,需要再修改一下其他配置 Vi /opt/.filetool.lst 增加ssh配置文件所在路径,然后保存退出 再存盘filetool.sh -b (系统命令) 在bootlocal.sh增加ssh的启动命令,使能自动启动。 vi /opt/bootlocal.sh 同样,记得filetool.sh -b |
|