linux的常用命令

实际部署服务器时候发现centos7和之前使用的centos6已经service命令使用上有很大差别,记录一下

*启动、重启、停止、重载服务
# systemctl start httpd.service
# systemctl restart httpd.service
# systemctl stop httpd.service
# systemctl reload httpd.service
# systemctl status httpd.service

*激活/禁止自动启动

# systemctl enable httpd.service
# systemctl disable httpd.service

*杀死服务
# systemctl kill httpd

解包:tar xvf FileName.tar
打包:tar cvf FileName.tar DirName

转载自  https://blog.csdn.net/cds86333774/article/details/51165361

原文地址:https://www.cnblogs.com/orxx/p/9603606.html