.bash_profile和.bashrc的什么区别及启动过程 /etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行. 并从/etc/profile.d目录的配置文件中搜集shell的设置. /etc/bashrc:为每一个运行bash shell的用户执行 ...
分类:
其他好文 时间:
2020-04-26 14:20:02
阅读次数:
64
问题解决 检查/etc/profile配置文件并修改错误内容 来龙去脉(当笑话听) 我在安装好JDK环境之后,想在去安装Jenkins时,发现weget命令无法使用 然后百度解决weget的办法 然后百度解决curl的办法 然后百度解决***的办法 。。。。。。 最后发现原来所有的基础命令都无法使用 ...
分类:
其他好文 时间:
2020-04-25 23:51:17
阅读次数:
263
环境变量:/etcprofile;/etc/bashrc;~/.bash_profile;~/.bashrc;~/.bash_logout ...
分类:
其他好文 时间:
2020-04-25 17:36:35
阅读次数:
63
1.注意,Linux的别名,即alias是不能写在/etc/profile或/etc/environment里的,即便开机启动后执行了/etc/environment,然后里面有配置别名,但是打开一个bash输入里面写的别名也是会提示找不到命令 ,因为别名它是属于bash的范畴,要写在/etc/ba ...
分类:
系统相关 时间:
2020-04-24 16:04:11
阅读次数:
133
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured. 一、问题描述 *************************** ...
分类:
Web程序 时间:
2020-04-24 10:28:16
阅读次数:
97
#!/bin/bash rpm -ivh jdk-8u131-linux-x64_.rpm if [ `grep JAVA_HOME /etc/profile | wc -l` -ne 4 ];then echo -e 'export JAVA_HOME=/usr/java/jdk1.8.0_131 ...
分类:
其他好文 时间:
2020-04-22 16:39:41
阅读次数:
66
配置中心指定profile后启动报错 2020-04-22 14:35:48.306 ERROR 22828 [ restartedMain] o.s.b.web.embedded.tomcat.TomcatStarter : Error starting Tomcat context. Excep ...
分类:
编程语言 时间:
2020-04-22 14:49:48
阅读次数:
908
python3.7 Chrome: # 修改lang=zh-CN即可更改语言, 可在 https://blog.csdn.net/Sam_ONE/article/details/102571595 下寻找对应的 chrome_options = webdriver.ChromeOptions() c ...
分类:
编程语言 时间:
2020-04-21 13:15:48
阅读次数:
395
1.grep grep命令是一种强大的文本搜索工具,它能使用正则表达式搜索文本,并把匹配的行打印出来; 1.1 匹配带有JAVA_HOME的行 grep JAVA_HOME profile 1.2 显示不被pattern匹配的行(-v) grep -v JAVA_HOME profile 1.3 忽 ...
分类:
系统相关 时间:
2020-04-21 13:00:55
阅读次数:
63
这里是代理问题的锅 我们需要把/etc/profile中的代理注释掉在进行 以下操作 ...
分类:
其他好文 时间:
2020-04-21 12:45:15
阅读次数:
209