可能是一个有点愚蠢的问题,但这里有。
我想从 Azure 辅助角色运行 redis。由于我需要在启动 redis 服务器后运行特定代码,因此我决定不在 csdef 文件中使用 ProgramEntryPoint 条目,而是在我的角色 EntryPoint 类的 OnStart 中简单地调用 Process.Start("redis-server") 。
工作正常。
然后我添加了一个 redis.conf 文件(Build-Action 设置为 None,CopyAlways 设置为 true),与添加 redis-server.exe 可执行文件的方式相同。
但是无论我尝试什么,redis 都会启动并声称没有指定配置文件。
有什么线索吗?
所以更多细节,我使用 64 位版本的 redis-server 从这里https://github.com/dmajkic/redis/downloads。如果我没有将redis.conf传递给命令行,则服务器可以正常启动。