请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

老师,我输入ipconfig后,没有看到服务器IP

语法检测正常,输入ifconfig |grep 12  后只出现了这

[root@iZuf6c3lh54r8qj8l3o6zlZ sbin]# sudo ./nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
[root@iZuf6c3lh54r8qj8l3o6zlZ sbin]# sudo ./nginx -s reload
[root@iZuf6c3lh54r8qj8l3o6zlZ sbin]# ifconfig |grep 12
          inet addr:127.0.0.1  Mask:255.0.0.0
[root@iZuf6c3lh54r8qj8l3o6zlZ sbin]#

为何没出现这个地址

https://img1.sycdn.imooc.com/szimg/59ed438200016b3215360864.jpg

这个地址,在阿里云那边可以看到吗,可以的话就在那边也一样

正在回答 回答被采纳积分+3

1回答

Rosen 2017-10-23 18:40:01

grep你自己的ip

0 回复 有任何疑惑可以回复我~
  • 提问者 TheBayMax #1
    好的,我试试
    回复 有任何疑惑可以回复我~ 2017-10-24 09:39:06
  • 老师这是写 ifconfig | grep    + 自己的 ip吗
    回复 有任何疑惑可以回复我~ 2017-12-16 15:09:16
  • Rosen #3
    是的,不过阿里云有种机器是看不到外网ip地址的,要去控制台看
    回复 有任何疑惑可以回复我~ 2017-12-16 19:40:04
问题已解决,确定采纳
还有疑问,暂不采纳
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号