{"id":2337,"date":"2021-12-26T11:05:20","date_gmt":"2021-12-26T02:05:20","guid":{"rendered":"https:\/\/dennie.tokyo\/it\/?p=2337"},"modified":"2022-03-12T11:38:05","modified_gmt":"2022-03-12T02:38:05","slug":"amazon-linux2-cron-%e3%82%a4%e3%83%b3%e3%82%b9%e3%83%88%e3%83%bc%e3%83%ab","status":"publish","type":"post","link":"https:\/\/dennie.tokyo\/it\/?p=2337","title":{"rendered":"Amazon Linux2 Cron \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb"},"content":{"rendered":"\n<p>cron(\u30af\u30ed\u30fc\u30f3)\u3068\u306f\u3001\u5b9a\u6642\u307e\u305f\u306f\u5b9a\u671f\u7684\u306b\u51e6\u7406\u3092\u5b9f\u884c\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<p>cron\u306b\u3001\u4f55\u6642\u4f55\u5206\u4f55\u79d2\u3068\u3044\u3046\u6642\u9593\u3084\u4f55\u5206\u9593\u9694\u3068\u3044\u3046\u8a18\u8f09\u3092\u8a2d\u5b9a\u3059\u308b\u4e8b\u3059\u308b\u3068\u305d\u306e\u51e6\u7406\u304c\u6642\u9593\u306b\u3088\u3063\u3066\u5b9f\u884c\u3055\u308c\u307e\u3059\u3002<br>Amazon Linux2\u3067cron\u304c\u3044\u306a\u3044\u3088\u3046\u3060\u3063\u305f\u306e\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002<br>Cron\u3068\u8a00\u3063\u3066\u3082cronie\u3001cronie-anacron\u3001cronie-anacron\u306a\u3069\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002\u4eca\u56de\u306fcronie\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u74b0\u5883\u306fMac\u306bAmazonlinux2\u306edocker\u30b3\u30f3\u30c6\u30ca\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<br>\u74b0\u5883\u69cb\u7bc9\u306b\u3064\u3044\u3066\u306f\u4ee5\u4e0b\u3092\u53c2\u8003\u306b\u3057\u3066\u4e0b\u3055\u3044\u3002<\/p>\n\n\n\n<div class=\"title_box\"><span class=\"box-title\">\u53c2\u8003<\/span>\n<p><a href=\"https:\/\/dennie.tokyo\/it\/?p=2279\" rel=\"noopener\" target=\"_blank\">\u3010docker\u3011Amazon Linux2 apache \u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/a><\/p>\n<\/div>\n\n\n\n<h1 class=\"wp-block-heading\">Cron\u304c\u5b58\u5728\u3057\u306a\u3044\u3053\u3068\u306e\u78ba\u8a8d<\/h1>\n\n\n\n<p>\u672c\u5f53\u306bcron\u306f\u3044\u306a\u3044\u306e\u304b\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>find \/ -name &#39;cron&#39;<\/code><\/pre><\/div>\n\n\n\n<p>\u4e00\u5fdc\u3001\u4ee5\u4e0b\u306b\u3082cron\u304c\u3044\u306a\u3044\u4e8b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>ls -al etc\/<\/code><\/pre><\/div>\n\n\n\n<h1 class=\"wp-block-heading\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h1>\n\n\n\n<p>yum\u3092\u4f7f\u7528\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u30fb\u30b3\u30de\u30f3\u30c9<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>yum install cronie<\/code><\/pre><\/div>\n\n\n\n<h1 class=\"wp-block-heading\">\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u305f\u3053\u3068\u306e\u78ba\u8a8d<\/h1>\n\n\n\n<p>etc \u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4ee5\u4e0b\u306bcron\u304c\u5b58\u5728\u3059\u308b\u4e8b\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<br>\u81ea\u5206\u306e\u74b0\u5883\u3067\u306f\u4ee5\u4e0b\u304c\u5897\u3048\u3066\u3044\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>ls -al etc<\/code><\/pre><\/div>\n\n\n\n<p>\u30fb\u7d50\u679c<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>drwxr-xr-x 2 root root   4096 Dec 26 01:52 cron.d\ndrwxr-xr-x 2 root root   4096 Oct 18  2017 cron.daily\n-rw------- 1 root root      0 Jan 16  2020 cron.deny\ndrwxr-xr-x 2 root root   4096 Dec 26 01:52 cron.hourly\ndrwxr-xr-x 2 root root   4096 Oct 18  2017 cron.monthly\ndrwxr-xr-x 2 root root   4096 Oct 18  2017 cron.weekly\n-rw-r--r-- 1 root root    451 Oct 18  2017 crontab<\/code><\/pre><\/div>\n\n\n\n<h1 class=\"wp-block-heading\">\u6700\u5f8c\u306b<\/h1>\n\n\n\n<p>\u6b21\u56de\u306f\u8a66\u3057\u306b\u8a2d\u5b9a\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>cron(\u30af\u30ed\u30fc\u30f3)\u3068\u306f\u3001\u5b9a\u6642\u307e\u305f\u306f\u5b9a\u671f\u7684\u306b\u51e6\u7406\u3092\u5b9f\u884c\u3057\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":968,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-2337","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-amazon-linux"],"_links":{"self":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/2337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2337"}],"version-history":[{"count":5,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/2337\/revisions"}],"predecessor-version":[{"id":3021,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/2337\/revisions\/3021"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/media\/968"}],"wp:attachment":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}