新規docker コンテナ作成 コマンド一覧

docker run -i -t -d -v /Users/mirei_hayase/git/:/home/git --name コンテナ名 -p 8082:80 -p 3306:3306 --privileged 22bb35c58310 /sbin/init

 

vim /etc/nginx/conf.d/default.conf

root /home/git/qa_test/public;

 

yum install -y mysql-server

これがなぜか入ってなくて、mysql につながらなかった

 

```
1 cd /home/suzuki/git/hivelocity/c_r/renewal-api/
2 ls -la storage/
3 chmod 777 storage/resume/
4 ls -la
5 ls -la storage/resume/
6 /etc/init.d/
7 ls -la /etc/init.d/
8 cat /etc/redhat-release
9 php -v
10 yum install nginx
11 yum install epel-release
12 yum install nginx
13 rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
14 yum install php-fpm php-cli php-pdo php-mysql php-mbstring php-mcrypt php-devel --enablerepo=remi-php70
15 php -v
16 vim /etc/nginx/nginx.conf
17 yum install vim
18 vim /etc/nginx/nginx.conf
19 vim /etc/nginx/conf.d/virtual.conf
20 vim /etc/nginx/conf.d/default.conf
21 vim /etc/nginx/conf.d/default.conf
22 /etc/init.d/php-fpm start
23 /etc/init.d/nginx start
24 vim /etc/nginx/conf.d/default.conf
25 /etc/init.d/nginx start
26 chkconfig on nginx
27 chkconfig nginx on
28 chkconfig php-fpm on
29 php -v
30 vim /etc/nginx/conf.d/default.conf
31 /etc/init.d/nginx restart
32 vim /etc/nginx/conf.d/default.conf
33 /etc/init.d/nginx restart
34 vim /etc/nginx/conf.d/default.conf
35 /etc/init.d/nginx restart
36 /etc/init.d/nginx restart
37 /etc/init.d/nginx restart
38 vim /etc/nginx/conf.d/default.conf
39 /etc/init.d/nginx restart
40 vim /etc/nginx/conf.d/default.conf
41 /etc/init.d/nginx restart
42 vim /etc/nginx/conf.d/default.conf
43 /etc/init.d/nginx restart
45 cat /etc/redhat-release
47 php -v
50 nginx -v
51 vim /etc/nginx/nginx.conf
52 vim /etc/nginx/conf.d/virtual.conf
53 vim /etc/nginx/conf.d/default.conf
54 vim /etc/nginx/conf.d/virtual.conf
55 cd /home/suzuki/git/hivelocity/c_r/admin/
56 composer global require "laravel/installer"
57 curl -sS https://getcomposer.org/installer | php
58 mv composer.phar /usr/local/bin/composer
59 composer global require "laravel/installer"
60 yum install git
61 composer create-project --prefer-dist laravel/laravel blog
62 /etc/init.d/nginx restart
63 vim /etc/nginx/conf.d/virtual.conf
64 /etc/init.d/nginx status
65 /etc/init.d/nginx restart
66 /etc/init.d/php-fpm status
67 /etc/init.d/php-fpm restart
68 vim /etc/nginx/nginx.conf
69 vim /etc/nginx/conf.d/virtual.conf
70 /etc/init.d/nginx restart
72 tail -f storage/logs/laravel.log
73 ll storage/logs/
74 date
80 chmod 777 storage/ -R
81 tail -f storage/logs/laravel.log
89 mysql -u root

```