I’ve spent years curating a collection of Mac bash aliases and shortcuts to make my life easier. My full .bash_profile is below, feel free to take whatever you find useful and put it to good use. A (VERY) QUICK PRIMER ON .BASH_PROFILE FOR MAC USERS T…
一.问题描述 伪分布式下Hadoop3.2版本打不开localhost:50070,可以打开localhost:8088 二.解决办法 Hadoop3.2版本namenode的默认端口配置已经更改为9870,即: localhost:9870…
http协议为什么打不开https站点 在访问一个https的站点,比如 https://www.aaa.com,首次访问时,访问的地址是 http://www.aaa.com,(不加S),出现的是网站不可用,打不开,再次使用https进行访问,就能正常打开.随后在使用http协议进行访问,会自动重定向到https的域名,这是浏览器缓存之后自动重定向的行为,或者是服务器端没有做好http到https站点的重定向? 其实是这样的,第一次访问http页面,由于服务器端没有做好301重定向,所以出现链…
1. 在登录Linux时要执行文件的过程如下: 在刚登录Linux时, 首先启动 /etc/profile 文件, 然后再启动用户目录下的 ~/.bash_profile. ~/.bash_login或 ~/.profile文件中的其中一个,用户主目录下文件的执行的顺序为: ~/.bash_profile -> ~/.bash_login -> ~/.profile. 如果 ~/.bash_profile文件存在的话,一般还会执行 ~/.bashrc文件. 因为在 ~/.bash_profil…
原文网址:http://blog.csdn.net/ithomer/article/details/6322892 在登录Linux时要执行文件的过程如下:在刚登录Linux时,首先启动 /etc/profile 文件,然后再启动用户目录下的 ~/.bash_profile. ~/.bash_login或 ~/.profile文件中的其中一个, 执行的顺序为:~/.bash_profile. ~/.bash_login. ~/.profile. 如果 ~/.bash_profile文件存在的话,…
今天有一同事安装了ORACLE后,在切换账号时遇到错误提示"-bash: .bash_profile: command not found".如下所示 [root@GLETestLinux ~]# su - oracle -bash: .bash_profile: command not found [oracle@GLETestLinux ~]$ more .bash_profile .bash_profile   # Get the aliases and functions  …
登陆shell与交互式非登陆shell的区别 登录shell 所谓登录shell,指的是当用户登录系统时所取的那个 shell.登录shell属于交互式shell. 登录shell将查找4个不同的启动文件来处理其中的命令. bash shell处理文件的顺序如下: /etc/profile /etc/profile.d等待配置文件 $HOME/.bash_profile $HOME/.bash_login $HOME/.profile /etc/profile是bash shell在系统上的主默…
login 方式:: su - oracle 依次 /etc/bash.bashrc———— /home/$user/.bashrc ———— /ect/profile ———— /home/$user/.bash_profile(找不到~/.bash_profile, 则寻找~/.bash_login,若前两者不存在,读取~/.profile) -- 可见.profile的作用其实很次要的正常 bash.bashrc oracle .bashrcetc profie oracle .bash_…
A typical install of OS X won't create a .bash_profile for you. When you want to run functions from your command line, this is a must-have. Start up Terminal Type "cd ~/" to go to your home folder Type "touch .bash_profile" to create y…
环境变量是和Shell紧密相关的,用户登录系统后就启动了一个Shell.对于Linux来说一般是bash,但也可以重新设定或切换到其它的 Shell.对于UNIX,可能是CShelll.环境变量是通过Shell命令来设置的,设置好的环境变量又可以被所有当前用户所运行的程序所使用.对于bash这个Shell程序来说,可以通过变量名来访问相应的环境变量,通过export来设置环境变量.下面通过几个实例来说明.1)etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被…