建议楼主在删除老数据的时候重置一下此表的 AUTOINCREMENT
这是一条在 app 下的评论
长阴影都用烂了啊
建议给 .brand 加上 style="white-space: nowrap;"
省了个字母而且读音不变,何乐而不为也?
谢谢清华
单元测试功能可以对模型验证机制进行检查并确保数据库已正常工作。
他曾是一位很有名的英语老师,可以搜索一下『李笑来』
竟然连基本常识都没有,连基础操作都不会,鄙视都懒得鄙视了!
不错啊
#2 楼 @camel 执行java -version
后显示:java version "1.5.0_22"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_22-b03)
Java HotSpot(TM) 64-Bit Server VM (build 1.5.0_22-b03, mixed mode)
我以前用的是 openjdk-6-jre 可以运行,但是运行 1 分钟左右就自动退出了,我以为是版本问题,就apt-get remove openjdk-6-jre
了,结果找不到 openjdk-7-jre,我想重新装回 openjdk-6-jre 时死活装不上,有很多 ERRO,提示很多文件不能创建,我 google 了一下,大概是内存不足的问题,我最后用了变态的方法装回 openjdk-6-jre 了,结果每次启动 solr 就提示Could not create the Java virtual machine.
昨晚我删除了 openjdk-6-jre 安装了sun-java5-jdk,能开启 solr 了,结果还是每隔 1 分钟左右就自动退出,好纠结啊。。。。
#12 楼 @huacnlee 谢谢帮助。十分感谢!但是,改完缩进后出错信息如下: 'DEPRECATION WARNING: ActiveSupport::Memoizable is deprecated and will be removed in future releases,simply use Ruby memoization pattern instead. (called from at /home/wwwroot/ruby-china/config/application.rb:13) rake aborted! Failed to connect to a master node at 127.0.0.1:27018
Tasks: TOP => sunspot:solr:start => environment (See full trace by running task with --trace) ' 我确定 mongod 已开启,并且/etc/mongodb.conf 中设置的 port 是 27018
求助
#9 楼 @diudiutang 十分感谢你的回复,但是我给 log 文件赋予读写权限后,还是有如下错误啊: DEPRECATION WARNING: ActiveSupport::Memoizable is deprecated and will be removed in future releases,simply use Ruby memoization pattern instead. (called from at /home/wwwroot/ruby-china/config/application.rb:13) rake aborted! syntax error on line 5, col 7: ` port: 27018'
Tasks: TOP => sunspot:solr:start => environment (See full trace by running task with --trace)
#7 楼 @diudiutang 谢谢你的回复。但是执行你的命令后还是报错: DEPRECATION WARNING: ActiveSupport::Memoizable is deprecated and will be removed in future releases,simply use Ruby memoization pattern instead. (called from at /home/wwwroot/ruby-china/config/application.rb:13) Rails Error: Unable to access log file. Please ensure that /home/wwwroot/ruby-china/log/development.log exists and is chmod 0666. The log level has been raised to WARN and the output directed to STDERR until the problem is fixed. rake aborted! syntax error on line 5, col 7: ` port: 27018'
Tasks: TOP => sunspot:solr:start => environment (See full trace by running task with --trace)
DEPRECATION WARNING: ActiveSupport::Memoizable is deprecated and will be removed in future releases,simply use Ruby memoization pattern instead. (called from at /home/wwwroot/ruby-china/config/application.rb:13) rake aborted! syntax error on line 5, col 7: ` port: 27018'
Tasks: TOP => sunspot:solr:start => environment (See full trace by running task with --trace)