<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Linux on POPWEB</title>
    <link>https://pop-web.github.io/categories/linux/</link>
    <description>Recent content in Linux on POPWEB</description>
    <generator>Hugo</generator>
    <language>ja</language>
    <lastBuildDate>Mon, 20 Apr 2020 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://pop-web.github.io/categories/linux/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Nginxでphp.iniの更新やモジュールを追加した場合、systemctl restart php-fpmで反映</title>
      <link>https://pop-web.github.io/server/linux/nginx-php-ini-php-fpm/</link>
      <pubDate>Mon, 20 Apr 2020 00:00:00 +0000</pubDate>
      <guid>https://pop-web.github.io/server/linux/nginx-php-ini-php-fpm/</guid>
      <description>&lt;p&gt;Nginxでphp-fpmサーバーを使っている場合、php.iniの編集やPHPのモジュールを追加の反映は以下のコマンドでphp-fpmを再起動する。&lt;/p&gt;</description>
    </item>
    <item>
      <title>さくらVPSとさくらのメールボックスを同じ独自ドメインにする方法</title>
      <link>https://pop-web.github.io/server/linux/vps-mailbox-domain/</link>
      <pubDate>Tue, 14 Apr 2020 00:00:00 +0000</pubDate>
      <guid>https://pop-web.github.io/server/linux/vps-mailbox-domain/</guid>
      <description>&lt;p&gt;さくらのVPSで独自ドメインでWEBサーバーを運用している場合、メールアドレスのドメイン も同じドメインで使用したい場合があると思う。&lt;/p&gt;
&lt;p&gt;でも、メールサーバーをたてるには、PostfixやDovecotの設定が必要で結構めんどい。&lt;/p&gt;</description>
    </item>
    <item>
      <title>【さくらVPS】NginxをLet&#39;s EncryptでSSL化させる</title>
      <link>https://pop-web.github.io/server/linux/nginx-lets-encrypt-ssl/</link>
      <pubDate>Mon, 13 Apr 2020 00:00:00 +0000</pubDate>
      <guid>https://pop-web.github.io/server/linux/nginx-lets-encrypt-ssl/</guid>
      <description>&lt;p&gt;さくらのVPSにてLet&amp;rsquo;s EncryptでSSL化させる手順を説明する。&lt;/p&gt;
&lt;h2 id=&#34;環境について&#34;&gt;環境について&lt;/h2&gt;
&lt;p&gt;環境については以下の通り。&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;さくらのVPS&lt;/li&gt;
&lt;li&gt;CentOS 7&lt;/li&gt;
&lt;li&gt;Nginx 1.17&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id=&#34;certbotインストール&#34;&gt;Certbotインストール&lt;/h2&gt;
&lt;p&gt;適切な場所移動してgit cloneする。&lt;/p&gt;</description>
    </item>
    <item>
      <title>SSHキーの作成手順（for Windows）</title>
      <link>https://pop-web.github.io/server/linux/ssh-for-windows/</link>
      <pubDate>Thu, 26 Mar 2020 00:00:00 +0000</pubDate>
      <guid>https://pop-web.github.io/server/linux/ssh-for-windows/</guid>
      <description>&lt;h1 id=&#34;ssh公開鍵認証について&#34;&gt;SSH公開鍵認証について&lt;/h1&gt;
