在修改C:\windows\system32\drivers\etc\hosts文件时会出现警告的对话框的解决方案

在修改C:\windows\system32\drivers\etc\hosts文件时会出现警告的对话框:你没有权限在此位置保存文件!请与管理员联系以取得权限!以下是我在网上搜到的方案,但是我只有第一种方案成功了。

第一种方案:直接在你要改的文件C:\windows\system32\drivers\etc\hosts上点击右键,选择【属性】,转到【安全】选项卡,选择【编辑】,然后勾选【完全控制】,【确定】。


第二种方案:首先在“控制面板”下的【账户管理】看看自己是不是管理员,如果不是首先设置为管理员!

右击C盘,点击【属性】,选择【安全】选项卡,点击【高级按钮】,


看看高级里面的自己的--【应用于】是否是-【此文件家、子文件夹和文件】,如果不是

点击左下角的【更改权限】,然后选择【编辑】,【应用于】选此文件夹、子文件夹和文件,然后确定






                        <li class="tool-item tool-active is-like "><a href="javascript:;"><svg class="icon" aria-hidden="true">
                            <use xlink:href="#csdnc-thumbsup"></use>
                        </svg><span class="name">点赞</span>
                        <span class="count"></span>
                        </a></li>
                        <li class="tool-item tool-active is-collection "><a href="javascript:;" data-report-click="{&quot;mod&quot;:&quot;popu_824&quot;}"><svg class="icon" aria-hidden="true">
                            <use xlink:href="#icon-csdnc-Collection-G"></use>
                        </svg><span class="name">收藏</span></a></li>
                        <li class="tool-item tool-active is-share"><a href="javascript:;" data-report-click="{&quot;mod&quot;:&quot;1582594662_002&quot;}"><svg class="icon" aria-hidden="true">
                            <use xlink:href="#icon-csdnc-fenxiang"></use>
                        </svg>分享</a></li>
                        <!--打赏开始-->
                                                <!--打赏结束-->
                                                <li class="tool-item tool-more">
                            <a>
                            <svg t="1575545411852" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5717" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M179.176 499.222m-113.245 0a113.245 113.245 0 1 0 226.49 0 113.245 113.245 0 1 0-226.49 0Z" p-id="5718"></path><path d="M509.684 499.222m-113.245 0a113.245 113.245 0 1 0 226.49 0 113.245 113.245 0 1 0-226.49 0Z" p-id="5719"></path><path d="M846.175 499.222m-113.245 0a113.245 113.245 0 1 0 226.49 0 113.245 113.245 0 1 0-226.49 0Z" p-id="5720"></path></svg>
                            </a>
                            <ul class="more-box">
                                <li class="item"><a class="article-report">文章举报</a></li>
                            </ul>
                        </li>
                                            </ul>
                </div>
                            </div>
            <div class="person-messagebox">
                <div class="left-message"><a href="https://blog.csdn.net/Amina_L">
                    <img src="https://profile.csdnimg.cn/7/2/4/3_amina_l" class="avatar_pic" username="Amina_L">
                                            <img src="https://g.csdnimg.cn/static/user-reg-year/1x/8.png" class="user-years">
                                    </a></div>
                <div class="middle-message">
                                        <div class="title"><span class="tit"><a href="https://blog.csdn.net/Amina_L" data-report-click="{&quot;mod&quot;:&quot;popu_379&quot;}" target="_blank">Amina_L</a></span>
                                            </div>
                    <div class="text"><span>发布了7 篇原创文章</span> · <span>获赞 3</span> · <span>访问量 1万+</span></div>
                </div>
                                <div class="right-message">
                                            <a href="https://im.csdn.net/im/main.html?userName=Amina_L" target="_blank" class="btn btn-sm btn-red-hollow bt-button personal-letter">私信
                        </a>
                                                            <a class="btn btn-sm  bt-button personal-watch" data-report-click="{&quot;mod&quot;:&quot;popu_379&quot;}">关注</a>
                                    </div>
                            </div>
                    </div>
    
发布了43 篇原创文章 · 获赞 12 · 访问量 1376

猜你喜欢

转载自blog.csdn.net/qq_42411214/article/details/104906633