お世話になります
2~3日前からcloud9へpostgresql9.6をインストールしようとしていますがInstalledとなっているにもかかわらずbash: postgresql: command not foundとなります。これはどういうことなのかが知りたいです
AWSに統合前はpreinstallされていたけど今はPostgresqlを使う場合は自分でinstallしないといけないようです
何度も検索しながらやっていますがだめです。
原因は何なのでしょうか?
CloudUser:~/environment $ sudo yum install postgresql96 postgresql96-server postgresql96-contrib postgresql96-docs Loaded plugins: priorities, update-motd, upgrade-helper amzn-main | 2.1 kB 00:00:00 amzn-updates | 2.5 kB 00:00:00 1063 packages excluded due to repository priority protections Package postgresql96-9.6.11-1.82.amzn1.x86_64 already installed and latest version Package postgresql96-server-9.6.11-1.82.amzn1.x86_64 already installed and latest version Package postgresql96-contrib-9.6.11-1.82.amzn1.x86_64 already installed and latest version Resolving Dependencies --> Running transaction check ---> Package postgresql96-docs.x86_64 0:9.6.11-1.82.amzn1 will be installed --> Finished Dependency Resolution Dependencies Resolved ======================================================================================= Package Arch Version Repository Size ======================================================================================= Installing: postgresql96-docs x86_64 9.6.11-1.82.amzn1 amzn-updates 74 k Transaction Summary ======================================================================================= Install 1 Package Total download size: 74 k Installed size: 112 k Is this ok [y/d/N]: y Downloading packages: postgresql96-docs-9.6.11-1.82.amzn1.x86_64.rpm | 74 kB 00:00:00 Running transaction check Running transaction test Transaction test succeeded Running transaction Installing : postgresql96-docs-9.6.11-1.82.amzn1.x86_64 1/1 Verifying : postgresql96-docs-9.6.11-1.82.amzn1.x86_64 1/1 Installed: postgresql96-docs.x86_64 0:9.6.11-1.82.amzn1 Complete! CloudUser:~/environment $ 31.sudo service postgresql initdb bash: 31.sudo: command not found CloudUser:~/environment $ sudo service postgresql initdb postgresql: unrecognized service CloudUser:~/environment $ sudo service postgresql start postgresql: unrecognized service CloudUser:~/environment $ CloudUser:~/environment $ postgresql --version bash: postgresql: command not found
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/07/20 06:42