&lt;p&gt;公開鍵認証は通常のパスワード認証よりも、安全にsshのログインができる認証方法&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;鍵は2つ必要&lt;/strong&gt;（秘密鍵・公開鍵）&lt;/li&gt;
&lt;li&gt;秘密鍵ファイルはローカルにおく（人に知られてはダメ）&lt;/li&gt;
&lt;li&gt;公開鍵ファイルはサーバが側におく（人に知られても良い）&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;秘密鍵を持っていないパソコンからはログイン接続できない&lt;/strong&gt;。&lt;/li&gt;
&lt;/ul&gt;
&lt;h1 id=&#34;sourcetreeでssh-keysの生成&#34;&gt;SourceTreeでSSH keysの生成&lt;/h1&gt;
&lt;p&gt;SourceTreeを起動する&lt;/p&gt;</description>
    </item>
    <item>
      <title>プログラムがどのポート番号を使っているか確認のLinuxコマンド</title>
      <link>https://pop-web.github.io/server/linux/port/</link>
      <pubDate>Sat, 21 Mar 2020 00:00:00 +0000</pubDate>
      <guid>https://pop-web.github.io/server/linux/port/</guid>
      <description>&lt;p&gt;Docker等を使っていて以下のようなエラーが出る場合がある。&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;ERROR: for web Cannot start service web: Ports are not available: listen tcp 0.0.0.0:80: bind: address already in use
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;そんな場合、以下のコマンドでLISTENしているポートを確認できる。&lt;/p&gt;</description>
    </item>
    <item>
      <title>npm insallすると&#34;Error: pngquant failed to build, make sure that libpng-dev is installed&#34;</title>
      <link>https://pop-web.github.io/server/linux/npm-insall-error-pngquant-failed-to-build/</link>
      <pubDate>Wed, 18 Mar 2020 00:00:00 +0000</pubDate>
      <guid>https://pop-web.github.io/server/linux/npm-insall-error-pngquant-failed-to-build/</guid>
      <description>&lt;p&gt;DockerでLaravel開発環境を構築時にLaravel Mixを使おうと、&lt;code&gt;npm install&lt;/code&gt;した時に以下エラー発生。&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Error: pngquant failed to build, make sure that libpng-dev is installed
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;以下のパッケージをインストールすると解決。&lt;/p&gt;</description>
    </item>
    <item>
      <title>プロキシサーバとリバースプロキシの違い</title>
      <link>https://pop-web.github.io/server/linux/proxy-reverse-proxy/</link>
      <pubDate>Tue, 03 Mar 2020 00:00:00 +0000</pubDate>
      <guid>https://pop-web.github.io/server/linux/proxy-reverse-proxy/</guid>
      <description>&lt;p&gt;プロキシ（Proxy）は「代理」という意味。&lt;/p&gt;
&lt;h2 id=&#34;プロキシサーバとは&#34;&gt;プロキシサーバとは&lt;/h2&gt;
&lt;p&gt;プロキシサーバは、基本的に社内ネットワークの境界に設置される。&lt;/p&gt;
&lt;p&gt;そのため、社内ネットワーク内のクライアントからインターネットへアクセスする際は、必ずプロキシサーバを経由することになる。&lt;/p&gt;</description>
    </item>
    <item>
      <title>デーモンとは（UNIX系OS/Linux, MacOSX）</title>
      <link>https://pop-web.github.io/server/linux/daemon/</link>
      <pubDate>Thu, 27 Feb 2020 00:00:00 +0000</pubDate>
      <guid>https://pop-web.github.io/server/linux/daemon/</guid>
      <description>&lt;p&gt;Linuxなどを界隈でよく聞くデーモンとは？&lt;/p&gt;
&lt;p&gt;デーモンとは、UNIX系のOS（Linux, MacOSX）における常駐プログラム。&lt;/p&gt;
&lt;p&gt;主にバックグラウンドで動作している。&lt;/p&gt;</description>
    </item>
    <item>
      <title>【さくらVPS】CentOS7&#43;Nginx&#43;PHP7&#43;MariaDBの環境構築</title>
      <link>https://pop-web.github.io/server/linux/nginx-php-mariadb/</link>
      <pubDate>Fri, 03 Jan 2020 00:00:00 +0000</pubDate>
      <guid>https://pop-web.github.io/server/linux/nginx-php-mariadb/</guid>
      <description>&lt;p&gt;さくらVPSでCentOS7+Nginx+PHP7+MariaDBの構築手順を説明する。&lt;/p&gt;
