centos 6 7 differences 区别
来源:互联网 发布:超市数据分析报告格式 编辑:程序博客网 时间:2024/06/10 22:45
/etc/init.d/服务systemctl
systemctl start service_name
自启动
[CentOS6]
$ chkconfig service_name on/off
[CentOS7]
$ systemctl enable service_name
$ systemctl disable service_name
而对于启动脚本的存放位置,也不再是/etc/init.d/(这个目录也是存在的),而是/usr/lib/systemd/system/.
强制停止
[CentOS6]
$ kill -9 <PID>
[CentOS7]
$ systemctl kill --signal=9 sshd
官方推荐不使用这个文件(自己写服务),但是你可以加+x继续使用。
和
/etc/sysctl.d/<name>.conf
文件结构
[CentOS6] /bin, /sbin, /lib, and /lib64在/下
[CentOS7] /bin, /sbin, /lib, and /lib64移到/usr下
IP地址MAC地址
[CentOS6]
$ ifconfig -a
[CentOS7]
$ ip address show
关闭
[CentOS6]$ shutdown -h now
[CentOS7]
$ poweroff
$ systemctl poweroff
防火墙
systemctl status firewalld
systemctl stop firewalld
systemctl disable firewalld
继续使用老版防火墙:
systemctl stop firewalld
systemctl disable firewalld
yum installed -y iptables-services
systemctl enable iptables
systemctl start iptables
参考:
https://putty.biz/760
http://cuidehua.blog.51cto.com/5449828/1858374
http://pengjiezhang.blog.51cto.com/1506442/1868140
阅读全文
0 0
- centos 6 7 differences 区别
- Centos 7 和 Centos 6 的区别
- Windows 7 version differences
- Differences
- CSS Differences in Internet Explorer 6, 7 and 8
- CentOS之7与6的区别
- centos 7 与 6的运行区别
- HashMap与HashTable区别(Differences between HashMap and Hashtable)
- 6 Major Differences between English and Chinese
- 7 JavaScript Differences Between Firefox & IE
- Linux学习总结(29)——CentOS 6和CentOS 7区别总结
- centos区别
- CentOS 7 各个版本的区别
- Emulator/native platform differences模拟器与本地平台(手机硬件)的区别
- #18 – Silverlight and WPF Differences(Silverlight和WPF的区别)
- CentOS 7 vs CentOS 6的不同
- CentOS 6 与 CentOS 7 bonding实现
- CentOS和Ubuntu区别
- vs2012错误“类不能支持automation操作”
- Java的架构师
- 蓝桥杯java第三届决赛第四题--DNA比对
- 判断Integer值相等最好不用==最好使用equals
- jquery遍历数组与筛选数组的方法
- centos 6 7 differences 区别
- iOS学习之路08
- mysql 增删改查排序分页最简单的语法
- Esri wkt字符串转proj.4 字符串的方法
- OTT-TV网络电视EPG录制和EPG抓取解决方案
- bzoj1592 [Usaco2008 Feb]Making the Grade 路面修整 dp
- POJ 3268 Silver Cow Party [图论.最短路] 《挑战程序设计竞赛》2.5
- 遇到的各种坑
- JDK不配置环境变量也可以使用的方法(偏门)