无法在Mac M1上启动Redis服务器

y53ybaqx  于 12个月前  发布在  Redis
关注(0)|答案(1)|浏览(220)

我正在使用Macbook Pro M1,并试图通过Intellij启动服务器
--从下面的评论中添加--

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME 
redis-ser 3387 josephantony 6u IPv4 0x9c37a0d6c1c8e2c9 0t0 TCP localhost:6379 (LISTEN) redis-ser 3387 josephantony 7u IPv6 0x9c37a0d6ba1e9219 0t0 TCP localhost:6379 (LISTEN)

字符串
评论结束
得到这个错误:
原因:[com/sensei/gls/js/EmbeddedRedission.class]:通过工厂方法示例化Bean失败;嵌套异常为org. springframework.beans。BeanInstantiationException:未能示例化[redis.embedded.RedisServer]:工厂方法'redisServer'抛出异常;嵌套异常为java.lang。RuntimeException:无法启动redis服务器。请查看日志了解详细信息。at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:655)at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:483)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1336)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory. BeanInstance(AbstractAutowireCapableBeanFactory.java:1176)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory. documentBean(AbstractAutowireCapableBeanFactory.java:556)at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory. BeanBean(AbstractAutowireCapableBeanFactory.java:516)at org.springframework.beans.factory.support.AbstractBeanFactory.judda$doGetBean$0(AbstractBeanFactory.java:324)at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:226)位于org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322)at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276)at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1307)at org.springframework.beans.factory.support.DefaultListableBeanFactory. resolveDepartments(DefaultListableBeanFactory.java:1227)位于org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640). 132 common frames omitted Caused by:org.springframework.beans.BeanInstantiationException:无法示例化[redis.embedded.RedisServer]:工厂方法'redisServer'抛出异常; nested exception is java.lang.RuntimeException:Can't start redis server. Check logs for details. at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185)at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:650). 145 common frames omitted Caused by:java.lang.RuntimeException:无法启动redis服务器。有关详细信息,请检查日志。at redis.embedded.AbstractRedisInstance.awaitRedisServerReady(AbstractRedisInstance.java:62)at redis.embedded.AbstractRedisInstance.start(AbstractRedisInstance.java:39)at redis.embedded.RedisServer.start(RedisServer.java:9)at com.sensei.gls.config.EmbeddedRedisConfiguration.redisServer(EmbeddedRedispensation.java:34)在com.sensei.gls.brows.EmbeddedRedission$$EnhancerBySpringCGLIB$$de8352da.CGLIB$redisServer$0()在com.sensei.gls.brows.EmbeddedRedission$$EnhancerBySpringCGLIB$de8352da$FastClassBySpringCGLIB $$ccaa38a4.invoke()at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244)at org.springframework.context.annotation. ExtractionClassEnhancer $BeanMethodInterceptor.intercept(ExcitationClassEnhancer.java:331)at com.sensei.gls.Excit.EmbeddedRedission$$EnhancerBySpringCGLIB$$de8352da.redisServer()at java.base/jdk.internal.reflect.NativeMethodExcitationorImpl.invoke0(本机方法)位于java.base/jdk.internal.reflect. NativeMethodsManagerImpl.invoke(NativeMethodsObjectorImpl.java:62)在java.base/jdk.internal.reflect. DelegatingMethodsObjectorImpl.invoke(DelegatingMethods.orImpl.java:43)at java.base/java.lang.reflect.Method.invoke(Method.java:566)at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154)... 146 common frames omitted

rsl1atfo

rsl1atfo1#

我不知道你是如何在你的系统中设置redis服务器的,但我按照spring guides的说明安装的(也是用支持rosetta2的终端安装的),它工作得很好。


的数据

相关问题