$ sudo yum install nodejs, npm, redis
$curl --silent --location https://rpm.nodesource.com/setup_6.x | sudo bash -
$sudo yum install -y nodejs
curl로 6.x라고 적혀잇는데, 이에따라 6.x버전의 nodejs를 인스톨한다
$ sudo yum install --enablerepo=epel gperftools //
$ yum info --enablerepo=epel redis
Version : 3.0.7
$ sudo yum install redis --enablerepo=epel
이때 centos의 버전에 따라 기본 패키지에 들어있는 모듈도 있고 없는 모듈도 있는데
로
自動起動スクリプトがインストールされるので、実行して正常起動することを確認します
$ sudo service redis start
redis-server を起動中: [ OK ]
$ ps -ef | grep redis
redis 10995 1 0 21:57 ? 00:00:00 /usr/bin/redis-server 127.0.0.1:6379
Redis に接続してバージョンを確認します
아래는 츠바키 상으로 부터 받은 소프트웨어 설치 테쥰
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
_/ AI Hubのセットアップメモ
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/
■ Node.js のインストール
$ curl --silent --location https://rpm.nodesource.com/setup_10.x | sudo bash -
$ sudo yum -y install nodejs
$ node -v
v10.9.0
■ Redis のインストール
$ sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
$ sudo yum install -y redis
$ redis-server --version
Redis server v=3.2.12 sha=00000000:0 malloc=jemalloc-3.6.0 bits=64 build=3dc3425a3049d2ef
$ sudo systemctl start redis
$ redis-cli ping
PONG
$ sudo systemctl enable redis
■ MySQL のインストール
$ sudo yum localinstall https://dev.mysql.com/get/mysql80-community-release-el7-1.noarch.rpm -y
$ sudo yum-config-manager --disable mysql80-community
$ sudo yum-config-manager --enable mysql57-community
$ yum info mysql-community-server
$ sudo yum install mysql-community-server -y
$ mysqld --version
mysqld Ver 5.7.23 for Linux on x86_64 (MySQL Community Server (GPL))
$ sudo systemctl start mysqld
[ec2-user@ip-10-2-1-79 ~]$ sudo systemctl enable mysqld
[ec2-user@ip-10-2-1-79 ~]$ systemctl status mysqld
● mysqld.service - MySQL Server
Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2018-08-23 02:53:33 UTC; 11s ago
Docs: man:mysqld(8)
http://dev.mysql.com/doc/refman/en/using-systemd.html
Main PID: 6030 (mysqld)
CGroup: /system.slice/mysqld.service
mq6030 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid
Aug 23 02:53:28 ip-10-2-1-79.ap-northeast-1.compute.internal systemd[1]: Starting MySQL Server...
Aug 23 02:53:33 ip-10-2-1-79.ap-northeast-1.compute.internal systemd[1]: Started MySQL Server.
$ cat /var/log/mysqld.log | grep password
2018-08-23T02:53:29.909619Z 1 [Note] A temporary password is generated for root@localhost: twZC.j6#)vgp
mysql> show global variables like 'character%';
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | latin1 |
| character_set_connection | latin1 |
| character_set_database | latin1 |
| character_set_filesystem | binary |
| character_set_results | latin1 |
| character_set_server | latin1 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.00 sec)
mysql> sudo vi /etc/my.cnf
-> ^C
mysql> exit
Bye
[ec2-user@ip-10-2-1-79 ~]$ sudo vi /etc/my.cnf
[ec2-user@ip-10-2-1-79 ~]$ sudo cp -p /etc/my.cnf /etc/my.cnf.default
[ec2-user@ip-10-2-1-79 ~]$ sudo vi /etc/my.cnf
[ec2-user@ip-10-2-1-79 ~]$ sudo systemctl restart mysqld
[ec2-user@ip-10-2-1-79 ~]$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.7.23 MySQL Community Server (GPL)
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> show global variables like 'character%';
+--------------------------+----------------------------+
| Variable_name | Value |
+--------------------------+----------------------------+
| character_set_client | utf8mb4 |
| character_set_connection | utf8mb4 |
| character_set_database | utf8mb4 |
| character_set_filesystem | binary |
| character_set_results | utf8mb4 |
| character_set_server | utf8mb4 |
| character_set_system | utf8 |
| character_sets_dir | /usr/share/mysql/charsets/ |
+--------------------------+----------------------------+
8 rows in set (0.00 sec)
'Server > Linux' 카테고리의 다른 글
Bash 입문자를 위한 핵심 요약 정리(주석,함수,변수,내장변수,연산자,파일비교,반복문,조건문) (0) | 2018.10.04 |
---|---|
service 와 chkconfig (0) | 2018.10.04 |
[centos]EPEL이란? (0) | 2018.10.04 |
cmd로 private ip 취득 (0) | 2018.09.07 |
cmd로 public IP 취득하기 (0) | 2018.09.07 |