根据Linux的发行版,服务的重新启动方法不同。 centos6版本: service服务名restart示例重新启动vsftpd:[ root @ Linux probe~] # servicevsftpdrestart注意: service服务器start/stop/stared restart centos7.x版:systemctlrestart服务名称例如重新启动vsftpd:[ root @ Linux probe~] # systemctlrestartvsftpd,以及编译服务例如,nginx:[ root @ Linux probe~~ ] # CD/XXX/xx/xx/sbin [ root @ Linux probe~]./nginx-s reload当然是手动共享的一般在那之后开始服务。 [ root @ Linux probe~] # PS-ef|grep-v Tomcat ' { print $2} '!
阅读全文