版本有的dvd 和 everything。EVERYING就是集成所有安装包,DVD是标准版。
可以离线安装,预先配置本地yum源。
修改Centos-Base.repo,保存
vi /etc/yum.repos.d/Centos-Base.repo
[base]
name=RHEL-$releasever - Base
baseurl=file:///mnt/
gpgcheck=0
enabled=1
加载光驱
mount /dev/cdrom /mnt/
yum install httpd // install apache
yum -y install mod_ssl // install ssl
systemctl start httpd // start apache
systemctl status httpd // show status apache
systemctel enable httpd // 自启动
systemctl stop firewalld // stop firewalld
yum install tomcat
yum install tomcat-webapps tomcat-admin-webapps // install tomcat management
ip addr // show ip address,
ss -tnlp // show port