Webサイトの導入(二)

4603 ワード

インストールMysql:
1>: cd ~

2)  mysql57
>: wget http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm

3)  mysql57
>: yum -y install mysql57-community-release-el7-10.noarch.rpm
>: yum -y install mysql-community-server

4)  mysql57       
>: systemctl start mysqld.service
>: systemctl status mysqld.service

5>: grep "password" /var/log/mysqld.log
>: mysql -uroot -p

6>: ALTER USER 'root'@'localhost' IDENTIFIED BY 'new password';

 
インストールredis
1>: cd ~

2)  redis-5.0.5
>: wget http://download.redis.io/releases/redis-5.0.5.tar.gz

3>: tar -xf redis-5.0.5.tar.gz

4>: cd redis-5.0.5

5>: make

6>: cp -r ~/redis-5.0.5 /usr/local/redis

7)  redis      :      
>: vim /usr/local/redis/redis.conf

daemonize yes

8>: esc
>: :wq

9>: ln -s /usr/local/redis/src/redis-server /usr/bin/redis-server
>: ln -s /usr/local/redis/src/redis-cli /usr/bin/redis-cli

10)    redis
>: redis-server &
ctrl + c

11)  redis  
>: redis-cli
ctrl + c

12)  redis  
>: pkill -f redis -9