centos7 升级内核
2024-10-11 00:01:12
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
yum --disablerepo="*" --enablerepo="elrepo-kernel" list available
yum --enablerepo=elrepo-kernel install kernel-ml -y
sed -i 's@GRUB_DEFAULT=.*@GRUB_DEFAULT=0@g' /etc/default/grub
grub2-mkconfig -o /boot/grub2/grub.cfg
yum update -y ###@@@一下是自己使用的 谢谢 sed -i 's@SELINUX=.*@SELINUX=disabled@g' /etc/sysconfig/selinux
systemctl stop firewalld
systemctl disable firewalld
setenforce
yum install chrony -y
systemctl start chronyd
systemctl enable chronyd
echo -e '30 * * * * /usr/bin/systemctl restart chronyd' >> /etc/crontab
systemctl enable crond
systemctl start crond init useradd -d /home/cephd -m cephd
echo "cephd" | passwd --stdin cephd
echo "cephd ALL = (root) NOPASSWD:ALL" | sudo tee /etc/sudoers.d/cephd
chmod /etc/sudoers.d/cephd
最新文章
- Java中接口和抽象类的区别
- svn提交时提示 Aborting commit: remains in conflict 解决办法
- 使用Group By注意事项
- 分享一段Java搞笑的代码注释
- BZOJ3105: [cqoi2013]新Nim游戏
- 面试常考的数据结构Java实现
- ValidateCode.cs验证码时设置缓存的使用
- 开发反模式 - SQL注入
- /var/cache/apt/archives/lock - open
- 如何改变Myeclipse编辑区背景色(转)
- [论文阅读] Deep Residual Learning for Image Recognition(ResNet)
- 静态资源压缩(GZIP) 专题
- 《PHP扩展及核心》
- ubuntu中如何安装python3.6
- Java常用API及Math类
- 时间序列预测——Tensorflow.Keras.LSTM
- HDU 1176 免费馅饼 (动态规划)
- iOS中UITableView的一些问题思考
- scrapy 关于特殊字符的处理
- 解决cocos2dx调用removeFromParent后报错问题