&lt;p&gt;Nginxのインストールと設定については、以前の記事を参照。&lt;/p&gt;</description>
    </item>
    <item>
      <title>【さくらVPS】Nginxバーチャルホストの設定</title>
      <link>https://pop-web.github.io/server/linux/nginx-virtualhost/</link>
      <pubDate>Fri, 03 Jan 2020 00:00:00 +0000</pubDate>
      <guid>https://pop-web.github.io/server/linux/nginx-virtualhost/</guid>
      <description>&lt;p&gt;前回の&lt;a href=&#34;https://blog.pop-web.net/programming/nginx-install/&#34;&gt;【さくらVPS】Nginxのインストール手順&lt;/a&gt;からの続きで&lt;/p&gt;
&lt;p&gt;バーチャルホスト設定を行なっていく。&lt;/p&gt;
&lt;h2 id=&#34;nginxを動作させるシステムユーザーを作成&#34;&gt;Nginxを動作させるシステムユーザーを作成&lt;/h2&gt;
&lt;p&gt;Nginxを動作させるシステムユーザを新たに作成する。&lt;/p&gt;
&lt;p&gt;デフォルトではNiginxユーザとなっているがセキュリティ上、新たにシステムユーザを作成することとする。&lt;/p&gt;</description>
    </item>
    <item>
      <title>【さくらVPS】Nginxのインストール手順</title>
      <link>https://pop-web.github.io/server/linux/nginx-install/</link>
      <pubDate>Thu, 02 Jan 2020 00:00:00 +0000</pubDate>
      <guid>https://pop-web.github.io/server/linux/nginx-install/</guid>
      <description>&lt;p&gt;さくらVPSでWebサーバーであるNginxをインストールする手順を紹介する。&lt;/p&gt;
&lt;p&gt;OSのバージョンはCentOS7。&lt;/p&gt;
&lt;p&gt;以前の記事で書いた&lt;a href=&#34;https://blog.pop-web.net/programming/vps-lamp/&#34;&gt;【さくらVPS】LAMP環境構築手順&lt;/a&gt;の&lt;a href=&#34;https://blog.pop-web.net/programming/vps-lamp/#SSH-2&#34;&gt;SSHのセキュリティ設定&lt;/a&gt;まで終わっている前提で進める。&lt;/p&gt;
&lt;h2 id=&#34;一般ユーザでログインしておく鍵認証&#34;&gt;一般ユーザでログインしておく（鍵認証）&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;ssh -p 45454 -i ~/.ssh/id_rsa user@xxx.xxx.xxx.xxx
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;80番ポートと443番ポートをあける&#34;&gt;80番ポートと443番ポートをあける&lt;/h2&gt;
&lt;p&gt;ファイアウォールが起動していなければ、起動しておく。&lt;/p&gt;</description>
    </item>
    <item>
      <title>秘密鍵と公開鍵（SSH Keys）の作成方法</title>
      <link>https://pop-web.github.io/server/linux/ssh-keys/</link>
      <pubDate>Fri, 23 Aug 2019 00:00:00 +0000</pubDate>
      <guid>https://pop-web.github.io/server/linux/ssh-keys/</guid>
      <description>&lt;p&gt;秘密鍵と公開鍵の作成手順を説明します。&lt;/p&gt;
&lt;h1 id=&#34;ディレクトリ作成&#34;&gt;ディレクトリ作成&lt;/h1&gt;
&lt;p&gt;ターミナルを起動する。&lt;/p&gt;
&lt;p&gt;鍵を補完する.sshディレクトリを作成。&lt;/p&gt;
&lt;p&gt;権限も適切に指定しておく&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;mkdir ~/.ssh
chmod 700 ~/.ssh
&lt;/code&gt;&lt;/pre&gt;&lt;h1 id=&#34;キーの作成&#34;&gt;キーの作成&lt;/h1&gt;
&lt;p&gt;以下のコマンドで作成&lt;/p&gt;</description>
    </item>
    <item>
      <title>CentOS / RedHat Enterprise LinuxのOSバージョン確認コマンド</title>
      <link>https://pop-web.github.io/server/linux/centos-redhat-enterprise-linux%E3%81%AEos%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%E7%A2%BA%E8%AA%8D%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89/</link>
      <pubDate>Mon, 08 Jul 2019 00:00:00 +0000</pubDate>
      <guid>https://pop-web.github.io/server/linux/centos-redhat-enterprise-linux%E3%81%AEos%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3%E7%A2%BA%E8%AA%8D%E3%82%B3%E3%83%9E%E3%83%B3%E3%83%89/</guid>
      <description>&lt;p&gt;CentOSとRedHat Enterprise LinuxのOSバージョンを確認したい場合、以下のコマンドを入力して確認します。&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.0
