Когда с несуществующей страницы нужно сделать, например, редирект.
Чтобы разрешить изменение кода ответа HTTP с 404 на другой (например, 301 для постоянного перенаправления), вам необходимо настроить директиву Nginx error_page:
error_page 404 = /404.php;
Т.е. вместо:
Без знака равенства (=) невозможно изменить код состояния с помощью PHP-скрипта:
header("Location: /new.html",true,301);
https://stackoverflow.com/questions/20932750/redirect-instead-of-404-error-page-status-code-not-working-nginx
Redirect instead of 404 Error page — Status Code not working (Nginx)
To allow changing the HTTP response code from 404 to a different one (e.g. 302 for the temporary redirect), you have to configure Nginx error_page directive accordingly:
error_page 404 = /404.php;
Without the equal sign (=), it is not possible to change the status code with your PHP script:
header("Location: http://google.com");
mysql -u db_user -p -e "show full processlist" > ./out.txt
https://techglimpse.com/store-query-row-output-file-mysql/
Например, когда нужны маркеры разных цветов.
Параметр icon:
var marker=new google.maps.Marker({
position:iLatlng,
map:map,
icon:'http://maps.google.com/mapfiles/ms/icons/green-dot.png',
//icon:'http://maps.google.com/mapfiles/ms/icons/blue-dot.png',
//icon:'http://maps.google.com/mapfiles/ms/icons/red-dot.png',
title:'FullAddress'
});
Если нужно самому динамически указывать цвет:
http://www.googlemapsmarkers.com/v1/COLOR/
или
http://www.googlemapsmarkers.com/v1/LABEL/COLOR/
или
http://www.googlemapsmarkers.com/v1/LABEL/FILL COLOR/LABEL COLOR/STROKE COLOR/
подробнее: http://www.googlemapsmarkers.com/
var icon_green=new google.maps.MarkerImage("http://www.googlemapsmarkers.com/v1/C/008136/ffffff/008136/");
var marker=new google.maps.Marker({
position:iLatlng,
map:map,
icon:icon_green,
title:'FullAddress'
});
systemctl enable mariadb.service
Для других служб аналогично.
Проверка:
systemctl list-unit-files | grep mariadb