Coder Social home page Coder Social logo

oneliner-env's Introduction

1行で環境構築

サーバにrootログインし1行のコマンドを実行するだけで環境構築できるスクリプトです。
必要なソフトウェアがすべて納まり、連携動作も取れている1台のサーバ環境を作ります。
環境構築は難しい、たいへん時間がかかるという問題を即座に解決します。

このプロジェクトは、正確に動作するごく標準的な環境を構築するのを目的としています。 それ以上の環境が必要な場合は、出来た環境からさらに独自のカスタマイズを行うのがベターです。

対象OS

  • CentOS Stream 8

CentOS 8の場合はStream 8へ移行してください。

ライセンス

MIT license

内容

ローカルにAnsibleをインストールし、Ansible GalaxyのPlaybookを基本に少しカスタマイズして環境構築しています。 次の特色があります。

  • 最新のソフトウェア環境
  • 日本語最適化

使い方

新規にOSをインストールしたサーバにrootでログインし、以下の1行のコマンドをそのままコピーして実行します。

installdemo1

Webサーバ(LEMP)環境構築 (所要時間: 約10分)

Linux(L),Nginx(N),MariaDB(M),PHP(P)のLEMP環境を作成します。

バージョン

  • Nginx 1.21.x
  • PHP 8.1.x
  • MariaDB 10.7.x

実行コマンド

curl https://raw.githubusercontent.com/czbone/oneliner-env/master/script/build_lemp.sh | bash

動作チェック

環境構築後、WebブラウザでURLにアクセスし、簡単に動作チェックを行います。「localhost」部分は環境に合わせて変更してください。

phpinfoが表示されます。

http://localhost/index.php

テスト用DBに日本語文字列を登録し再表示させます。文字化けせずに日本語が表示されていればOKです。

http://localhost/index2.php

検証環境

  • Vagrant Box: centos/stream8

依存関係

以下のAnsibleロールが含まれています。

oneliner-env's People

Contributors

czbone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

menchips

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.