详细看网址:https://blog.csdn.net/wrs120/article/details/77509070 压缩包和解压包的存放目录均为/usr/local/src/ 环境变量在/root/.bash_profile (自己添加) 一、安装前准备 1. 安装gcc # 安装命令 yum ...
分类:
数据库 时间:
2020-06-16 23:23:35
阅读次数:
270
全局的是在/etc目录下(/etc/profile)用户个人的是在用户的家目录下(~/.profile) 查看: 全局:cat /etc/profile 个人:cat ~/.bash_profile 编辑: 全局:vi /etc/profile 个人:vi ~/.bash_profile ...
分类:
系统相关 时间:
2020-06-16 16:51:46
阅读次数:
90
1.问题描述 现在新建了一个用户logan,无法正常使用SQL*Plus命令,经过查询后,发现需要配置Oracle环境变量信息 2.解决办法 进入到Oracle用户家目录下/home/oracle,使用命令cat .bash_profile查看其中的内容,将其中与Oracle相关的变量信息copy到 ...
分类:
数据库 时间:
2020-06-16 15:33:57
阅读次数:
77
1、编辑.bash_profile文件,输入命令:open -a TextEdit ~/.bash_profile 2、在~/.bash_profile配置phantomjs路径,export PATH="/usr/local/#phantomjs-2.1.1-macosx/bin$PATH" 3、 ...
分类:
编程语言 时间:
2020-06-15 14:04:11
阅读次数:
134
1. ssh 乱码 使用mac登录linux服务器时命令行有时候会出现"???"等乱码,这时候需要在~/.bashrc文件末尾中添加export LANG=C,保存然后执行source ~/.bashrc,乱码问题便解决了。 2. 获取CPU负载情况 2.1 安装 使用sar命令,先执行sudo a ...
分类:
系统相关 时间:
2020-06-14 21:02:41
阅读次数:
97
1、修改/root/.bash_profilevim.bash_profile在文件末尾加上HISTTIMEFORMAT="%F%T"2、重新读取文件source.bash_profile3、验证
分类:
其他好文 时间:
2020-06-14 10:46:14
阅读次数:
70
1.进入你的home目录 cd ~ 2.编辑.bashrc文件 vi .bashrc 3. 将下面的代码加入到文件的最后处 function git_branch { branch="`git branch 2>/dev/null | grep "^\*" | sed -e "s/^\*\ //"` ...
分类:
系统相关 时间:
2020-06-12 10:50:36
阅读次数:
127
记一次配置alias遇到的问题 背景 刚到一家公司没多久,使用linux跳板机时,发现每次登陆目标主机时,都需要重新输入 ssh user@ip 等命令了,于是就想着去加一下alias吧。 更以前以前一样:直接vi .bashrc,增加alias 语句就好了, 一顿操作配置完了: 配置完.bashr ...
分类:
系统相关 时间:
2020-06-12 01:09:15
阅读次数:
138
新建脚本,并命名为welcome.sh,将如下内容写入脚本中。#!/bin/bashchmod ugo+x welcome.shcd ~sudo apt-get updatesudo apt-get install cowsaysudo apt-get install fortunegit clon ...
分类:
系统相关 时间:
2020-06-11 20:03:56
阅读次数:
118
1. 将node npm 删除干净后, 下载 nvm curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.3/install.sh | bash 配置环境变量 : 1| vi ~/.bash_profile 2| export NV ...
分类:
其他好文 时间:
2020-06-11 20:00:54
阅读次数:
63