Jump to content

Serwery Baz Daych


MrFustrr
 Share

Recommended Posts

Witam

Mam problem z uruchomienie w systemie uslug MySQL i PostgreSQL. Po wpisaniu polecen service mysqld start albo service postgresqld start otrzymuje

[root@rosko ~]# service postgresqld start
Redirecting to /bin/systemctl  start postgresqld.service
Failed to issue method call: Unit postgresqld.service failed to load: No such file or directory. See system logs and 'systemctl status postgresqld.service' for details.

Pracuje na Fedorze 16

Linux rosko 3.1.6-1.fc16.x86_64 #1 SMP Wed Dec 21 22:41:17 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

 

Nie wiem co z tym zrobic, prosze o pomoc.

Link to comment
Share on other sites

Po pierwsze nie korzystaj z przestarzalych narzedzi - prawdopodobnie niedlugo znikna z systemu. Poczytaj o "man systemctl: i "systemctl --help" a na poczatek powiedz czy zastosowales sie do sugestii "See system logs and 'systemctl status postgresqld.service' for details"

 

Optymistycznie zakladam, ze obie bazy instalowales z repozytoriów.

Link to comment
Share on other sites

Po pierwsze nie korzystaj z przestarzalych narzedzi - prawdopodobnie niedlugo znikna z systemu. Poczytaj o "man systemctl: i "systemctl --help" a na poczatek powiedz czy zastosowales sie do sugestii "See system logs and 'systemctl status postgresqld.service' for details"

 

Optymistycznie zakladam, ze obie bazy instalowales z repozytoriów.

 

Szczerze mówiac, to nie widzialem, ze zmienia sie oprogramowanie do zarzadzania uslugami... ale poczytalem dokumentacje http://docs.fedorapr...ration-enabling i nauczylem sie czegos nowego :)

O ile uruchomienie z uruchomieniem httpd i mysqld nie mialem problemów to Postgresql troche szwankuje.

A mianowicie:

[root@kom ~]# systemctl start postgresqld.service
Failed to issue method call: Unit postgresqld.service failed to load: No such file or directory. See system logs and 'systemctl status postgresqld.service' for details.

 

i

[root@rosko ~]# systemctl status postgresqld.service
postgresqld.service
 	Loaded: error (Reason: No such file or directory)
 	Active: inactive (dead)

 

Wyglada na to, ze nie ma czegos w systemie ale pamietam, ze instalowalem postgresql, postgresql-{server,devel}.

 

Edit:

Znalazlem cos takiego http://yum.postgresq...es-released.php ale w klepanie "

systemctl enable postgresql91.service" nie rozwiazalo problemu. Dopiero

systemctl enable postgresql.service

Sorry za lenistwo...

Link to comment
Share on other sites

Jednak cos nie dziala (PostgreSQL) i nie wiem dlaczego:

[mateusz@rosko ~]$ systemctl status postgresql.service
postgresql.service - PostgreSQL database server
 	Loaded: loaded (/lib/systemd/system/postgresql.service; enabled)
 	Active: failed since Mon, 26 Dec 2011 18:36:53 +0100; 6min ago
	Process: 1083 ExecStart=/usr/bin/pg_ctl start -D ${PGDATA} -s -o -p ${PGPORT} -w -t 300 (code=exited, status=1/FAILURE)
 	CGroup: name=systemd:/system/postgresql.service

 

i httpd, mysqld:

[mateusz@rosko ~]$ systemctl status httpd.service
httpd.service - The Apache HTTP Server (prefork MPM)
 	Loaded: loaded (/lib/systemd/system/httpd.service; enabled)
 	Active: active (running) since Mon, 26 Dec 2011 18:36:48 +0100; 5min ago
	Process: 1090 ExecStart=/usr/sbin/httpd $OPTIONS -k start (code=exited, status=0/SUCCESS)
Main PID: 1115 (httpd)
 	CGroup: name=systemd:/system/httpd.service
 		" 1115 /usr/sbin/httpd -k start
 		" 1117 /usr/sbin/httpd -k start
 		" 1118 /usr/sbin/httpd -k start
 		" 1119 /usr/sbin/httpd -k start
 		" 1120 /usr/sbin/httpd -k start
 		" 1121 /usr/sbin/httpd -k start
 		" 1122 /usr/sbin/httpd -k start
 		" 1123 /usr/sbin/httpd -k start
 		 1124 /usr/sbin/httpd -k start

[mateusz@rosko ~]$ systemctl status mysqld.service
mysqld.service - MySQL database server
 	Loaded: loaded (/lib/systemd/system/mysqld.service; disabled)
 	Active: inactive (dead)
 	CGroup: name=systemd:/system/mysqld.service

 

EDIT:

 

dodam jeszcze takie info:

[root@rosko ~]# systemctl | grep mysql*
mysqld.service            loaded active running   	MySQL database server
[root@rosko ~]# systemctl | grep mysql* httpd
grep: httpd: Nie ma takiego pliku ani katalogu
[root@rosko ~]# systemctl | grep httpd
httpd.service     		loaded active running   	The Apache HTTP Server (prefork MPM)
[root@rosko ~]# systemctl | grep postgresql
postgresql.service        loaded failed failed        PostgreSQL database server
[root@rosko ~]# 

 

 

[root@rosko ~]# systemctl status postgresql.service
postgresql.service - PostgreSQL database server
  Loaded: loaded (/lib/systemd/system/postgresql.service; enabled)
  Active: failed since Mon, 26 Dec 2011 19:30:04 +0100; 21min ago
  CGroup: name=systemd:/system/postgresql.service

Edited by MrFustrr
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...