项目开发常见问题收集及解决

1、从SVN上检出到Eclipse的项目不是Maven工程,这时可以在项目上鼠标右键点击 Convert to Maven Project 手动转为Maven工程。

image

2、从Maven聚合工程中导入相应子模块,这时可以在该聚合工程上鼠标右键点击 Import,然后选择 Existing Maven Projects 操作即可。

image

3、在Centos7使用Ruby脚本搭建Redis-Cluster时。需要Ruby的运行环境。

安装Ruby

  • yum install ruby
  • yum install rubygems

然后、安装Ruby脚本运行使用的包。

[root@localhost ~]# gem install redis-3.0.0.gem

这里可能无法安装,因为无法连接gem服务器:
[root@localhost ~]# gem install redis-3.0.0.gem
ERROR:  Could not find a valid gem 'redis-3.0.0' (>= 0) in any repository
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)

这时需要手工下载并安装:

关于Redis-Cluster的搭建步骤,具体可参考:http://blog.csdn.net/lifeiaidajia/article/details/45370377

原文地址:https://www.cnblogs.com/justlove/p/7261455.html