我要评分
获取效率
正确性
完整性
易理解

Verifying Tengine

  1. Check the Nginx listen port (20000 is the HTTPS listen port, and 10000 is the HTTP listen port).
    1
    2
    3
    netstat -anpt | grep 10000
    netstat -anpt | grep 20000
    netstat -anpt
    

  2. View the Tengine HTML file.
    1
    ll /usr/local/tengine-nginx/html/
    

  3. Verify the HTTPS function.

    Access the Nginx HTML page using curl.

    1
    curl -k https://127.0.0.1:20000/index.html
    

    If the welcome to Tengine information is displayed, the HTTPS function is configured successfully.

  4. Verify the HTTP function.

    Access the Nginx HTML page using curl.

    1
    curl http://127.0.0.1:10000/index.html
    

    If the welcome to Tengine information is displayed, the HTTP function is configured successfully.