相关进程的启动与删除

1、spec测试跑不通(未启动mysql)

报错:/usr/lib/ruby/gems/1.8/gems/activerecord-2.3.2/lib/active_record/connection_adapters/mysql_adapter.rb:576:in `real_connect': Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) (Mysql::Error)

(没启动数据库)
解决:cd /etc/init.d/mysql restart

心得:在etc有很多启动项可供启动

 

2、启动服务:

报错:No such file or directory - getcwd

步骤:ps aux|grep mongrel;

            kill -9 23237;

 

3、重启缓存:

      ps aux|grep mem;

      kill -9 10779;

      memcached –d –m 20

      mongrel_rails restart

你可能感兴趣的:(mysql,memcached,Ruby,Rails,ActiveRecord)