{
    "version": "https:\/\/jsonfeed.org\/version\/1.1",
    "title": "MPAK`s page: заметки с тегом #centos7",
    "_rss_description": "Подсказки для себя..",
    "_rss_language": "ru",
    "_itunes_email": "",
    "_itunes_categories_xml": "",
    "_itunes_image": "",
    "_itunes_explicit": "",
    "home_page_url": "https:\/\/ae79.ru\/tags\/centos7\/",
    "feed_url": "https:\/\/ae79.ru\/tags\/centos7\/json\/",
    "icon": "https:\/\/ae79.ru\/pictures\/userpic\/userpic@2x.jpg?1536141104",
    "authors": [
        {
            "name": "MPAK",
            "url": "https:\/\/ae79.ru\/",
            "avatar": "https:\/\/ae79.ru\/pictures\/userpic\/userpic@2x.jpg?1536141104"
        }
    ],
    "items": [
        {
            "id": "16",
            "url": "https:\/\/ae79.ru\/all\/izmenenie-max-stack-depth\/",
            "title": "Изменение max_stack_depth",
            "content_html": "<p>Если изменение max_stack_depth в конфигурационном файле постгресса приводит к невозможности запуска с ошибкой типа:<\/p>\n<pre class=\"e2-text-code\"><code class=\"bash\">\nLOG:  invalid value for parameter \"max_stack_depth\": 20480\nDETAIL:  \"max_stack_depth\" must not exceed 7680kB.\nHINT:  Increase the platform's stack depth limit via \"ulimit -s\" or local equiv\npostgresql-10.service: main process exited, code=exited, status=1\/FAILURE\n<\/code>\n<\/pre>\n<p>наплевав на то, что ulimit -s > 8M, то надо в файле конфигурации постгресса в systemd<br \/>\n(например \/etc\/systemd\/system\/multi-user.target.wants\/postgresql-10.service) в секции Service добавить строку:<\/p>\n<pre class=\"e2-text-code\"><code class=\"bash\">\n[Service]\nLimitSTACK=infinity\n....... \n<\/code>\n<\/pre>\n<p>потому что он, оказывается, игнорирует настройки лимитов из \/etc\/security\/limits.conf<br \/>\nзатем, естественно,<\/p>\n<pre class=\"e2-text-code\"><code class=\"bash\">\nsystemctl daemon-reload\n<\/code>\n<\/pre>\n<p>и запускать постгресс<\/p>\n",
            "date_published": "2019-12-15T10:25:53+05:00",
            "date_modified": "2019-12-15T10:33:06+05:00",
            "tags": [
                "#centos7",
                "#postgresql10"
            ],
            "_date_published_rfc2822": "Sun, 15 Dec 2019 10:25:53 +0500",
            "_rss_guid_is_permalink": "false",
            "_rss_guid": "16",
            "_e2_data": {
                "is_favourite": false,
                "links_required": [],
                "og_images": []
            }
        },
        {
            "id": "15",
            "url": "https:\/\/ae79.ru\/all\/zamena-porta-ssh-v-centos-pri-vklyuchennom-selinux\/",
            "title": "Замена порта ssh в CentOS при включенном SELinux",
            "content_html": "<p>Если система не даёт сменить порт ssh, то следует выполнить команду:<\/p>\n<blockquote>\n<p>semanage port -a -t ssh_port_t -p tcp новый_порт<\/p>\n<\/blockquote>\n<p>и тогда всё заведётся...<\/p>\n",
            "date_published": "2019-04-30T16:17:38+05:00",
            "date_modified": "2019-04-30T16:17:56+05:00",
            "tags": [
                "#centos7",
                "#SELinux"
            ],
            "_date_published_rfc2822": "Tue, 30 Apr 2019 16:17:38 +0500",
            "_rss_guid_is_permalink": "false",
            "_rss_guid": "15",
            "_e2_data": {
                "is_favourite": false,
                "links_required": [],
                "og_images": []
            }
        },
        {
            "id": "5",
            "url": "https:\/\/ae79.ru\/all\/sozdanie-swap-a-v-centos\/",
            "title": "Создание swap`а в Centos",
            "content_html": "<pre class=\"e2-text-code\"><code class=\"bash\">\ndd if=\/dev\/zero of=\/swapfile count=4096 bs=1MiB\nchmod 600 \/swapfile\nmkswap \/swapfile\nswapon \/swapfile\n<\/code>\n<\/pre>\n<p>и добавить в \/etc\/fstab строку:<\/p>\n<pre class=\"e2-text-code\"><code class=\"bash\">\n\/swapfile   swap    swap    sw  0   0\n<\/code>\n<\/pre>\n",
            "date_published": "2018-09-15T16:40:14+05:00",
            "date_modified": "2018-09-15T16:41:01+05:00",
            "tags": [
                "#centos7",
                "#swap"
            ],
            "_date_published_rfc2822": "Sat, 15 Sep 2018 16:40:14 +0500",
            "_rss_guid_is_permalink": "false",
            "_rss_guid": "5",
            "_e2_data": {
                "is_favourite": false,
                "links_required": [],
                "og_images": []
            }
        },
        {
            "id": "2",
            "url": "https:\/\/ae79.ru\/all\/lets-encrypt-sertifikat-v-centos-7\/",
            "title": "Let’s encrypt сертификат в Centos 7.",
            "content_html": "<p>Ставим certbot<\/p>\n<pre class=\"e2-text-code\"><code class=\"bash\">\nyum -y install yum-utils\nyum-config-manager --enable rhui-REGION-rhel-server-extras rhui-REGION-rhel-server-optional\nyum install certbot\n<\/code>\n<\/pre>\n<p>Так как у нас уже занят http-порт то запускаем его в режиме webroot<\/p>\n<pre class=\"e2-text-code\"><code class=\"bash\">\ncertbot certonly --webroot -d мой_домен\n<\/code>\n<\/pre>\n<p>отвечаем на вопросы и после можем использовать сертификаты:<br \/>\nssl_certificate \/etc\/letsencrypt\/live\/мой_домен\/fullchain.pem;<br \/>\nssl_certificate_key \/etc\/letsencrypt\/live\/мой_домен\/privkey.pem;<\/p>\n<p>и в крон прописываем обновление сертификатов раз в неделю<\/p>\n<pre class=\"e2-text-code\"><code class=\"bash\">\n1 5 * * 6 \/usr\/bin\/certbot renew\n<\/code>\n<\/pre>\n<p>Источник: <a href=\"https:\/\/gita-dev.ru\/blog\/ustanovka-i-obnovlenie-ssl-sertifikatov-lets-encrypt-v-centos-7\/\">https:\/\/gita-dev.ru\/blog\/ustanovka-i-obnovlenie-ssl-sertifikatov-lets-encrypt-v-centos-7\/<\/a><\/p>\n",
            "date_published": "2018-09-05T18:29:46+05:00",
            "date_modified": "2019-01-21T14:37:36+05:00",
            "tags": [
                "#centos7",
                "#ssl"
            ],
            "_date_published_rfc2822": "Wed, 05 Sep 2018 18:29:46 +0500",
            "_rss_guid_is_permalink": "false",
            "_rss_guid": "2",
            "_e2_data": {
                "is_favourite": false,
                "links_required": [],
                "og_images": []
            }
        }
    ],
    "_e2_version": 4134,
    "_e2_ua_string": "Aegea 11.3 (v4134)"
}