Ubuntu 16.04.6 LTS


MariaDB 10.4 [Stable]


sudo -s

apt-get install software-properties-common

apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8

add-apt-repository 'deb [arch=amd64,arm64,i386,ppc64el] http://nyc2.mirrors.digitalocean.com/mariadb/repo/10.4/ubuntu xenial main'


sudo apt update

sudo apt install mariadb-server


https://downloads.mariadb.org/mariadb/repositories/#mirror=digitalocean-nyc


'Study > Ubuntu' 카테고리의 다른 글

AWS CLI 설치 및 삭제  (0) 2019.09.01
Ubuntu node.js v12.x 설치  (0) 2019.06.03
Ubuntu MongoDB 설치  (0) 2019.06.02
Ubuntu node.js v10.x 설치  (0) 2019.06.02
Ubuntu - 디스크 정보 확인  (0) 2015.08.13
Posted by theqoo
,

사전에 python, unzip 이 설치되어있어야 합니다.



AWS CLI를 ~/.local/lib/aws 에 설치하고 ~/bin/aws에 심볼 링크를 생성


curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"

unzip awscli-bundle.zip

./awscli-bundle/install -b ~/bin/aws



PATH 환경 변수 설정


echo $PATH | grep ~/bin

export PATH=~/bin:$PATH



AWS CLI 삭제


sudo rm -rf /usr/local/aws

sudo rm /usr/local/bin/aws


'Study > Ubuntu' 카테고리의 다른 글

Ubuntu MariaDB 설치  (0) 2020.01.07
Ubuntu node.js v12.x 설치  (0) 2019.06.03
Ubuntu MongoDB 설치  (0) 2019.06.02
Ubuntu node.js v10.x 설치  (0) 2019.06.02
Ubuntu - 디스크 정보 확인  (0) 2015.08.13
Posted by theqoo
,

Ubuntu 16.04.4 LTS [Amazon Lightsail]


NodeSource 사용

curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install -y nodejs


https://github.com/nodesource/distributions

 

 

'Study > Ubuntu' 카테고리의 다른 글

Ubuntu MariaDB 설치  (0) 2020.01.07
AWS CLI 설치 및 삭제  (0) 2019.09.01
Ubuntu MongoDB 설치  (0) 2019.06.02
Ubuntu node.js v10.x 설치  (0) 2019.06.02
Ubuntu - 디스크 정보 확인  (0) 2015.08.13
Posted by theqoo
,

Ubuntu 16.04.4 LTS [Amazon Lightsail]

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4

echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/4.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.0.list

sudo apt-get update

sudo apt-get install -y mongodb-org

echo "mongodb-org hold" | sudo dpkg --set-selections
echo "mongodb-org-server hold" | sudo dpkg --set-selections
echo "mongodb-org-shell hold" | sudo dpkg --set-selections
echo "mongodb-org-mongos hold" | sudo dpkg --set-selections
echo "mongodb-org-tools hold" | sudo dpkg --set-selections

sudo service mongod start

mongod --version

'Study > Ubuntu' 카테고리의 다른 글

AWS CLI 설치 및 삭제  (0) 2019.09.01
Ubuntu node.js v12.x 설치  (0) 2019.06.03
Ubuntu node.js v10.x 설치  (0) 2019.06.02
Ubuntu - 디스크 정보 확인  (0) 2015.08.13
https 보안서버 구축 (SSL 사설 인증서 설치)  (0) 2015.05.27
Posted by theqoo
,

Ubuntu 16.04.4 LTS [Amazon Lightsail]

 

wget https://nodejs.org/dist/v10.16.0/node-v10.16.0-linux-x64.tar.xz


VERSION=v10.16.0
DISTRO=linux-x64
sudo mkdir -p /usr/local/lib/nodejs
sudo tar -xJvf node-$VERSION-$DISTRO.tar.xz -C /usr/local/lib/nodejs


vi .profile

# Nodejs

VERSION=v10.16.0

DISTRO=linux-x64

export PATH=/usr/local/lib/nodejs/node-$VERSION-$DISTRO/bin:$PATH

 

. ~/.profile

 

node -v

'Study > Ubuntu' 카테고리의 다른 글

Ubuntu node.js v12.x 설치  (0) 2019.06.03
Ubuntu MongoDB 설치  (0) 2019.06.02
Ubuntu - 디스크 정보 확인  (0) 2015.08.13
https 보안서버 구축 (SSL 사설 인증서 설치)  (0) 2015.05.27
Ubuntu - nginx에 phpmyadmin 설정  (1) 2013.04.01
Posted by theqoo
,

다른 툴을 설치하여도 가능하지만 lsblk 명령어로도 확인이 가능하다.


root@ubuntu-web:~# lsblk -io KNAME,TYPE,SIZE,MODEL


가장머신은 Virtual Disk로 나옵니다....



'Study > Ubuntu' 카테고리의 다른 글

Ubuntu MongoDB 설치  (0) 2019.06.02
Ubuntu node.js v10.x 설치  (0) 2019.06.02
https 보안서버 구축 (SSL 사설 인증서 설치)  (0) 2015.05.27
Ubuntu - nginx에 phpmyadmin 설정  (1) 2013.04.01
Ubuntu - MariaDB 설치  (0) 2013.03.24
Posted by theqoo
,


1. mod_ssl 설치

yum install mod_ssl

2. Generate perivate key 생성

openssl genrsa -des3 -out ca.key 2048
// 패스워드 입력


3. Generate CSR 생성

