centos7
poweroff
-- 关机
让命令行提示符显示完整路径
编辑profile文件,添加显示环境变量PS1
export PS1='[\u@\h 'pwd']\$'
# \u为用户名 \h为主机名
ssh配置无法生效
centos的~/.ssh/authorized_keys的文件需要修改为600
chmod 600 ~/.ssh/authorized_keys
使用centos7绑定端口问题
需要使用内网ip进行端口绑定
poweroff
-- 关机
export PS1='[\u@\h 'pwd']\$'
# \u为用户名 \h为主机名
chmod 600 ~/.ssh/authorized_keys
需要使用内网ip进行端口绑定
本文标题:Linux日常使用
本文链接:https://www.haomeiwen.com/subject/xcpezftx.html
网友评论