zzgzyyz 发表于 2016-12-29 06:37:23

易忘命令备注

查询IP地址:
$ ifconfig | grep inet | grep -v 127.0.0.1
 
运行Nginx:
$ cd /usr/local/nginx/sbin/
$ sudo ./nginx
 关闭Nginx:
$ cd /usr/local/nginx/sbin/
$ sudo ./nginx -s stop
查看nginx:
ps -ef|grep nginx
 
    0  2758     1   0 三09上午 ??         0:00.01 nginx: master process ./nginx
   -2  2759  2758   0 三09上午 ??         0:00.31 nginx: worker process
  502  4621  4599   0 10:16上午 ttys000    0:00.00 grep --color nginx 
 
 
搜索某任务杀掉:
$ pgrep java
 
think@localhost ~$ ps ax|grep java
 
 
 
lsof -i tcp:20012
kill -9 17503
 
mac 提交SVN
现在相关路径下创建待提交内容,然后切换到该路径下
cd /Users/think/wisest/dbupdate/h 
think@localhost h$ 
think@localhost h$ svn update
Updating '.':
D    20141009
Updated to revision 3723.
 
think@localhost h$ svn add 目标文件
 
think@localhost h$ svn ci -m "注释"
 
页: [1]
查看完整版本: 易忘命令备注