使用ansible安装elasticsearch插件(Install elasticsearch plugins with ansible)
我正在使用ansible进行弹性搜索( ansible-elasticsearch ),需要从url,本地文件或替代repo安装插件。 有没有一种方法可以通过以下方式引用插件:
es_plugins: -plugin: elasticsearch/license version: latest
I'm using ansible for elasticsearch ( ansible-elasticsearch) and need to install plugins from a url , local file, or alternative repo. is there a way I can reference a plugin by something other than just:
es_plugins: -plugin: elasticsearch/license version: latest
原文:https://stackoverflow.com/questions/39103926
更新时间:2022-04-14 11:04
最满意答案
我通过在服务器上安装mod_headers和mod_expires解决了这个问题。 如果您打算使用他们的功能,那将非常有用......
I solved the issue by installing mod_headers and mod_expires on the server. Quite useful if you're going to use their functions...
相关问答
更多-
你可以使用这样的东西: # Cache Files
Header set Cache-Control "max-age=604800, public" 这会缓存任何以ico | pdf | flv | jpg .....结尾的文件604800秒,也就是一周,您可以将该数字更改为缓存,无论您感觉需要多长时间。 You can use something like ... -
你想要删除该行 ExpiresDefault "access plus 2 days" 它强制浏览器缓存上面未明确列出的任何内容(例如text/html )两天,这就是你的Wordpress帖子发生的事情。 You'll want to remove the line ExpiresDefault "access plus 2 days" It forces a browser to cache anything not explicitly listed above (like, for instance ...
-
您可以为不同的文件扩展名设置expires标头,如下所示:
ExpiresActive on # Your document html ExpiresByType text/html "access plus 0 seconds" # Media: images, video, audio ExpiresByType audio/ogg "access plus 1 month" ExpiresByType image/gif " ... -
我通过在服务器上安装mod_headers和mod_expires解决了这个问题。 如果您打算使用他们的功能,那将非常有用...... I solved the issue by installing mod_headers and mod_expires on the server. Quite useful if you're going to use their functions...
-
如果你的apache服务器上安装了mod_expires ,你可以在你的.htaccess文件中输入这样的东西。 这个例子是面向PHP的(实际上是从Drupal 7 .htaccess文件中获取的),但它应该是一个很好的起点。 FileETag MTime Size
# Enable expirations. ExpiresActive On # Cache all files for 2 weeks after access (A). E ... -
试试这段代码: Options -Indexes Options -MultiViews Options +FollowSymlinks RewriteEngine on RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s/+(.+?)\.html[\s?] [NC] RewriteRule ^ /%1 [R=301,L,NE] RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{DOCUMENT_ROOT}/$1.html ...
-
除非确定这些3级子文件夹的某些确定性,否则你必须明确地和单独地完成每一个。 例如,文档根目录中的htaccess文件,您可以: RewriteEngine On RewriteRule ^/?thingy.html$ /t/h/i/thingy.html [L] RewriteRule ^/?testy.html$ /t/e/s/testy.html [L] 等等 Unless there's some kind of deterministic whay these 3 level subfolders ...
-
你需要改变两件事。 在重定向后立即添加此项以防止重定向循环: RewriteCond %{ENV:REDIRECT_STATUS} 200 RewriteRule ^ - [L] 将最后一条规则更改为: RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} ^/(.*?)/?$ RewriteCond %{DOCUMENT_ROOT}/%1\.html -f RewriteRule ^ /%1.html [L] You need t ...
-
.htaccess根本不工作(.htaccess not working at all)[2023-06-10]
您不能在htaccess文件中使用容器。 删除它们,以便您只需: AuthUserFile /home/file1/myfile/.htpasswd AuthGroupFile /dev/null AuthName "My authentication" AuthType Basic Require valid-user Options Indexes FollowSymLinks Multiviews AllowOverride All Order deny,allow deny ... -
检查服务器中是否启用了模块。 如果未启用模块,则代码将不起作用。 Check that modules are enable in server. If modules are not enabled than code will not work.