美文网首页
mac个人设置

mac个人设置

作者: 小胖_20c7 | 来源:发表于2019-06-24 16:30 被阅读0次
    bash的设置
    1 sudo scutil --set HostName FWQ-001
    2 vim .bash_profile:
        exprot LANG='en_US.UTF-8'
        export PS1='[\u@\h \W]\$ '
        export CLICOLOR=1
        export LSCOLORS=Exfxcxdxbxegedabagacad
        export GREP_OPTIONS='--color=auto'
    3 vim /etc/ssh/ssh_config:
        # SendEnv LANG LC_*
    
    关于root账户
    1 原理:
        在Mac中root默认是禁用的
        所谓禁用是指系统将root密码设定为一个随机值,它存在,但是没有人知道它是什么,所以无法使用
        所以开启root用户的实质就是给root分配一个固定密码
    2 开启root:
        dsenableroot
    3 关闭root:
        dsenableroot -d
    
    安装Homebrew:
    1 百度搜索Homebrew首页,根据提示下载安装Homebrew
    2 brew install wget

    相关文章

      网友评论

          本文标题:mac个人设置

          本文链接:https://www.haomeiwen.com/subject/ayanqctx.html