一、建虚拟环境1. 下载:python2. 解压:tar -xzvf ******.tgz3. cd Python-2.7.24. ./configure --prefix=${pwd}5. make6. sudo make install// sudo gedit /etc/profile// ....
分类:
编程语言 时间:
2015-03-13 23:39:42
阅读次数:
175
关于登录linux时,/etc/profile、~/.bash_profile等几个文件的执行过程。在登录Linux时要执行文件的过程如下:在刚登录Linux时,首先启动 /etc/profile 文件,然后再启动用户目录下的 ~/.bash_profile、 ~/.bash_login或 ~/.profile文件中的其中一个,执行的顺序为:~/.bash_profile、 ~/.bash_logi...
分类:
系统相关 时间:
2015-03-13 16:28:56
阅读次数:
179
在centos中因为安装java而配置 jdk环境变量的原因,对/etc/profile文件进行了编辑错误的环境变量配置导致在第一次修改profile文件并保存后,执行source /etc/profile 命令后进行测试即:javac /java/ java -version 都可以得到正确的验....
分类:
其他好文 时间:
2015-03-13 16:05:55
阅读次数:
128
1、下载安装包http://maven.apache.org/download.cgi2、解压tar zxvf apache-maven-3.2.5-bin.tar.gz3、配置环境打开vim /etc/profile 添加MAVEN_HOME=/usr/local/apache-maven-3.2...
分类:
其他好文 时间:
2015-03-12 12:59:58
阅读次数:
114
[root@mode tools]# echo 'export LC_ALL=C'>>/etc/profile
[root@mode tools]# tail -l /etc/profile
done
unset i
unset pathmunge
export PATH=$PATH:/usr/local/sersync/bin
export PATH=$PATH:/usr/local/mysq...
分类:
其他好文 时间:
2015-03-11 23:29:12
阅读次数:
155
编辑git安装目录下的etc目录中的profile文件。例如: E:\Git\etc\profile 找到如下行:
# Set up USER's home directory
if [ -z "$HOME" -o ! -d "$HOME" ]; then
HOME="$HOMEDRIVE$HOMEPATH"
if [ -z "$HOME" -o ! -d "$HOME" ]; th...
分类:
其他好文 时间:
2015-03-11 17:26:28
阅读次数:
181
1.can not use ifconfighttp://blog.csdn.net/zjt289198457/article/details/6918644 add this : export PATH=$PATH:/sbinc at the end of file /etc/profile an...
分类:
系统相关 时间:
2015-03-10 01:23:12
阅读次数:
190
Linux系统当你在shell(控制台)中输入并执行命令时,shell会自动把你的命令记录到历史列表中,一般保存在用户目录下的.bash_history文件中。默认情况下,history不记录命令的执行时间,如果要记录哪个用户执行了某些命令则需要我们通过修改/etc/profile文件来实现首先history显..
分类:
系统相关 时间:
2015-03-06 17:23:47
阅读次数:
180
linux搭建hadoop环境1、安装JDK (1)下载安装JDK:确保计算机联网之后命令行输入下面命令安装JDK sudo apt-get install sun-java6-jdk (2)配置计算机Java环境:打开/etc/profile,在文件最后输入下面内容 e...
分类:
系统相关 时间:
2015-03-05 14:44:48
阅读次数:
164
作者:zhanhailiang 日期:2015-03-04
$_ENV 值是从 PHP 解析器的运行环境导入到 PHP 的全局命名空间。比如,php-cli模式执行,读取当前用户环境变量;php-fpm模式初始化时,读取当前用户环境变量;
1. 通过 修改系统级、用户级配置文件 设置环境变量
通过 /etc/profile, /etc/environment, ~/.profi...
分类:
Web程序 时间:
2015-03-04 21:04:51
阅读次数:
364