teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

8

追記

2017/06/14 07:52

投稿

roronoazoro
roronoazoro

スコア113

title CHANGED
File without changes
body CHANGED
@@ -114,4 +114,6 @@
114
114
  結果 `Letzte Anmeldung: Montag, den 12. Juni 2017, 07:21:16 CEST auf pts/0`
115
115
  状態 `[vagrant@localhost vagrant]` → `-bash-4.2$ psql -l` へと初期状態が変更
116
116
 
117
- ![イメージ説明](32ffe94cebf989445fba18008bd8a41c.png)
117
+ ![イメージ説明](32ffe94cebf989445fba18008bd8a41c.png)
118
+
119
+ ![イメージ説明](846cd0fe82521227420f0603092fbe83.png)

7

画像の追加

2017/06/14 07:52

投稿

roronoazoro
roronoazoro

スコア113

title CHANGED
File without changes
body CHANGED
@@ -112,4 +112,6 @@
112
112
 
113
113
  出力 `su - postgres`
114
114
  結果 `Letzte Anmeldung: Montag, den 12. Juni 2017, 07:21:16 CEST auf pts/0`
115
- 状態 `[vagrant@localhost vagrant]` → `-bash-4.2$ psql -l` へと初期状態が変更
115
+ 状態 `[vagrant@localhost vagrant]` → `-bash-4.2$ psql -l` へと初期状態が変更
116
+
117
+ ![イメージ説明](32ffe94cebf989445fba18008bd8a41c.png)

6

ついk

2017/06/14 07:18

投稿

roronoazoro
roronoazoro

スコア113

title CHANGED
File without changes
body CHANGED
@@ -112,4 +112,4 @@
112
112
 
113
113
  出力 `su - postgres`
114
114
  結果 `Letzte Anmeldung: Montag, den 12. Juni 2017, 07:21:16 CEST auf pts/0`
115
- `[vagrant@localhost vagrant]` → `-bash-4.2$ psql -l` へと初期状態が変更
115
+ 状態 `[vagrant@localhost vagrant]` → `-bash-4.2$ psql -l` へと初期状態が変更

5

追記

2017/06/14 07:13

投稿

roronoazoro
roronoazoro

スコア113

title CHANGED
File without changes
body CHANGED
@@ -108,4 +108,8 @@
108
108
  2. `createuser -s vagrant`
109
109
  の流れになります。
110
110
 
111
- ![イメージ説明](6cbd7e945955de79ef32038e95e76e6b.png)
111
+ ![イメージ説明](6cbd7e945955de79ef32038e95e76e6b.png)
112
+
113
+ 出力 `su - postgres`
114
+ 結果 `Letzte Anmeldung: Montag, den 12. Juni 2017, 07:21:16 CEST auf pts/0`
115
+ `[vagrant@localhost vagrant]` → `-bash-4.2$ psql -l` へと初期状態が変更

4

画像の追加

2017/06/14 07:13

投稿

roronoazoro
roronoazoro

スコア113

title CHANGED
File without changes
body CHANGED
@@ -78,7 +78,7 @@
78
78
  # such as FTP and Heroku are also available. See the documentation at
79
79
  # https://docs.vagrantup.com/v2/push/atlas.html for more information.
80
80
  # config.push.define "atlas" do |push|
81
- # push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
81
+ # push.app = "YOUR_ATLAS_USERNAME0. 番号リスト/YOUR_APPLICATION_NAME"
82
82
  # end
83
83
 
84
84
  # Enable provisioning wih a shell script. Additional provisioners such as
@@ -100,4 +100,12 @@
100
100
 
101
101
  CentOS7ローカル開発環境にてexit直後、(Vagrantfile直下のディレクトリ)
102
102
  出力 `psql -l -U postgres`
103
- 結果 `psql: FATAL: role "postgres" does not exist`
103
+ 結果 `psql: FATAL: role "postgres" does not exist`
104
+
105
+
106
+ 0. `cd /vagrant` 共有フォルダへ移動
107
+ 1. `ls` 共有フォルダ内表示
108
+ 2. `createuser -s vagrant`
109
+ の流れになります。
110
+
111
+ ![イメージ説明](6cbd7e945955de79ef32038e95e76e6b.png)

3

追記

2017/06/14 06:41

投稿

roronoazoro
roronoazoro

スコア113

title CHANGED
File without changes
body CHANGED
@@ -96,4 +96,8 @@
96
96
  結果 `postgresql-9.5.service loaded active running PostgreSQL 9.5 database server`
97
97
 
98
98
  出力 'sudo yum install postgresql-server'
99
- 結果 'Komplett!'
99
+ 結果 'Komplett!'
100
+
101
+ CentOS7ローカル開発環境にてexit直後、(Vagrantfile直下のディレクトリ)
102
+ 出力 `psql -l -U postgres`
103
+ 結果 `psql: FATAL: role "postgres" does not exist`

2

試したこと

2017/06/14 06:18

投稿

roronoazoro
roronoazoro

スコア113

title CHANGED
File without changes
body CHANGED
@@ -81,7 +81,7 @@
81
81
  # push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
82
82
  # end
83
83
 
84
- # Enable provisioning with a shell script. Additional provisioners such as
84
+ # Enable provisioning wih a shell script. Additional provisioners such as
85
85
  # Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
86
86
  # documentation for more information about their specific syntax and use.
87
87
  # config.vm.provision "shell", inline: <<-SHELL
@@ -89,4 +89,11 @@
89
89
  # apt-get install -y apache2
90
90
  # SHELL
91
91
  end
92
- ```
92
+ ```
93
+
94
+ **試したこと**
95
+ 出力 `systemctl list-units --type=service | grep postgres`
96
+ 結果 `postgresql-9.5.service loaded active running PostgreSQL 9.5 database server`
97
+
98
+ 出力 'sudo yum install postgresql-server'
99
+ 結果 'Komplett!'

1

タグの追加

2017/06/14 06:07

投稿

roronoazoro
roronoazoro

スコア113

title CHANGED
File without changes
body CHANGED
@@ -6,6 +6,8 @@
6
6
  こちらの原因について教えていただけると幸いです。
7
7
  よろしくお願いいたします。
8
8
 
9
+ **パソコン環境**
10
+ macOS Sierra バージョン 10.12.5
9
11
 
10
12
  **cat Vagrantfile 結果**
11
13
  ```ruby