zoukankan      html  css  js  c++  java
  • MAC系统如果碰到报错信息:sudo:command not found

    ** 一般要考虑最近是否有别人或者自己修改过环境变量,这种报错往往是因为环境变量设置错误导致的。 **

     1. 首先要获得创建,或者是打开bash_profile的权限,请在命令行中输入:

      export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/X11R6/bin

     可以实现bash_profile暂时的使用。

     2.输入cd ~/ #进入当前用户的home目录

     3.创建bash_profile 执行命令:

      touch .bash_profile

     4.打开并编辑bash_profile执行命令:

      open .bash_profile

     5.这样就打开了一个笔记本,会显示已经配置过的path,修改记事本,先全部删除,有用的可以备份,命令行解决后再加

      export PATH="/usr/local/bin:/usr/local/sbin:~/bin:$PATH"

      PATH="/Library/Frameworks/Python.framework/Versions/3.6/bin:${PATH}"

      export PATH=$Path:/usr/local/mysql/bin

     6.保存,command + s

     7.在此命令行输入更新命令

      source .bash_profile

     8.然后输入 sudo spctl --master-disable

  • 相关阅读:
    TrieTree的学习
    单调队列(monotonic queue)列与单调栈的学习
    507. Perfect Number
    157. Read N Characters Given Read4
    nsexec
    nsenter
    setjmp
    runc 测试
    cgo setns + libcontainer nsexec
    前端 导出为Excel 数据源为table表格 并且table中含有图片
  • 原文地址:https://www.cnblogs.com/angelawu0220/p/automation.html
Copyright © 2011-2022 走看看