0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

CentOS7 MailCatcherを実装する

Posted at

目的

  • MailCatcherの実装方法をまとめる。

実施環境

  • ハードウェア環境
項目 情報
OS CentOS 7 (7.8.2003)
ハードウェア Dell Studio 1537
プロセッサ Intel(R) Core(TM)2 Duo CPU P8400 @ 2.26GHz
メモリ 4 GB DDR3
グラフィックス 不明

前提条件

前提情報

  • 本説明で実行するコマンドは特筆しない場合、CentOS7のPCにssh接続を行い実行する物とする。

読後感

  • MailCatcherを起動しブラウザから確認することができる。

概要

  1. Rubyのインストール
  2. 使用パッケージのインストール
  3. MailCatcherのインストールと起動
  4. 確認

詳細

  1. Rubyのインストール

    1. 下記コマンドを実行してRubyをインストールする。

      $ sudo yum install ruby
      
  2. 使用パッケージのインストール

    1. 下記コマンドを実行してruby-develをインストールする。

      $ sudo yum install ruby-devel
      
    2. 下記コマンドを実行してgcc-c++をインストールする。

      $ sudo yum install gcc-c++
      
    3. 下記コマンドを実行してsqlite-develをインストールする。

      $ sudo yum install sqlite-devel
      
  3. MailCatcherのインストールと起動

    1. 下記コマンドを実行してMailCatcherをインストールする。

      $ sudo gem install mailcatcher
      
    2. 下記コマンドを実行してMailCatcherを起動する。

      $ mailcatcher
      
  4. 確認

    1. ブラウザで下記にアクセスする。
    2. 下記のページが表示されることを確認する。

    MailCatcher__0_.png

参考文献

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?