对于我目前的问题,我正在使用nginx
食谱。我想做的是从源代码安装它nginx::source
(/opt/nginx/<version>/
使用/opt/nginx-<version>/
.
这是我的./attributes/default.rb
:
node.override['nginx']['source']['prefix'] = "/opt/nginx/#{node['nginx']['source']['version']}"
#also tested
override['nginx']['source']['prefix'] = "/opt/nginx/#{node['nginx']['source']['version']}"
#and also
default['nginx']['source']['prefix'] = "/opt/nginx/#{node['nginx']['source']['version']}"
我不明白什么?
谢谢
另一件事是: - 我如何像上面一样为它添加前缀并创建一个符号链接/opt/nginx/current
(即使在更新之后也要这样做)?