1、查看系统中的别名 alias 2、临时更改别名 alias rm='command not found.' 3.永久更改别名 vim /etc/profile > 最后一行添加 alias rm='command not found.' 》 保存退出后,source /etc/profile 激 ...
分类:
系统相关 时间:
2020-04-02 01:04:23
阅读次数:
99
.在httpd配置完成的情况下进行一下操作#提前做一个软连接[root@localhost~]#echo"exportPATH=/usr/local/apachectl/bin:$PATH">/etc/profile.d/httpd.sh[root@localhost~]#./etc/profile.d/httpd.sh[root@localhost~]#apachectlstart#设置是
分类:
Web程序 时间:
2020-04-01 19:41:47
阅读次数:
122
1.三个节点 2.安装包 3.安装JDK-12版本 在/etc/profile添加环境变量 [root@node3 ~]# source /etc/profile cat >>/etc/profile <EOF export JAVA_HOME=/usr/java/jdk-12.0.1export ...
分类:
其他好文 时间:
2020-04-01 10:41:45
阅读次数:
54
/etc/profile/etc/bashrc~/.bash_profile~/.bashrc 是 bash 的启动脚本一般用来设置单用户的启动环境,也可以实现开机单用户的程序,但要明确他们都是属于 bash 范畴而不是系统范畴。他们的具体作用介绍如下:/bin/bash 这个命令解释程序(后面简称 ...
分类:
系统相关 时间:
2020-03-31 18:54:56
阅读次数:
94
# /etc/profile # System wide environment and startup programs, for login setup # Functions and aliases go in /etc/bashrc # It's NOT a good idea to cha ...
分类:
系统相关 时间:
2020-03-31 12:42:47
阅读次数:
284
-bash: nginx: command not found 解决banf : 1、vim /etc/profile 添加 内容 PATH=$PATH:/usr/local/nginx/sbinexport PATH 如下 2,source /etc/profile 让配置文件重新生效一下 执行成 ...
分类:
其他好文 时间:
2020-03-31 10:25:41
阅读次数:
58
一:golang下载地址https://studygolang.com/dl二:环境变量配置1,Linuxvim/etc/profile.d/go.sh#新建环境变量文件,输入以下内容exportGOROOT=/opt/go#安装目录exportGOPATH=/opt/gopath#项目目录exportPATH=$PATH:$GOROOT/binexportGOPROXY=https://mirr
分类:
其他好文 时间:
2020-03-30 00:20:12
阅读次数:
87
查看当前系统Java版本的命令: java -version 如果显示Java版本号,说明已经正确安装,如果显示没有该命令,需要自行安装Java; 在执行项目的脚本前加上source /etc/profile; 完整的脚本为: (/var/lib/jenkins/workspace/demoSecu ...
分类:
编程语言 时间:
2020-03-26 12:02:17
阅读次数:
161
1、准备环境 centos 6.5 apache-hive-3.1.2-bin.tar.gz 2、解压 tar zxvf /opt/software/apache-hive-3.1.2-bin.tar.gz -C /opt/module/ 3、环境变量 修改环境变量:vi /etc/profile ...
分类:
其他好文 时间:
2020-03-23 17:16:26
阅读次数:
76
更改测试集群版本,重新安装集群,就写了个文档记录一下。 1.关闭Linux的防火墙 临时关闭防火墙:service iptables stop永久关闭防火墙:chkconfig iptables off 2.安装JDK 配置环境: vim /etc/profile 环境变量生效: source /e ...
分类:
系统相关 时间:
2020-03-23 17:03:24
阅读次数:
84