AmazonLinux2にamazon-linux-extrasを用いてpostgresql9.6をインストールしたのですがサービスの起動ができません。
# amazon-linux-extras list 0 ansible2 available [ =2.4.2 =2.4.6 ] 1 emacs available [ =25.3 ] 2 httpd_modules available [ =1.0 ] 3 memcached1.5 available [ =1.5.1 ] 4 nginx1.12 available [ =1.12.2 ] 5 postgresql9.6=latest enabled [ =9.6.6 =9.6.8 ] 6 postgresql10 available [ =10 ] 8 redis4.0 available [ =4.0.5 =4.0.10 ] 9 R3.4 available [ =3.4.3 ] 10 rust1 available \ [ =1.22.1 =1.26.0 =1.26.1 =1.27.2 ] 11 vim available [ =8.0 ] 12 golang1.9 available [ =1.9.2 ] 13 ruby2.4 available [ =2.4.2 =2.4.4 ] 14 nano available [ =2.9.1 ] 15 php7.2 available \ [ =7.2.0 =7.2.4 =7.2.5 =7.2.8 ] 16 php7.1 available [ =7.1.22 ] 17 lamp-mariadb10.2-php7.2 available \ [ =10.2.10_7.2.0 =10.2.10_7.2.4 =10.2.10_7.2.5 =10.2.10_7.2.8 ] 18 libreoffice available [ =5.0.6.2_15 =5.3.6.1 ] 19 gimp available [ =2.8.22 ] 20 docker=latest enabled \ [ =17.12.1 =18.03.1 =18.06.1 ] 21 mate-desktop1.x available [ =1.19.0 =1.20.0 ] 22 GraphicsMagick1.3 available [ =1.3.29 ] 23 tomcat8.5 available [ =8.5.31 =8.5.32 ] 24 epel available [ =7.11 ] 25 testing available [ =1.0 ] 26 ecs available [ =stable ]
# psql --version psql (PostgreSQL) 9.6.8
[root@ip-10-0-0-195WEB-1 ~]# yum list installed | grep postgresql9.6 postgresql.x86_64 9.6.8-1.amzn2.0.1 @amzn2extra-postgresql9.6 postgresql-libs.x86_64 9.6.8-1.amzn2.0.1 @amzn2extra-postgresql9.6 [root@ip-10-0-0-195WEB-1 ~]# yum list available | grep postgresql9.6 postgresql-contrib.x86_64 9.6.8-1.amzn2.0.1 amzn2extra-postgresql9.6 postgresql-devel.x86_64 9.6.8-1.amzn2.0.1 amzn2extra-postgresql9.6 postgresql-docs.x86_64 9.6.8-1.amzn2.0.1 amzn2extra-postgresql9.6 postgresql-plperl.x86_64 9.6.8-1.amzn2.0.1 amzn2extra-postgresql9.6 postgresql-plpython.x86_64 9.6.8-1.amzn2.0.1 amzn2extra-postgresql9.6 postgresql-pltcl.x86_64 9.6.8-1.amzn2.0.1 amzn2extra-postgresql9.6 postgresql-server.x86_64 9.6.8-1.amzn2.0.1 amzn2extra-postgresql9.6 postgresql-static.x86_64 9.6.8-1.amzn2.0.1 amzn2extra-postgresql9.6 postgresql-test.x86_64 9.6.8-1.amzn2.0.1 amzn2extra-postgresql9.6 postgresql-upgrade.x86_64 9.6.8-1.amzn2.0.1 amzn2extra-postgresql9.6
上の通りインストールまでは成功しているようなのですが起動しようとすると以下のようになってしまいます。
# systemctl start postgresql-9.6 Failed to start postgresql-9.6.service: Unit not found.
回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/10/29 02:15
2018/10/30 13:43