Coder Social home page Coder Social logo

aws-generic-userdata's Introduction

AWS-Generic-UserData

A collection of AWS UserData for general use 汎用的なAmazon Linux 2 EC2用UserData スクリプト

Overview お品書き

lamp-Initial_construction.sh

Install Apache, php, mariaDB, redis for Amazon Linux2. Initialize mariaDB and create an empty DB with the name specified in “Setting value”.

Amazon Linux2 に対してApache,php,mariaDB,redisをインストールします。 mariaDBの初期化を行い、”設定値” で指定された名前の空DBを作成します。

lamp-Initial_construction_wordpress.sh

Install Wordpress for Amazon Linux2. Initialize mariaDB and create an Wordpress DB with the name specified in “Setting value”.

argument "DBtype Local or RDS" "Wordpress db name" "wordpress db user name" "wordpress db password" "rds endpoint" "rds root user" "rds root password"

Amazon Linux2 に対してWordpressをインストールします。 mariaDBの初期化を行い、”設定値” で指定された名前のWordpressDBを作成します。

引数 "DBtype Local or RDS" "Wordpress db name" "wordpress db user name" "wordpress db password" "rds endpoint" "rds root user" "rds root password"

DefaultSetting デフォルト設定

DBType : local
wordpress_db_name : wpdb
wordpress_user_bame : wpuser
wordpress_password : wppass

If you run the script with no arguments, it will be built with the above settings.
引数無しでスクリプトを実行した場合上記の設定で構築されます。

#!/bin/bash  
  
curl -L https://raw.githubusercontent.com/qryuu/AWS-Generic-UserData/master/lamp-Initial_construction_wordpress.sh | bash

Example

#!/bin/bash  
  
curl -L https://raw.githubusercontent.com/qryuu/AWS-Generic-UserData/master/lamp-Initial_construction_wordpress.sh | bash -s local wordpressdb wpdbuser passw0rd
#!/bin/bash  
  
curl -L https://raw.githubusercontent.com/qryuu/AWS-Generic-UserData/master/lamp-Initial_construction_wordpress.sh | bash -s RDS wordpressdb wpdbuser passw0rd wrodpress.example.ap-northeast-1.rds.amazon.com:3306 root rdspassword

Login to the WordPress administration screen 管理画面へのログイン

http://"ipaddress"/wp-admin
Login ID : <wordpress_user_name>
Password : <wordpress_password>

aws-generic-userdata's People

Contributors

qryuu avatar

Watchers

James Cloos avatar  avatar

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.