• Home
  • -
  • 常用笔记

常用笔记

常用svn命令:

 checkout(co)命令:svn co url --username user --password password 
 根据提示可以输入yes来保存帐号和密码;

 update(up)命令:进入到需要更新的目录,输入:svn up;

 commit(ci)命令:进入需要提交的目录,输入:svn ci -m "修改信息"

add命令:进入需要提交的目录,输入:svn add filename or path 添加完之后需要用commit命令提交。  

confluence:

优化指令:ulimit -c unlimited

启动后开启网络:
sudo dhclient
sudo ifconfig eth0 up

删除database前关掉调用的进程:

select pg_terminate_backend(pid) from  (select pid from pg_stat_activity where datname = 'confluence' ) a ;  
SELECT  
    pg_terminate_backend(pid) 
FROM  
    pg_stat_activity 
WHERE  
    -- don't kill my own connection!
    pid <> pg_backend_pid()
    -- don't kill the connections to other databases
    AND datname = 'database_name'
    ;