默认ESC CenterOS 是没有安装图形化界面的,这里我们采用官方安装图形化方法 install_vnc_server.sh 脚本
1.下载install_vnc_server.sh脚本
可以在阿里官方去下载,这个脚本是针对大多是Linux内核系统的,不只是CenterOS
2.下载putty
输入ESC的公网地址进入CenterOS系统,输入用户名和密码进入控制台界面
3.执行install_vnc_server.sh脚本文件
a.新建install_vnc_server.sh文件 vi install_vnc_server.sh
b.将下载的install_vnc_server.sh文件内容拷贝到新建的install_vnc_server.sh文件中去,保存
c.执行install_vnc_server.sh脚本 bash install_vnc_server.sh
这样 就开始不断的下载所需要的文件
4.VNC配置
a.启动vncserver 命令vncserver
b.配置vnc password 命令 vncpasswd
5.连接vnc图形化界面
a.下载vnc viewer
b.输入公网的IP地址和对应 的密码就连接成功
6.安装Apache
a.检查Apache时候存在 rpm -qa httpd(Apache在Linux名字)
如果没有返回信息说明没有安装,有的话检查信息看是否安装
b.yum install httpd -y 安装Apache