&lt;/code&gt;&lt;/pre&gt;</description>
    </item>
    <item>
      <title>apacheユーザーってなに？</title>
      <link>https://pop-web.github.io/server/linux/apache-user/</link>
      <pubDate>Fri, 21 Jun 2019 00:00:00 +0000</pubDate>
      <guid>https://pop-web.github.io/server/linux/apache-user/</guid>
      <description>&lt;p&gt;よくWEBサーバーの構築なんかで、&lt;strong&gt;公開するドキュメントルート配下のhtmlファイル所有者をapacheユーザーにする&lt;/strong&gt;っていうのをよく見かける。&lt;/p&gt;</description>
    </item>
    <item>
      <title>【さくらVPS】LAMP環境構築手順</title>
      <link>https://pop-web.github.io/server/linux/vps-lamp/</link>
      <pubDate>Mon, 17 Jun 2019 00:00:00 +0000</pubDate>
      <guid>https://pop-web.github.io/server/linux/vps-lamp/</guid>
      <description>&lt;p&gt;さくらVPSでLAMP環境構築手順の説明します。&lt;/p&gt;
&lt;p&gt;LAMP環境構築ですが 、 プラスアルファとしてSSL化、 Git・phpMyAdmin・Wordpressのインストールもします。&lt;/p&gt;</description>
    </item>
    <item>
      <title>SSH接続でWARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!が出たときの対処法</title>
      <link>https://pop-web.github.io/server/linux/warning-remote-host-identification-has-changed/</link>
      <pubDate>Fri, 14 Jun 2019 00:00:00 +0000</pubDate>
      <guid>https://pop-web.github.io/server/linux/warning-remote-host-identification-has-changed/</guid>
      <description>&lt;p&gt;SSH接続しようとしたら、「WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!」っていうのが出た。&lt;/p&gt;
&lt;h2 id=&#34;エラーの原因&#34;&gt;エラーの原因&lt;/h2&gt;
&lt;p&gt;サーバのOSを再インストールしたときなどによく出る。&lt;/p&gt;
&lt;p&gt;SSH接続するときに安全に接続するため、接続先のサーバー情報をクラインと側に保存する。その保存情報が以前接続した情報と一致しない場合は接続エラーになる。&lt;/p&gt;</description>
    </item>
    <item>
      <title>Vagrant、CentOS7環境でタイムゾーンを日本時間するコマンド</title>
      <link>https://pop-web.github.io/server/linux/vagrant-centos-set-timezone/</link>
      <pubDate>Tue, 28 May 2019 00:00:00 +0000</pubDate>
      <guid>https://pop-web.github.io/server/linux/vagrant-centos-set-timezone/</guid>
      <description>&lt;p&gt;VagrantでCentOS7をインストールすると、デフォルトでは時間が日本時間になってないのでタイムゾーンの設定をする。&lt;/p&gt;
&lt;p&gt;以下、日本時間に設定するコマンドです。&lt;/p&gt;</description>
    </item>
    <item>
      <title>Linuxコマンドの「~」チルダの意味は</title>
      <link>https://pop-web.github.io/server/linux/linux-tilde/</link>
      <pubDate>Thu, 23 May 2019 00:00:00 +0000</pubDate>
      <guid>https://pop-web.github.io/server/linux/linux-tilde/</guid>
      <description>&lt;p&gt;Linuxコマンドで 「～」チルダの意味は、&lt;strong&gt;ホームディレクトリを意味&lt;/strong&gt;します。&lt;/p&gt;
&lt;p&gt;試しに使ってみるとわかりやすい。&lt;/p&gt;
&lt;p&gt;agreeというユーザーでログインしており、自身のagreeディレクトリのpublic_htmlディレクトリに移動したい場合は以下のようになる。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
