Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
$ sudo yum install docker

Docker 서비스 실행하기
$ sudo service docker start

부팅했을 때 자동으로 실행하기
$ sudo chkconfig docker on

최신 공식방법은 아래참고:

https://docs.docker.com/engine/installation/linux/docker-ce/centos/


git 설치

Panel

yum install git

http://artwook.tistory.com/261

...

No Format
yum update
yum install gcc
yum install kernel-devel
yum install bzip2
yum install kernel-devel-2.6.32-573.el6.i686
mkdir /media/cdrom
mount /dev/scd0 /media/cdrom
sh /media/cdrom/VBoxLinuxAdditions.run

MYSQL

  •  작동잘되는것 체크해서 되는놈 정리하기

...


mariadb(mysql db)

설치준비( mariadb 10.1)


No Format
vi /etc/yum.repos.d/MariaDB.repo  입력하여 아래내용을 저장한다.
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos7-amd64
gpgkey=https://

...

yum.

...

mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1


설치/시작

No Format
yum install -y MariaDB MariaDB-server MariaDB-client

#서비스 시작은 설정완료후 계속진행, 아래 설정참고( vi /etc/my.cnf )
service mariadb start

#mysql root계정및 몇가지 보안설정을 한다.
mysql_secure_installation


#아래 명령을 통해 데이터베이스 조회가 되면성공
mysql -u root -p
MariaDB [(none)]> show databases


#성공을 확인했기때문에 부팅시 자동시작 등록
systemctl enable mariadb.service

reflink : https://blog.bypass.sh/243 

주요설정

No Format
/etc/my.cnf 
[mysqld]
# Connection and Thread variables
port                           = 3306
socket                         = /var/run/mysqld/mysql.sock          # Use mysqld.sock on Ubuntu, conflicts with AppArmor otherwise
basedir                        = /usr
datadir                        = /data/mysql
tmpdir                         = /tmp
character_set_server           = utf8
collation_server               = utf8_general_ci


# dir set
chown -R mysql:mysql /data/mysql 


계정 생성명령

No Format
create user 'user명'@'%' identified by '패스워드';
create user 'user명'@'localhost' identified by '패스워드';
flush privileges;


create database DB명;
grant all privileges on DB명.* to 'user명'@'%';
grant all privileges on DB명.* to 'user명'@'localhost';

그외 원격접속허용 : http://all-record.tistory.com/95