{"id":941,"date":"2018-01-29T12:26:26","date_gmt":"2018-01-29T03:26:26","guid":{"rendered":"https:\/\/clouds.tokyo\/blog\/?p=941"},"modified":"2018-01-30T11:23:56","modified_gmt":"2018-01-30T02:23:56","slug":"linux_python27","status":"publish","type":"post","link":"https:\/\/clouds.tokyo\/blog\/linux_python27\/","title":{"rendered":"\u3010Linux\u3011CentOS6\u306bPython2.7\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u81ea\u52d5\u7684\u306b\u6709\u52b9\u306b\u3059\u308b"},"content":{"rendered":"<p>\u5148\u65e5Let&#8217;s Encrypt\u306e\u30ed\u30b0\u306bWarning\u304c\u51fa\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n<pre>\r\nWARNING: couldn't find Python 2.6+ to check for updates.\r\nSkipping upgrade because new OS dependencies may need to be installed.\r\n\r\nTo upgrade to a newer version, please run this script again manually so you can\r\napprove changes or with --non-interactive on the command line to automatically\r\ninstall any required packages.\r\n\/opt\/eff.org\/certbot\/venv\/lib\/python2.6\/site-packages\/cryptography\/__init__.py:26: DeprecationWarning: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of cryptography will drop support for Python 2.6\r\n  DeprecationWarning\r\nSaving debug log to \/var\/log\/letsencrypt\/letsencrypt.log\r\n<\/pre>\n<p>\u8a3c\u660e\u66f8\u306e\u66f4\u65b0\u306f\u3067\u304d\u3066\u3044\u307e\u3059\u304c\u3001<br \/>\nLet&#8217;s Encrypt\u81ea\u8eab\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3067Warning\u304c\u51fa\u3066\u3044\u305f\u3088\u3046\u3067\u3059\u3002<br \/>\n\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b\u306b\u306f\u3001\u73fe\u5728\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308bPython2.6\u306f\u30b5\u30dd\u30fc\u30c8\u304c\u5ec3\u6b62\u3055\u308c\u308b\u4e88\u5b9a\u306a\u306e\u3067<br \/>\n\u307e\u305a\u306fPython\u3092\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3057\u308d\u3068\u306e\u3053\u3068\u3002<\/p>\n<p>\u3057\u304b\u3057CentOS6\u306e\u6a19\u6e96\u3067\u306f2.6\u307e\u3067\u3057\u304b\u5165\u308a\u307e\u305b\u3093\u306e\u3067\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304b\u3089\u59cb\u3081\u307e\u3059\u3002<\/p>\n<p>\u30ea\u30dd\u30b8\u30c8\u30ea\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre>\r\nyum -y install centos-release-scl-rh\r\n<\/pre>\n<p>Python2.7\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/p>\n<pre>\r\nyum -y install python27\r\n<\/pre>\n<p>\u3053\u308c\u3060\u3051\u3067\u306fpython\u30b3\u30de\u30f3\u30c9\u4f7f\u7528\u6642\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306f2.7\u306b\u306a\u308a\u307e\u305b\u3093\u3002<br \/>\n2.7\u304c\u81ea\u52d5\u7684\u306b\u6709\u52b9\u306b\u306a\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre>\r\necho 'source \/opt\/rh\/python27\/enable' > \/etc\/profile.d\/python27.sh\r\nsource \/etc\/profile\r\n<\/pre>\n<p>\u3053\u308c\u3067~\/certbot-auto renew\u3092\u5b9f\u884c\u3059\u308c\u3070<br \/>\nLet&#8217;s Encrypt\u306erenew\u30b3\u30de\u30f3\u30c9\u3067Let&#8217;s Encrypt\u81ea\u8eab\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3082\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3057\u304b\u3057\u3001\u81ea\u52d5\u66f4\u65b0\u306f\u305f\u3044\u3066\u3044\u306e\u5834\u5408\u3001cron\u3067\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u304b\u3068\u601d\u3044\u307e\u3059\u3002<br \/>\ncron\u3067\u5b9f\u884c\u3055\u308c\u308b\u5834\u5408\u306f\u307e\u3060python2.7\u304c\u6709\u52b9\u306b\u306a\u3063\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n<p>cron\u3067\u5b9f\u884c\u3059\u308b\u30b3\u30de\u30f3\u30c9\u3067python2.7\u3092\u6709\u52b9\u306b\u3059\u308b\u306b\u306f<br \/>\ncrontab\u3067\u306e\u8a18\u8ff0\u3092\u6b21\u306e\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre>\r\n0 5 * * * ~\/certbot-auto renew\r\n<\/pre>\n<p>\u2193<\/p>\n<pre>\r\n0 5 * * * scl enable python27 \"~\/certbot-auto renew\"\r\n<\/pre>\n<p>\uff08\u6bce\u65e5AM5\u6642\u306brenew\u3092\u5b9f\u884c\u3059\u308b\u5834\u5408\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5148\u65e5Let&#8217;s Encrypt\u306e\u30ed\u30b0\u306bWarning\u304c\u51fa\u3066\u3044\u307e\u3057\u305f\u3002 WARNING: couldn&#8217;t find Python 2.6+ to check for updates. Skipping upg &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/clouds.tokyo\/blog\/linux_python27\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;\u3010Linux\u3011CentOS6\u306bPython2.7\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u81ea\u52d5\u7684\u306b\u6709\u52b9\u306b\u3059\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_newsletter_access":""},"categories":[2],"tags":[95,117,120,384],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pezW3u-fb","jetpack-related-posts":[{"id":541,"url":"https:\/\/clouds.tokyo\/blog\/linux_dropbox\/","url_meta":{"origin":941,"position":0},"title":"\u3010Linux\u3011Dropbox\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u697d\u3005\u30d0\u30c3\u30af\u30a2\u30c3\u30d7","author":"yamamoto","date":"2015\u5e745\u670831\u65e5","format":false,"excerpt":"Linux\u306bDropbox\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308c\u3070 rsync\u306a\u3069\u3092\u4f7f\u308f\u305a\u3068\u3082\u30d5\u30a1\u30a4\u30eb\u3092\u3054\u3063\u305d\u308a\u540c\u671f\u3067\u304d\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":759,"url":"https:\/\/clouds.tokyo\/blog\/linux_lets_cent5\/","url_meta":{"origin":941,"position":1},"title":"\u3010Linux\u3011CentOS5\u3067Let&#8217;s Encrypt\u3092\u4f7f\u3063\u3066\u30de\u30eb\u30c1\u30c9\u30e1\u30a4\u30f3\u306eSSL\u8a3c\u660e\u66f8\u3092\u767a\u884c\u3059\u308b","author":"yamamoto","date":"2017\u5e746\u670821\u65e5","format":false,"excerpt":"CentOS5\u3067\u30b7\u30b9\u30c6\u30e0\u3092\u904b\u7528\u3057\u3066\u3044\u307e\u3059\u30022010\u5e74\u306b\u30ea\u30ea\u30fc\u30b9\u3057\u305f\u30b7\u30b9\u30c6\u30e0\u3067\u3059\u3002 \u65b0\u3057\u3044OS\u306b\u4e57\u308a\u63db\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":366,"url":"https:\/\/clouds.tokyo\/blog\/linux_ssl_le\/","url_meta":{"origin":941,"position":2},"title":"\u3010Linux\u3011\u3068\u3046\u3068\u3046SSL\u8a3c\u660e\u66f8\u306f\u7121\u6599\u3067\u53d6\u5f97\u3067\u304d\u308b\u6642\u4ee3\u306b","author":"yamamoto","date":"2016\u5e747\u67086\u65e5","format":false,"excerpt":"\u6614\u306fSSL\u8a3c\u660e\u66f8\u306f\u500b\u4eba\u304c\u6c17\u8efd\u306b\u5c0e\u5165\u3067\u304d\u308b\u3088\u3046\u306a\u5b89\u3044\u3082\u306e\u306f\u3042\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002 \u4eca\u306f\u5343\u5186\u304f\u3089\u3044\u3067\u53d6\u5f97\u3067\u304d\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":937,"url":"https:\/\/clouds.tokyo\/blog\/linux_ssl_revoke\/","url_meta":{"origin":941,"position":3},"title":"\u3010Linux\u3011Let&#8217;s Encrypt\u3067\u53d6\u5f97\u3057\u305f\u8a3c\u660e\u66f8\u3092\u524a\u9664\u3057\u3066\u66f4\u65b0\u5bfe\u8c61\u304b\u3089\u306f\u305a\u3059","author":"yamamoto","date":"2018\u5e741\u670829\u65e5","format":false,"excerpt":"SSL\u8a3c\u660e\u66f8\u3092\u7121\u6599\u3067\u53d6\u5f97\u3067\u304d\u308bLet's Encrypt\u3067\u3001 \u30b5\u30fc\u30d0\u30fc\u79fb\u884c\u3084\u30b5\u30a4\u30c8\u9589\u9396\u306a\u3069\u306b\u3088\u3063\u3066\u8a3c\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":1362,"url":"https:\/\/clouds.tokyo\/blog\/getssl-ssl\/","url_meta":{"origin":941,"position":4},"title":"\u3010Linux\u3011certbot\u304c\u4f7f\u3048\u306a\u3044\u30b5\u30fc\u30d0\u30fc\u3067\u3001getssl\u3067Let\u2019s Encrypt\u306e\u8a3c\u660e\u66f8\u3092\u767a\u884c\u3059\u308b","author":"yamamoto","date":"2022\u5e7410\u67088\u65e5","format":false,"excerpt":"OS\u304c\u53e4\u3044\u304b\u3089\u3068\u8a00\u3063\u3066\u3001\u7a3c\u50cd\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d0\u30fc\u3092\u7c21\u5358\u306b\u518d\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u3067\u304d\u306a\u3044\u3067\u3059\u3088\u306d\u3002 \u79c1\u304c\u4fdd\u5b88\u3057\u3066\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":783,"url":"https:\/\/clouds.tokyo\/blog\/linux_pecl_http\/","url_meta":{"origin":941,"position":5},"title":"\u3010Linux\u3011pecl_http\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u306a\u3044\u3068\u304d\u306f","author":"yamamoto","date":"2017\u5e748\u670814\u65e5","format":false,"excerpt":"CentOS6\u3001PHP5.3.3\u306e\u74b0\u5883\u3067pecl_http\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u3053\u308d\u3001\u3053\u3093\u306a\u30e1\u2026","rel":"","context":"\u5099\u5fd8\u9332","block_context":{"text":"\u5099\u5fd8\u9332","link":"https:\/\/clouds.tokyo\/blog\/category\/memo\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/posts\/941"}],"collection":[{"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/comments?post=941"}],"version-history":[{"count":4,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/posts\/941\/revisions"}],"predecessor-version":[{"id":946,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/posts\/941\/revisions\/946"}],"wp:attachment":[{"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/media?parent=941"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/categories?post=941"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/clouds.tokyo\/blog\/wp-json\/wp\/v2\/tags?post=941"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}