<HUAWEI> system-view
[HUAWEI] http server enable //缺省情况下,设备的HTTP IPv4服务功能已开启,HTTP IPv6服务功能为关闭状态
[HUAWEI] http server-source -i MEth0/0/1 //缺省情况下,设备默认将管理IP地址192.168.1.253配置在管理网口或VLANIF1接口下,并将该接口设置为HTTP服务器端的源接口,且设备默认未指定HTTP服务器端的IPv6源地址。
Warning: The operation will reboot the HTTP server. Continue? [Y/N]:y
Info: Succeeded in setting the source interface of the HTTP server to MEth0/0/1.
Info: Succeeded in starting the HTTP secure server.
Warning: HTTP is not a secure protocol, and it is recommended to use HTTPS.
Info: Succeeded in starting the HTTP server.
[HUAWEI] quit
[HUAWEI-aaa] local-user admin123 privilege level 15 //配置本地用户admin123的级别为15
Warning: This operation may affect online users, are you sure to change the user privilege level ?[Y/N]y
[HUAWEI-aaa] local-user admin123 service-type http //配置本地用户admin123的接入类型为HTTP
[HUAWEI-aaa] quit
4.查看HTTPS服务器信息
[HUAWEI] display http server
HTTP Server Status : enabled
HTTP Server Port : 80(80)
HTTP Timeout Interval : 20
Current Online Users : 3
Maximum Users Allowed : 5
HTTP Secure-server Status : enabled
HTTP Secure-server Port : 443(443)
HTTP SSL Policy : ssl_server
HTTP IPv6 Server Status : disabled
HTTP IPv6 Server Port : 80(80)
HTTP IPv6 Secure-server Status : disabled
HTTP IPv6 Secure-server Port : 443(443)
HTTP server source interface : MEth0/0/1