{"id":92,"date":"2020-01-07T15:32:28","date_gmt":"2020-01-07T06:32:28","guid":{"rendered":"https:\/\/wordpress.k8s.yukiafronia.com\/?p=92"},"modified":"2020-08-10T16:17:35","modified_gmt":"2020-08-10T07:17:35","slug":"fireflyiii-oss%e8%b2%a1%e5%8b%99%e3%83%9e%e3%83%8d%e3%83%bc%e3%82%b8%e3%83%a3%e3%83%bc","status":"publish","type":"post","link":"https:\/\/blog.yukiafronia.com\/?p=92","title":{"rendered":"Fireflyiii OSS\u8ca1\u52d9\u30de\u30cd\u30fc\u30b8\u30e3\u30fc"},"content":{"rendered":"<p>\u7686\u3055\u3093\u3001\u3042\u3051\u304a\u3081\u3067\u3059\u3002<br \/>\n\u4eca\u5e74\u3082\u5f0a\u5b66\u306enull2x\u3092\u3069\u3046\u305e\u3088\u308d\u3057\u304f\u304a\u9858\u3044\u81f4\u3057\u307e\u3059\u3002<br \/>\n\u4eca\u56de\u306f\u3001\u65b0\u5e74\u65e9\u3005\u5bb6\u8a08\u7c3f\u3092OSS\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u59cb\u3081\u3066\u307f\u3088\u3046\u3068\u601d\u3044VM\u3067\u69cb\u7bc9\u3057\u3066\u307f\u305f\u8a18\u4e8b\u306b\u306a\u308a\u307e\u3059\u3002 <\/p>\n<h2>\u306a\u3093\u3067\u5bb6\u8a08\u7c3f\u306a\u3093\u3066\u4ed8\u3051\u3088\u3046\u3068\u601d\u3063\u305f\u306e\u3055..<\/h2>\n<p>\u307e\u3001\u4f55\u304b\u304d\u3063\u304b\u3051\u304c\u7121\u3051\u308c\u3070\u5bb6\u8a08\u7c3f\u306a\u3093\u3066\u4ed8\u3051\u3088\u3046\u3068\u3082\u601d\u308f\u306a\u3044\u3067\u3059\u3088\u306d\u3047..<br \/>\n\u304d\u3063\u304b\u3051\u3068\u3057\u3066\u306f\u3001\u6b32\u3057\u3044\u3082\u306e\u304c\u3042\u308a\u3059\u304e\u306a\u306e\u3068\u5c31\u8077\u3057\u3066\u304b\u3089iDeco \u3084 NISA\u306a\u3069\u306e\u6295\u8cc7\u95a2\u4fc2\u3001\u4fdd\u967a\u3001\u30af\u30ec\u30b8\u30c3\u30c8\u30ab\u30fc\u30c9\u306e\u5229\u7528\u306a\u3069\u53ce\u5165\u3068\u652f\u51fa\u306e\u984d\u304c\u4eca\u307e\u3067\u306b\u6bd4\u3079\u3066\u6841\u9055\u3044\u306b\u5927\u304d\u304f\u306a\u308b\u305f\u3081OSS\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u7ba1\u7406\u3067\u304d\u308c\u3070\u4e00\u5143\u7ba1\u7406\u3057\u3061\u3083\u304a\u3046\u3068\u3044\u3046\u610f\u6c17\u8fbc\u307f\u3067\u5c0e\u5165\u3092\u691c\u8a0e\u3057\u307e\u3057\u305f\u3002  <\/p>\n<h2>\u3058\u3083\u3001\u3068\u308a\u3042\u3048\u305a\u69cb\u7bc9\u3057\u3066\u3044\u304d\u307e\u3059\u304b\u3002<\/h2>\n<p>CentOS 8\u306f\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u3068\u3044\u3046\u3053\u3068\u3092\u60f3\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u307e\u3041\u3001\u6bce\u56deCentOS8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u65b9\u6cd5\u66f8\u304f\u306e\u3082\u9762\u5012\u306a\u306e\u3067\u662f\u975e\u3053\u3061\u3089\u3082\u3054\u89a7\u304f\u3060\u3055\u3044\u3002<br \/>\n<a href=\"https:\/\/www.server-world.info\/query?os=CentOS_8&amp;p=install\"><a href=\"https:\/\/www.server-world.info\/query?os=CentOS_8&amp;amp;p=install\">https:\/\/www.server-world.info\/query?os=CentOS_8&amp;p=install<\/a><\/a>  <\/p>\n<p>\u307e\u305a\u306f\u3001\u4e00\u65e6firewalld \u3068 SELinux\u3092\u505c\u6b62\u3055\u305b\u307e\u3059\u3002<br \/>\n\u52a0\u3048\u3066\u3001\u4eca\u56de\u4f7f\u3046composer\u3068\u3044\u3046\u3082\u306e\u304cIPv6\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u307f\u305f\u3044\u3067IPv6\u3092\u6709\u52b9\u5316\u3057\u305f\u72b6\u614b\u3060\u3068\u30a8\u30e9\u30fc\u3092\u5410\u3044\u3066\u3057\u307e\u3046\u306e\u3067\u7121\u52b9\u5316\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<pre><code class=\"language-bash\">root@localhost ~# setenforce 0\n\nroot@localhost ~# systemctl stop firewalld\n\nroot@localhost ~# vi \/etc\/sysctl.conf\n\n----\u8ffd\u8a18----\nnet.ipv6.conf.all.disable_ipv6 = 1\nnet.ipv6.conf.default.disable_ipv6 = 1\n\nroot@localhost ~# nmcli c mod ens33 ipv6.method ignore\n<\/code><\/pre>\n<p>ens33\u306f\u79c1\u304c\u69cb\u7bc9\u3057\u3066\u3044\u308bCentOS8\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30c7\u30d0\u30a4\u30b9\u540d\u3067\u3059\u3002<br \/>\n\u500b\u3005\u4eba\u306b\u3088\u3063\u3066ens\u25cb\u25cb\u306e\u90e8\u5206\u304c\u5909\u308f\u308a\u307e\u3059\u306e\u3067\u4efb\u610f\u3067\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002  <\/p>\n<pre><code class=\"language-bash\">root@localhost~# vi \/etc\/yum.repos.d\/nginx.repo  \n\n[nginx]\nname=nginx repo\nbaseurl=http:\/\/nginx.org\/packages\/centos\/$releasever\/$basearch\/\ngpgcheck=0\nenabled=1\n\nroot@localhost~# dnf -y --disablerepo=AppStream install nginx  \n\nroot@localhost~# vi \/etc\/yum.repos.d\/mariadb.repo \n\n#MariaDB 10.4 CentOS repository list - created 2020-01-05 02:18 UTC\n#http:\/\/downloads.mariadb.org\/mariadb\/repositories\/\n[mariadb]\nname = MariaDB\nbaseurl = http:\/\/yum.mariadb.org\/10.4\/centos8-amd64 \ngpgkey=https:\/\/yum.mariadb.org\/RPM-GPG-KEY-MariaDB \ngpgcheck=1<\/code><\/pre>\n<pre><code class=\"language-bash\">root@localhost~# dnf -y install https:\/\/rpms.remirepo.net\/enterprise\/remi-release-8.rpm  \n\nroot@localhost~# dnf -y module install php:remi-7.4  \n\nroot@localhost~# dnf -y install php php-fpm php-gd php-mbstring php-mysqlnd php-bcmath php-intl php-zip php-opcache php-ldap  \n\nroot@localhost~# dnf -y --disablerepo=AppStream install MariaDB-server MariaDB-client  \n<\/code><\/pre>\n<p><strong><em>\u6ce8\u610f<\/em><\/strong><br \/>\n2020\/01\/25 \u73fe\u5728\u3001nginx.repo\u3092\u5c0e\u5165\u3057\u3066\u3082\u4f55\u6545\u304bnginx\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u306a\u3044\u4e8b\u8c61\u3092\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059\u3002<br \/>\n\u62e1\u5f35\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u3042\u308b\u306e\u306b\u3001nginx\u672c\u4f53\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u51fa\u6765\u306a\u3051\u308c\u3070\u610f\u5473\u304c\u7121\u3044\u306e\u3067  <\/p>\n<pre><code class=\"language-bash\">root@localhost ~# rpm -ivh http:\/\/nginx.org\/packages\/centos\/8\/x86_64\/RPMS\/nginx-1.16.1-1.el8.ngx.x86_64.rpm<\/code><\/pre>\n<p>\u3067nginx\u672c\u4f53\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3082\u3057\u3001nginx.repo\u304b\u3089\u6b63\u5e38\u306bnginx\u672c\u4f53\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u51fa\u6765\u308b\u3088\u3046\u3067\u3042\u308c\u3070rpm\u304b\u3089\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u4e0d\u8981\u3067\u3059\u3002  <\/p>\n<p>\u7d9a\u3044\u3066\u3001\u5834\u5408\u306b\u3082\u3088\u308b\u307f\u305f\u3044\u3067\u3059\u304c<br \/>\nlibboost_program_options.so.1.66.0()(64bit) \u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u8db3\u308a\u306a\u3044\u3053\u3068\u304c\u3042\u308b\u3088\u3046\u3067\u3059\u3002<br \/>\n\u3053\u308c\u3082\u3001rpm\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u307b\u3046\u304c\u65e9\u305d\u3046\u3067\u3059\u3002<br \/>\n\u3061\u306a\u307f\u306b\u3001\u3053\u308c\u306fMariaDB-Server\u306e\u4f9d\u5b58\u95a2\u4fc2\u3089\u3057\u3044\u3067\u3059...  <\/p>\n<pre><code class=\"language-bash\">root@localhost ~# rpm -ivh http:\/\/mirror.centos.org\/centos\/8\/AppStream\/x86_64\/os\/Packages\/boost-program-options-1.66.0-6.el8.x86_64.rpm  <\/code><\/pre>\n<p>\u3082\u3057\u3001\u4e0a\u8a18\u306elibboost\u306b\u95a2\u3059\u308brpm\u306e\u53d6\u5f97\u304c\u5fc5\u8981\u306a\u304fMariaDB\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u51fa\u6765\u308b\u5834\u5408\u306f\u4e0b\u8a18\u901a\u308a\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u51fa\u6765\u308b\u3068\u601d\u308f\u308c\u307e\u3059\u3002  <\/p>\n<pre><code class=\"language-bash\">root@localhost ~# dnf -y --disablerepo=AppStream install MariaDB-server MariaDB-client<\/code><\/pre>\n<p>\u7d9a\u3044\u3066\u3001Firefly iii \u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u53d6\u5f97\u306b\u79fb\u3063\u3066\u3044\u304d\u307e\u3059\u3002  <\/p>\n<pre><code class=\"language-bash\">root@localhost~# curl -sS https:\/\/getcomposer.org\/installer | php -- --install-dir=\/usr\/local\/bin --filename=composer  \n\nroot@localhost~# cd \/usr\/share\/nginx\/html\/  \n\nroot@localhost~# composer create-project grumpydictator\/firefly-iii --no-dev --prefer-dist firefly-iii x.x.x  <\/code><\/pre>\n<p>(x.x.x \u306fFireflyiii \u306eGitHub release\u3092\u78ba\u8a8d\u3057\u3066\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u6253\u3061\u8fbc\u307f\u307e\u3057\u3087\u3046)<\/p>\n<pre><code class=\"language-bash\">root@localhost~# vi \/etc\/php-fpm.d\/www.conf  \n\n    user = nginx\n    group = nginx\n\n    ;listen = 127.0.0.1:9000\n    listen = \/var\/run\/php-fpm\/php-fpm.sock\n\n    listen.owner = nginx\n    listen.group = nginx\n    listen.mode = 0660<\/code><\/pre>\n<p><strong><em>default.conf\u4e38\u3005\u66f8\u304d\u63db\u3048<\/em><\/strong>  <\/p>\n<pre><code class=\"language-bash\">root@localhost~# rm -rf \/etc\/nginx\/conf.d\/default.conf  \n\nroot@localhost~# vi \/etc\/nginx\/conf.d\/default.conf  \n\n    server {\n        listen       80 default_server;\n        listen       [::]:80 default_server;\n        server_name  _;\n        root         \/usr\/share\/nginx\/html\/firefly-iii\/public;\n\n        # Load configuration files for the default server block.\n        include \/etc\/nginx\/default.d\/*.conf;\n        location ~ \\.php$ {\n              try_files $uri =404;\n              fastcgi_pass unix:\/var\/run\/php-fpm\/php-fpm.sock;\n              fastcgi_index index.php;\n              fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;\n              include fastcgi_params;\n\n        }\n\n        index index.php index.htm index.html;\n\n        location \/ {\n          try_files $uri $uri\/ \/index.php?$query_string;\n          autoindex on;\n          sendfile off;\n        }\n\n        error_page 404 \/404.html;\n            location = \/40x.html {\n        }\n\n        error_page 500 502 503 504 \/50x.html;\n            location = \/50x.html {\n        }\n    }<\/code><\/pre>\n<pre><code class=\"language-sql\">root@localhost~# systemctl start mariadb  \n\nroot@localhost~# mysql -u root -e &quot;CREATE DATABASE firefly;&quot;  \n\nroot@localhost~# mysql -u root -e &quot;GRANT ALL ON firefly.* TO firefly@localhost IDENTIFIED BY &#039;password&#039;;&quot;  \n<\/code><\/pre>\n<pre><code class=\"language-bash\">root@localhost~# vi \/usr\/share\/nginx\/html\/firefly-iii\/.env  \n\nDB_CONNECTION=mysql\nDB_DATABASE=firefly\nDB_USERNAME=firefly\nDB_PASSWORD=your_password<\/code><\/pre>\n<p>  <\/p>\n<pre><code class=\"language-bash\">root@localhost~# vi \/usr\/share\/nginx\/html\/firefly-iii\/config\/database.php  <\/code><\/pre>\n<p>(\u2191mysql.sock\u306e\u5834\u6240: \/var\/lib\/mysql\/mysql.sock)  <\/p>\n<p>\u3010\u8ffd\u8a18\u3011 <\/p>\n<pre><code class=\"language-php\">&#039;unix_socket&#039; =&gt; &#039;\/var\/lib\/mysql\/mysql.sock&#039;,<\/code><\/pre>\n<pre><code class=\"language-bash\">root@localhost~# cd \/usr\/share\/nginx\/html\/firefly-iii  \n\nroot@localhost~# php artisan migrate:refresh --seed  \n\nroot@localhost~# php artisan passport:install  \n\nroot@localhost~# chown -R nginx:nginx \/usr\/share\/nginx\/html\/firefly-iii\/  <\/code><\/pre>\n<hr \/>\n<p>\u3010Firewalld , SELinux \u7121\u52b9\u5316\u3059\u308b\u5834\u5408\u3011  <\/p>\n<pre><code class=\"language-bash\">root@localhost~ # systemctl disable firewalld  \n\nRemoved \/etc\/systemd\/system\/multi-user.target.wants\/firewalld.service.  \nRemoved \/etc\/systemd\/system\/dbus-org.fedoraproject.FirewallD1.service.<\/code><\/pre>\n<pre><code class=\"language-bash\">root@localhost~ # vi \/etc\/sysconfig\/selinux  \n\nSELINUX=disabled<\/code><\/pre>\n<hr \/>\n<p>  <\/p>\n<p>\u4e00\u5fdc10\u56de\u7a0b\u5ea6\u30b3\u30de\u30f3\u30c9\u306e\u691c\u8a3c\u3092\u884c\u3044\u3001\u4e0a\u8a18\u901a\u308a\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3061\u8fbc\u3081\u3070\u69cb\u7bc9\u306f\u51fa\u6765\u308b\u306f\u305a\u3067\u3059\u3002  <\/p>\n<p>\u305c\u3072\u3084\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u306d!!  <\/p>\n<p><img decoding=\"async\" src=\"https:\/\/user-images.githubusercontent.com\/23439178\/71825180-32461180-3093-11ea-811a-fd2ceec974e4.png\" alt=\"image\" \/>  <\/p>\n<p>\u5b9f\u969b\u306b\u3001\u69cb\u7bc9\u51fa\u6765\u305f\u6642\u306b\u306ftwitter\u3067\u8d85\u68d2\u8aad\u307f\u306atweet\u3092\u3057\u3066\u3057\u307e\u3044\u3057\u305f...  (\u7b11)<\/p>\n<p>\n\u3058\u3083\u3001\u6b21\u306fGitlab\u304b\u306a  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7686\u3055\u3093\u3001\u3042\u3051\u304a\u3081\u3067\u3059\u3002 \u4eca\u5e74\u3082\u5f0a\u5b66\u306enull2x\u3092\u3069\u3046\u305e\u3088\u308d\u3057\u304f\u304a\u9858\u3044\u81f4\u3057\u307e\u3059\u3002 \u4eca\u56de\u306f\u3001\u65b0\u5e74\u65e9\u3005\u5bb6\u8a08\u7c3f\u3092OSS\u30d1\u30c3\u30b1\u30fc\u30b8\u3067\u59cb\u3081\u3066\u307f\u3088\u3046\u3068\u601d\u3044VM\u3067\u69cb\u7bc9\u3057\u3066\u307f\u305f\u8a18\u4e8b\u306b\u306a\u308a\u307e\u3059\u3002 \u306a\u3093\u3067\u5bb6\u8a08\u7c3f\u306a\u3093\u3066\u4ed8\u3051\u3088\u3046\u3068\u601d\u3063\u305f\u306e\u3055..&hellip; <span class=\"clear\"><\/span><a href=\"https:\/\/blog.yukiafronia.com\/?p=92\" class=\"more-link read-more\" rel=\"bookmark\"><span class=\"screen-reader-text\">Fireflyiii OSS\u8ca1\u52d9\u30de\u30cd\u30fc\u30b8\u30e3\u30fc<\/span><i class=\"fa fa-arrow-right\"><\/i> \u306e\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":93,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-92","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-1"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/blog.yukiafronia.com\/index.php?rest_route=\/wp\/v2\/posts\/92","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.yukiafronia.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.yukiafronia.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.yukiafronia.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.yukiafronia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=92"}],"version-history":[{"count":1,"href":"https:\/\/blog.yukiafronia.com\/index.php?rest_route=\/wp\/v2\/posts\/92\/revisions"}],"predecessor-version":[{"id":94,"href":"https:\/\/blog.yukiafronia.com\/index.php?rest_route=\/wp\/v2\/posts\/92\/revisions\/94"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.yukiafronia.com\/index.php?rest_route=\/wp\/v2\/media\/93"}],"wp:attachment":[{"href":"https:\/\/blog.yukiafronia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=92"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.yukiafronia.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=92"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.yukiafronia.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=92"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}