openssl req -new -key ca.key out ca.csr


// 정보 입력
Country Name (2 letter code) [] :
State or Province Name (full name) [] :
Locality Name (eg, city) [Default City] :
Organization Name (eg, company) [Default Company Ltd]:
Organizational Unit Name (eg, section) []:
Common Name (eg, your name or your server's hostname) []:
Email Address []:

A challenge password []: 생략
An optional company name []: 생략

4. Generate Self Signed Key 생성

openssl x509 -req -days 365 -in ca.csr -signkey ca.key -out ca.crt

5. /etc/httpd/conf.d/ssl.conf 수정

SSLCertificateKeyFile "/apache/conf/ssl/ca.key"
SSLCertificateFile "/apache/conf/ssl/ca.crt"

6. httpd 재시작

/etc/init.d/httpd restart



웹 브라우저의 보안이 강화되면서 사설 인증서를 거부하는 경우도 있습니다.
테스트 용도가 아니라면, StartSSL에서 무료로 발급하는 인증서를 사용하는것을 권장합니다.


'Study > Ubuntu' 카테고리의 다른 글

Ubuntu node.js v10.x 설치  (0) 2019.06.02
Ubuntu - 디스크 정보 확인  (0) 2015.08.13
Ubuntu - nginx에 phpmyadmin 설정  (1) 2013.04.01
Ubuntu - MariaDB 설치  (0) 2013.03.24
Ubuntu - nginx 컴파일 설치  (0) 2013.03.22
Posted by theqoo
,

Ubuntu 12.04.2 LTS 환경에서 작성하였습니다.


apt-get install phpmyadmin


1. apache, lighttpd 둘 중 아무거나 선택
2. Configure database for phpmyadmin with dbconfig-common - NO


3. nginx.conf 파일의 server {} 사이에 넣어줌


location /phpmyadmin {
    root /usr/share/;
    index index.php index.html index.htm;
    location ~ ^/phpmyadmin/(.+\.php)$ {
        try_files $uri =404;
            root /usr/share/;
            fastcgi_pass unix:/var/run/php5-fpm.sock;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME /usr/share$fastcgi_script_name;
            include fastcgi_params;
      }
    location ~* ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
            root /usr/share/;
          }
}
location /phpMyAdmin {
    rewrite ^/* /phpmyadmin last;
}

'Study > Ubuntu' 카테고리의 다른 글

Ubuntu - 디스크 정보 확인  (0) 2015.08.13
https 보안서버 구축 (SSL 사설 인증서 설치)  (0) 2015.05.27
Ubuntu - MariaDB 설치  (0) 2013.03.24
Ubuntu - nginx 컴파일 설치  (0) 2013.03.22
CentOS - eth0 자동 활성화 시키기  (0) 2013.02.23
Posted by theqoo
,

Ubuntu 12.04.2 LTS 환경에서 작성하였습니다.


apt-get install python-software-properties 

apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db

add-apt-repository 'deb http://ftp.kaist.ac.kr/mariadb/repo/5.5/ubuntu precise main'


apt-get update apt-get install mariadb-server

https://downloads.mariadb.org/mariadb/repositories/

Posted by theqoo
,

Ubuntu 12.04.2 LTS 환경에서 작성하였습니다.


apache는 설치 후 모듈을 추가 할 수 있지만 nginx는 설치 후 모듈을 추가 할 수 없기때문에  추가 모듈을 사용하기 위해서는 컴파일 설치를 해야 한다.


1. 의존성 설치

apt-get install gcc libpcre3 libpcre3-dev zlib1g zlib1g-dev openssl libssl-dev


2. nginx 다운로드

wget http://nginx.org/download/nginx-1.2.7.tar.gz

tar zxf nginx-1.2.7.tar.gz


3. 컴파일

./configure --prefix=/usr/local/lib/nginx/nginx-1.2.7 \

--error-log-path=/var/log/nginx/error.log \

--http-log-path=/var/log/nginx/access.log \

--with-http_ssl_module \

--with-http_stub_status_module


#컴파일 옵션 설명

--prefix : nginx가 설치되는 폴더

기본값 /usr/local/nginx

--conf-path : 환경 설정 파일의 경로

기본값 <prefix>/conf/nginx.conf

--error-log-path : 에러 로그 파일의 위치

기본값 <prefix>/logs/error.log

--http-log-path : 접근 로그 파일의 위치

기본값 <prefix>/logs/access.log

--with-http_ssl_module : SSL 모듈

--with-http_stub_status_module : 서버 모니터링 모듈


기본으로 포함되어 설치되는 모듈을 제거하고 싶으면 --without 옵션으로 제거 가능하고 기본 외 추가로 필요한 모듈은 --with 옵션으로 추가 가능하다.

nginx에서 제공하는 모듈은 nginx의 wiki 페이지에서 확인가능 하다.


4. make && make install


5. 실행

sudo /usr/local/lib/nginx/nginx-1.2.7/sbin/nginx


nginx 재시작

sudo /usr/local/lib/nginx/nginx-1.2.7/sbin/nginx -s reload


'Study > Ubuntu' 카테고리의 다른 글

Ubuntu - nginx에 phpmyadmin 설정  (1) 2013.04.01
Ubuntu - MariaDB 설치  (0) 2013.03.24
CentOS - eth0 자동 활성화 시키기  (0) 2013.02.23
Ubuntu - vi 설정 변경  (0) 2012.11.16
htop - an interactive process viewer for Linux  (0) 2011.12.28
Posted by theqoo
,