use*_*050 8 macos ruby-on-rails path redis foreman
我最近在不同的计算机上安装了OSX 和 Ubuntu.然后我尝试为两个操作系统安装redis和foreman.这两个错误都没有标记,似乎成功执行.但是,无论何时我开始领班foreman start,我都会在两台计算机上遇到以下问题:
23:48:35 web.1 | started with pid 1316
23:48:35 redis.1 | started with pid 1317
23:48:35 worker.1 | started with pid 1318
23:48:35 redis.1 | [1317] 11 Jun 23:48:35.180 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
23:48:35 redis.1 | [1317] 11 Jun 23:48:35.181 * Increased maximum number of open files to 10032 (it was originally set to 256).
23:48:35 redis.1 | [1317] 11 Jun 23:48:35.181 # Creating Server TCP listening socket *:6379: bind: Address already in use
23:48:35 redis.1 | exited with code 1
23:48:35 system | sending SIGTERM to all processes
23:48:35 worker.1 | terminated by SIGTERM
23:48:35 web.1 | terminated by SIGTERM
Run Code Online (Sandbox Code Playgroud)
出于某种原因,它似乎是一个路径问题,因为看起来Redis或Foreman无法找到他们需要用来成功执行的文件,但我不完全确定.
在OSX上我使用gem install foreman和Brew install Redis.
在Ubuntu上我使用了以下内容:
Redis的:
$ cd ~
$ wget http://download.redis.io/redis-stable.tar.gz
$ tar xvzf redis-stable.tar.gz
$ cd redis-stable
$ make
$ make test
Run Code Online (Sandbox Code Playgroud)
领班:
$ gem install foreman
我在OSX上的PATH如下:
/Users/c/.rvm/gems/ruby-2.1.0/bin:/Users/c/.rvm/gems/ruby-2.1.0@global/bin:/Users/c/.rvm/rubies/ruby- 2.1.0/bin中:/Users/c/.rvm/bin:在/ usr/local/bin目录:在/ usr/bin中:/ bin中:/ usr/sbin目录:/ sbin目录:在/ usr/local/bin目录
在Ubuntu上,我的PATH是:
/usr/local/bin:/usr/lib/postgresql:/usr/lib/postgresql/9.3:/usr/lib/ postgresql/9.3/lib:/usr/lib/postgresql/9.3/bin:/ usr/share/DOC:/usr/share/doc/postgresql-9.3:在/ usr /共享/ PostgreSQL的:/usr/share/postgresql/9.3:/usr/share/postgresql/9.3/man:$ PATH
Redis-server似乎确实执行了一次,然后失败并显示以下消息:
[1457] 12 Jun 00:02:48.481 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
[1457] 12 Jun 00:02:48.482 * Increased maximum number of open files to 10032 (it was originally set to 256).
[1457] 12 Jun 00:02:48.483 # Creating Server TCP listening socket *:6379: bind: Address already in use
Run Code Online (Sandbox Code Playgroud)
尝试$ redis-server stop回报:
[1504] 12 Jun 00:05:56.173 # Fatal error, can't open config file 'stop'
我需要帮助找出如何让Foreman和Redis一起工作,这样我就可以在127.0.0.1浏览器中查看我的本地文件
编辑
Redis确实启动了,但是当我导航到localhost时没有任何反应:6379.我也尝试过寻找过程的建议.它找到了
c 751 0.0 0.0 2432768 596 s005 R+ 2:03PM 0:00.00 grep redis
c 616 0.0 0.0 2469952 1652 s004 S+ 2:01PM 0:00.05 redis-server *:6379
Run Code Online (Sandbox Code Playgroud)
尝试kill该过程导致
kill:usage:kill [-s sigspec | -n signum | -sigspec] pid | jobspec ...或kill -l [sigspec]
小智 17
尝试使用以下命令启动Redis服务器:
redis-server <path to your config file>
Run Code Online (Sandbox Code Playgroud)
另外,检查是否已经运行了Redis服务器的实例
ps aux | grep redis
Run Code Online (Sandbox Code Playgroud)
然后如果找到进程:
kill <process id>
Run Code Online (Sandbox Code Playgroud)
重新启动redis服务器.
| 归档时间: |
|
| 查看次数: |
8593 次 |
| 最近记录: |