Giter Site home page Giter Site logo

myawsstudyblog's Introduction

Setup You EC2

Setup Development Tools

sudo yum update -y
sudo yum groupinstall "Development Tools"

Now, you will have python 2.7.

Install Node.js 8:

curl --silent --location https://rpm.nodesource.com/setup_8.x | sudo bash -
sudo yum -y install nodejs

Enable the EPEL repository

  • Please see this FAQ - EC2 enable EPEL
    • vim /etc/yum.repos.d/epel.repo
    • Locate and change the entry enabled=0 to enabled=1 that is located in the $basearch section of the epel.repo file.
    • sudo yum-config-manager --enable epel
    • sudo yum --enablerepo=epel install zabbix

Add Repositories for Amazon Linux

  • default launch with two Repositories: amzn-main and amzn-updates.

  • List the installed yum repositories with the following command:

    yum repolist all

  • enable a yum repository in /etc/yum.repos.d

    sudo yum-config-manager --enable <repo id>

    such as epel for <repo id>.

  • reference this link

Setup cmake

wget https://cmake.org/files/v3.8/cmake-3.8.0.tar.gz
tar -zxf cmake-3.8.0.tar.gz
cd cmake-3.8.0
./configure
make
sudo make install

Install OpenSSL

wget https://www.openssl.org/source/openssl-1.1.0f.tar.gz
tar -xvzf openssl-1.0.2k.tar.gz
cd openssl-1.0.2k
./config --prefix=/usr/
make
sudo make install
  • Check openssl version
openssl version -a

Hardlink/Softlink Protection

  • For security, recommend to do this. See the blog
  • Add two lines to /etc/sysctl.d/00-defaults.conf
# Hardlink/Softlink Protection
fs.protected_hardlinks = 1
fs.protected_symlinks = 1
  • validate the change
    • sudo sysctl -a | grep fs
    • check the results with
    fs.protected_hardlinks = 1
    fs.protected_symlinks = 1    
    

Save an AMI for you

  • After your AMI saved, run sudo reboot because let hardlink/softlink protection take effects.

myawsstudyblog's People

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.