#centos7
#启动 httpd
service httpd start
#关闭 httpd
service httpd stop
#开机启动 httpd
systemctl enable httpd.service
#开机启动 tomcat
systemctl start tomcat
#关闭 tomcat
systemctl stop tomcat
#配置开机启动
systemctl enable tomcat
apache:
文件:/var/www//html
配置:/etc/httpd
tomcat:
配置:/etc/tomcat/
文件:/var/lib/tomcat/webapps