进入命令行,开始如下操作:
cd ~touch.bash_profile
vi .bash_profile
输入内容jdk变量配置内容:
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home
export PATH=$JAVA_HOME/b...
分类:
系统相关 时间:
2015-01-15 22:09:33
阅读次数:
60463
1 #!/bin/bash 2 export PATH=$PATH:$JAVA_HOME/bin:/usr/local/lnmp/php5/bin:/usr/local/lnmp/php5/sbin 3 4 #start----------------------------------...
分类:
系统相关 时间:
2015-01-15 21:54:09
阅读次数:
263
描述:按照github上的操作完成Windowsin your libpomelo project root directoryopen git bash and type inmkdir -p buildgit clone https://github.com/martine/gyp.git bu...
分类:
其他好文 时间:
2015-01-15 19:59:46
阅读次数:
193
摘要以前写看到别人写的脚本用shc加密的,我也有就了解了下。SHC代表shell script compiler,即shell脚本编译器。通过SHC编译过的脚本程序对普通用户而言是不读的,因此如果你想保护你的代码(例如含有密钥),则可以考虑SHC;然而有些人可以通过反向编译的方式破解SHC加密过的脚...
分类:
其他好文 时间:
2015-01-15 19:51:23
阅读次数:
245
rsync启动脚本01#!/bin/bash www.ahlinux.com 02#03# rsyncd Thisshellscript takes care of starting and stopping04# standalone rsync.05#06# chkconfig:...
分类:
其他好文 时间:
2015-01-15 12:18:09
阅读次数:
178
转载:/etc/profile:此文件为系统的每个用户设置环境信息,当用户第一次登录时,该文件被执行.并从/etc/profile.d目录的配置文件中搜集shell的设置./etc/bashrc:为每一个运行bash shell的用户执行此文件.当bash shell被打开时,该文件被读取.~/.b...
分类:
其他好文 时间:
2015-01-15 10:40:49
阅读次数:
133
#!/bin/bash
#description:theScriptisusedtoinstallingmysql
echo"
================================================
+MySQLInstall(version5.1)+
================================================"
echo"Duringinstallation,youcanuse"tail-f/root/mysql_install.log"tov..
分类:
数据库 时间:
2015-01-15 01:59:42
阅读次数:
256
国内由于某种原因,下载CM或Google官方的Android源代码总容易中断。总看着机器,一中断就重新执行repo sync还太麻烦,所以我特意编写了一段shell脚本(download.sh)。通过获取shell最后返回的状态码来决定是否再次执行repo sync命令。#!/bin/bash .....
分类:
移动开发 时间:
2015-01-15 00:16:17
阅读次数:
412
一台电脑上有一个ssh key,在github上提交代码,由于其他原因你可能会在一台电脑上提交到不同的github上,怎么办呢...假设你电脑上一个ssh key都没有,如果有默认的一个了,请直接生成第二个一、生成并添加第一个ssh key$ ssh-keygen -t rsa -C "youremail@xxx.com"在Git Bash中执行命令一路回车,会在~/.ssh/目录下生成id_rs...
分类:
其他好文 时间:
2015-01-13 23:20:29
阅读次数:
316
内建命令(build-in commands)是shell build-in的命令,当内建命令使用的时候,shell将会直接执行,无需新建子进程。内建命令被用来创建一些功能性的或者便捷性的组建。bash支持3中类型的内建命令Bourne Shell build-ins:,.breakcdcontin...
分类:
系统相关 时间:
2015-01-13 19:37:56
阅读次数:
156