Site for the record
After we had a website for the record, the record must put their number at the bottom of their home page and jump to the Ministry of Industry website.
But in the initial stages of our development, there is no molding project published on the server, then we can put the purpose of a static html interface on the home page, which is the sharing.
step
Install apache2
debian series (Ubuntu, Debian): APT-GET install apache2
Fedora series (rhel, centos): yum install httpd
Open apache service
systemctl start httpd/apache2
systemctl stop httpd/apache2
Edit Source
New or modified index.html file, source code is added at / var / www / html / directory, as follows:
<html>
<head>
<title>优惠八五二测试站(备案用)</title>
<meta charset="UTF-8">
<style>
header { background-color:black; color:white; text-align:center; padding:5px;}nav { line-height:30px; background-color:#eeeeee; height:480px; width:100px; float:left; padding:5px;}section { width:350px; float:left; padding:10px;}footer { background-color:black; color:white; clear:both; text-align:center; padding:5px;}
</style>
</head>
<body>
<header>
<h1>此网站用于个人开发测试。</h1>
</header>
<nav>
Bawuer
</nav>
<section>
<h1>黑龙江省宝清县八五二农场</h1>
<p>
非常美,美得自然。
</p>
<p>
呼吸着新鲜的空气,一眼望不到边的良田。
</p>
</section>
<footer>
<a href="http://www.beian.miit.gov.cn">备案号:黑ICP备18006514号</a>
</footer>
</body>
</html>
test
Access your own domain name (domain name resolution is set too), such as access http://www.xxx.com, the page should appear as follows :