linux学习
来源:互联网 发布:21天学通c语言电子版 编辑:程序博客网 时间:2024/04/30 08:07
- Centos系统时间同步
方法一(在Cent 7上亲测可行,cent6.8上不行。systemctl命令不支持cent 6版本)
yum install ntp //安装ntp服务
systemctl enable ntpd //开机启动服务
systemctl start ntpd //启动服务
timedatectl set-timezone Asia/Shanghai //更改时区
timedatectl set-ntp yes //启用ntp同步
ntpq -p //同步时间
或者用如下更简单的方法(在cent 6.8上亲测可行,在cent 7上应该也行)
yum install ntp //安装ntp服务
sudo ntpdate time.nist.gov
- SSH 免密码登陆失败的一种原因,StrictModes
I copied my public key to authorized_keys but public-key authentication still doesn't work.
Typically this is caused by the file permissions on $HOME, $HOME/.ssh or $HOME/.ssh/authorized_keys being more permissive than sshd allows by default.
In this case, it can be solved by executing the following on the server.
$ chmod go-w $HOME $HOME/.ssh$ chmod 600 $HOME/.ssh/authorized_keys
$ chown `whoami` $HOME/.ssh/authorized_keysIf this is not possible for some reason, an alternative is to set StrictModes no in sshd_config, however this is not recommended.
- 修改完bashrc后ls,vim等失效问题:
在shell中输入export PATH=/usr/bin:/usr/sbin:/bin:/sbin,暂时可以使用ls,vim等命令。然后打开bashrc,修改path。一般都是写成了export PATH=PATH:XXX,修改成export PATH=$PATH:XXX
- 建立软连接,将mac固态硬盘上的文件映射到移动硬盘
0 0
- Linux学习
- 学习linux
- LINUX学习.....
- 学习Linux
- LINUX学习
- linux 学习
- LINUX学习
- Linux学习
- 学习linux
- linux学习
- linux学习!
- LInux学习
- 学习linux
- Linux学习
- linux 学习
- linux 学习
- 学习Linux
- 学习Linux
- LeetCode 453. Minimum Moves to Equal Array Elements
- 浅析Html5 data-*自定义属性
- eclipse将控制台日志打印到日志文件
- 封装
- android有哪些具体的情形会导致内存泄漏
- linux学习
- VR系列——Oculus Audio sdk文档:四、传统Oculus声场定位技术的统一集成指南(4)——如何在Unity中使用Oculus声场定位技术
- Ext的日历选择控件星期几全部变为"y"了
- android 开源框架之——下拉刷新,上拉加载更多总结
- JSON.stringify 详细用法
- 最长上升子序列 最长公共子序列 最长公共子串 数字三角形 等简单DP以及变形
- Maven学习 (五) Elipse中发布一个Maven项目到Tomcat
- 随机游走模型(Random Surfer Model)
- wxLua实现的“每个字都是一朵花”小应用、双缓存动画、srLua及其他