(一)安装环境:虚拟机centos7系统
首次安装了nginx,编译安装成功,具体安装过程这里就不赘述了。也启动了nginx,但是返回windows后,浏览器无法访问nginx。
(二)Linux中测试nginx是否能正常启动
这里的ip注意替换个人ip
curl http://192.168.174.101/
如果本地机器nginx能正常启动,显示如下:
<!DOCTYPE html>
<html>
<head>
<title>Welcome to tengine!</title>
<style>
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
</style>
</head>
<body>
<h1>Welcome to tengine!</h1>
<p>If you see this page, the tengine web server is successfully installed and
working. Further configuration is required.</p>
<p>For online documentation and support please refer to
<a href="http://tengine.taobao.org/">