1.首先准备:
一个公网ip,一台云服务器
2.用ssh连接云服务器
3.rm -rf /etc/yum.repos.d/*.repo 清除损坏的repo包
curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.myhuaweicloud.com/repo/CentOS-Base-7.repo 下载华为的yum
yum clean all 清除缓存
yum makecache 重新生成
4.yum -y install httpd 下载
systemctl start httpd 开启
systemctl enable httpd 开机自启
5.在华为云上给主机绑定公网ip
6.cd /var/www/html/进入跟目录
写html文件
登录页面文件
<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
用户/账号名字:
<input id="name" type="text"name="name"
value="" placeholder="请输入用户名">
<input id="password" type="text"name="password"
value="" placeholder="请输入密码">
&