.bash_profile does not exist】的更多相关文章

localhost:test jerry$ open .bash_profile The file /Users/je/Desktop/test/.bash_profile does not exist. localhost:test je$ open .bash_profile The file /Users/je/Desktop/test/.bash_profile does not exist. localhost:test jerry$ cd ~ localhost:~ jerry$ o…
近日在使用ssh命令ssh user@remote ~/myscript.sh登陆到远程机器remote上执行脚本时,遇到一个奇怪的问题: ~/myscript.sh: line n: app: command not found   app是一个新安装的程序,安装路径明明已通过/etc/profile配置文件加到环境变量中,但这里为何会找不到?如果直接登陆机器remote并执行~/myscript.sh时,app程序可以找到并顺利执行.但为什么使用了ssh远程执行同样的脚本就出错了呢?两种方式…
注:本文来于<  Mac配置Java开发环境    > 1. 下载JDK 从下面链接选择合适版本的安装包进行下载...笔者下载的是jdk-9.0.1 链接:http://www.oracle.com/technetwork/java/javase/downloads/index.html 2. 安装JDK 双击jdk-9.0.1_osx-x64_bin.dmg文件进行安装 3. 查看是否安装成功 打开terminal,输入:java -version JiaxindeMacBook-Pro:C…
笔者从Window上转到Mac上做开发,一切配置都要重新开始,开发环境配置介绍如下: 1. 下载JDK 从下面链接选择合适版本的安装包进行下载...笔者下载的是jdk-9.0.1 链接:http://www.oracle.com/technetwork/java/javase/downloads/index.html 2. 安装JDK 双击jdk-9.0.1_osx-x64_bin.dmg文件进行安装 3. 查看是否安装成功 打开terminal,输入:java -version Jiaxind…
近日在使用ssh命令ssh user@remote ~/myscript.sh登陆到远程机器remote上执行脚本时,遇到一个奇怪的问题: ~/myscript.sh: line n: app: command not found app是一个新安装的程序,安装路径明明已通过/etc/profile配置文件加到环境变量中,但这里为何会找不到?如果直接登陆机器remote并执行~/myscript.sh时,app程序可以找到并顺利执行.但为什么使用了ssh远程执行同样的脚本就出错了呢?两种方式执行…
一.无法启动 zookeeper之前可以很好的运行,由于zk集群不是正常的关闭,比如 强制Linux关闭,直接执行kill 命令zk的进程等原因导致zookeeper启动不了 启动命令后,查看状态,会发现没有启动 [root@node02 bin]# zkServer.sh status ZooKeeper JMX enabled by default Using config: /usr/local/zookeeper/bin/../conf/zoo.cfg Error contacting…
MacOS配置.bash_profile,重启终端后配置失效和MacOS .zshrc does not exist问题 场景 ​ 在Mac中配置golang环境变量更改GOPATH路径,在~/.bash_profile中配置新的路径,source ~/.bash_profile之后关掉终端,再用go env查看GOPATH发现路径又还原了. 原因 ​ 使用的终端是zsh,zsh加载的是~/.zshrc文件,而该文件中没有定义任务环境变量. 解决 1.打开终端在用户目录下(cd ~)执行ls -…
ORA-27101:shared memory realm does not exist的问题 登陆SQLPlus时出现: ORA-01034:ORACLE not avaiable ORA-27101 : shared memory realm does not exist Process ID:0 Session ID:0 Serial Number:0 解决办法一: 1.[oracle@wpj ~]$sqlplus / nolog; 2.用SYS用户登录:[oracle@wpj ~]$ …
今天配置一个代理,正儿八经的把我搞蒙了,不就是export http_porxy=xxx.xxx.xxx.xxx:xxxx 然后重启服务service network restart ,依然连接不了外网! 前提:我是通过ssh连接过去的 1>当我把环境变量写到.bashrc,重启服务,不生效 2>当我把环境变量写到.bash_profile的时候,重启服务,生效 3>当我把环境变量写到.bashrc,if判断之前的时候 如: # .bashrc export http_proxy= ex…
[oracle@ybdbtest oradata]$ sqlplus /nolog SQL*Plus: Release 9.2.0.4.0 - Production on Thu Jun 26 10:16:29 2014 Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved. SQL> conn / as sysdba ERROR: ORA-12545: Connect failed because target h…
Oracle 设置默认数据库 如果我们的服务器上或者电脑上安装了多个数据库,当我们使用sqlplus时如果为指定数据库时登录到的是哪一个数据库呢?今天遇到了一个老问题: ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist 以前也遇到过:根据网上的博文一步一步操作下就OK了,可是今天试了下不行,经过分析发现原来是我登录进入是另一个数据库,可如果每次都指定登录到那个数据库太麻烦了,就去查询了些资料…
Some interesting excerpts from the bash manpage:When bash is invoked as an interactive login shell, or as a non-interactive shell with the --login option, it first reads and executes commands from the file /etc/profile, if that file exists. After rea…
I’ve spent years curating a collection of Mac bash aliases and shortcuts to make my life easier. My full .bash_profile is below, feel free to take whatever you find useful and put it to good use. A (VERY) QUICK PRIMER ON .BASH_PROFILE FOR MAC USERS T…
今日,在学习AnimatorSet时,使用play.with.after.before时,代码书写如下: ObjectAnimator animator1 = ObjectAnimator.ofFloat(v,"translationX",300f); ObjectAnimator animator2 = ObjectAnimator.ofFloat(v,"scaleX",1f,0f,1f); ObjectAnimator animator3 = ObjectAni…
Gson解析JSON字符串时出现了下面的错误: No-args constructor for class X does not exist. Register an InstanceCreator with Gson for this type to fix this problem. 解决的办法是把对应的Class改成静态类.…
安装解压版MySQL以后,不能启动,日志里面出现了这个错误: MySQL: Table 'mysql.plugin' doesn't exist 这是因为mysql服务启动时候找不到内置数据库"mysql",找不到那张表,将之前的目录里面的"mysql"数据库拷贝到新的数据库文件存放目录,即可解决这个问题.…
设置buildTypes里的release的shrinkResources为false即可,如果是 release-stripped.ap_' specified for property 'resourceFile' does not exist.则设置buildTypes里的debug的shrinkResources为false…
想在Mac下使用locate时,提醒数据库没创建: WARNING: The locate database (/var/db/locate.database) does not exist. To create the database, run the following command: sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist Please be aware that the d…
转至:http://blchen.com/cs0103-the-name-scripts-does-not-exist-in-the-current-context-solution/ 更新:这个bug在ASP.NET MVC 4正式版已经没有了. 今天试玩VS2012里的ASP.NET MVC4,用Controller里用Entity Framework生成模版后,发现页面报错CS0103: The name ‘Scripts’ does not exist in the current co…
执行mysqld_safe报错: [root@edu data]# /usr/local/mysql5.7/bin/mysqld_safe --user=mysql160427 12:41:28 mysqld_safe Logging to '/renqinglei/mysql/log/mysql_error.log'.160427 12:41:28 mysqld_safe The file /usr/local/mysql/bin/mysqlddoes not exist or is not…
启动tomcat的时候报如下错误: java.lang.IllegalArgumentException: Document base F:\java\tools\tomcat\me-webapps\drp1.1 does not exist or is not a readable directory     at org.apache.naming.resources.FileDirContext.setDocBase(FileDirContext.java:142)    at org.a…
遇到了一个错误mysqldump: Couldn't execute 'show create table `CONCURRENCY_ERRORS`': Table INVOICE_OLD.CONCURRENCY_ERRORS' doesn't exist (1146) ###### WARNING ###### Errors reported during AutoMySQLBackup execution.. Backup failed Error log below.. Error: Co…
今天有一同事安装了ORACLE后,在切换账号时遇到错误提示"-bash: .bash_profile: command not found".如下所示 [root@GLETestLinux ~]# su - oracle -bash: .bash_profile: command not found [oracle@GLETestLinux ~]$ more .bash_profile .bash_profile   # Get the aliases and functions  …
mysql报错Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist 2013-11-27 10:07 40329人阅读 评论(4) 收藏 举报 本文章已收录于:   .embody { padding: 10px 10px 10px; margin: 0 -20px; border-bottom: solid 1px #ededed } .embody_b { margin: 0;…
MySQL很强大,支持直接拷贝数据库文件快速备份,那数据库文件在哪里呢? 打开MySQL的配置文件 my.ini,找到 datadir 节点,如 datadir="D:/Program Files/MySQL/MySQL Server 5.1/data" 进入上述文件夹,就可以看到MySQL中新建的数据库文件夹了,每个文件夹以数据库名命名的,你想备份哪个数据库,把这个文件夹拷贝走即可.到时还原数据库,把它拷贝到data目录下即可,就这么简单! 但是,今天在一台MySQL服务器上拷贝备份…
登陆shell与交互式非登陆shell的区别 登录shell 所谓登录shell,指的是当用户登录系统时所取的那个 shell.登录shell属于交互式shell. 登录shell将查找4个不同的启动文件来处理其中的命令. bash shell处理文件的顺序如下: /etc/profile /etc/profile.d等待配置文件 $HOME/.bash_profile $HOME/.bash_login $HOME/.profile /etc/profile是bash shell在系统上的主默…
cd /etc/phpmyadminsudo vim config.inc.php 修改phpmyadmin的配置文件config.inc.php $cfg['Servers'][$i]['table_uiprefs'] = 'pma_table_uiprefs';改成: $cfg['Servers'][$i]['pam_table_uiprefs'] = 'pma_table_uiprefs'; 同理:#1146 - Table 'phpmyadmin.pma_recent' doesn't…
前几天重新安装了Tomcat6,安装完Tomcat6后在wepapps下面会有一些tomcat自带的项目(root.manager.host- manager等几个),这几天项目没什么用我就删掉了,后来在MyEclipse中配置好Tomcat,新建web项目,在启动Tomcat是会出现 严重: Error starting static Resources java.lang.IllegalArgumentException: Document base D:/Program Files/Apa…
Oracle Error Tips by Burleson Consulting Oracle docs note this about ORA-27101: ORA-27101: shared memory realm does not exist Cause: Unable to locate shared memory realm Action: Verify that the realm is accessible The solution in Windows may be to st…
前些天,在进行分布式参数化测试的时候,出现了如题所示的错误报错信息.此文,针对此做一个简略的重现及分析说明. JMX脚本线程组参数配置如下所示: 参数文件路径配置如下所示: 执行JMX脚本后,服务器对应日志错误信息(部分)输出如下所示: 2016/06/17 23:06:59 INFO - jmeter.services.FileServer: Stored: E:\026\distributed.csv 2016/06/17 11:06:59 ERROR - jmeter.threads.JM…