脚本如下,已验证可用,可配合crontab使用。 1 #!/bin/bash 2 3 cd /opt/oracle/datafor_kf 4 5 #redirect environment variables 6 source /opt/oracle/.bash_profile 7 8 #times... ...
分类:
数据库 时间:
2018-12-07 23:25:12
阅读次数:
274
PS:今天安装groovy,需要设置环境变量,vim ~/.bash_profile,然后立马执行了source ~/.bash_profile。最后,发现ls,more,vim等常用命令失效了。立马就知道肯定是环境变量设置的有问题,可问题是,我想修改~/.bash_profile,可是vim无法使 ...
分类:
系统相关 时间:
2018-12-06 20:47:16
阅读次数:
330
mac 一般使用bash作为默认shell Mac系统的环境变量,加载顺序为:/etc/profile /etc/paths ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc当然/etc/profile和/etc/paths是系统级别的,系统启动就 ...
分类:
系统相关 时间:
2018-12-06 17:49:46
阅读次数:
165
1。历史命令 # 当前用户不记录历史命令 echo "HISTSIZE=0" >> ~/.bash_profile # 情况记录的历史命令 > ~/.bash_history # 推出重新打开测试 ...
分类:
其他好文 时间:
2018-12-04 22:32:37
阅读次数:
227
出现-bash-4.1$原因:缺少.bash_profile环境变量文件
分类:
系统相关 时间:
2018-12-03 21:09:01
阅读次数:
231
bash的配置文件 一、shell的两种登录方式: 1、交互式登录: (1)直接通过终端输入账号密码登录 (2)使用“su UserName” 切换的用户 执行顺序:/etc/profile /etc/profile.d/ .sh ~/.bash_profile ~/.bashrc /etc/bas ...
分类:
其他好文 时间:
2018-12-02 01:19:33
阅读次数:
292
在cygwin下使用python: 安装cygwin,找到.bash_profile (在用户目录下 比如 C:\Cygwin\home\username\) 运行时, 参考1 安装GCC 安装git ...
分类:
编程语言 时间:
2018-11-25 20:02:09
阅读次数:
774
vi /home/lx/.bash_profile中添加 PATH=$PATH:$HOME/bin:/sbin:/bin export PATH linux查看服务自启动 chkconfig --list linux修改服务自启动 ntsysv 带*为自启动 关闭防火墙 service iptabl ...
分类:
其他好文 时间:
2018-11-24 19:48:34
阅读次数:
198
检查源 安装 php7 安装好之后最后一行会如下图所示: 检查安装好没有,可以看下有没有 这个文件夹,有了就是安装成功了。 启动 php fpm 设置 php fpm 快捷指令 打开 bash_profile ,把下面的代码粘贴进去 配置nginx 打开 nginx.conf, 基本只要改一下那个地 ...
分类:
Web程序 时间:
2018-11-22 02:32:59
阅读次数:
307
理论篇 Mac系统的环境变量,加载顺序为: /etc/profile /etc/paths ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc /etc/profile和/etc/paths是系统级别的,系统启动就会加载,后面几个是当前用户级的环境变 ...
分类:
系统相关 时间:
2018-11-19 11:01:39
阅读次数:
231