postgresql-bin/systemctl initdb postgresql.service Unknown operation initdb | Solved
Question : I get this error when starting postgresql server on fedora 16
[pirat9@Fedora16 forum]$ sudo service postgresql initdb Output Redirecting to /bin/systemctl initdb postgresql.service Unknown operation initdb
Use the following commands to correct the issue:
[root@Fedora16 ~]# su - postgres -c "PGDATA=/var/lib/pgsql/data initdb" Output The files belonging to this database system will be owned by user "postgres". This user must also own the server process. The database cluster will be initialized with locale en_US.UTF-8. The default database encoding has accordingly been set to UTF8. The default text search configuration will be set to "english". fixing permissions on existing directory /var/lib/pgsql/data ... ok creating subdirectories ... ok selecting default max_connections ... 100 selecting default shared_buffers ... 24MB creating configuration files ... ok creating template1 database in /var/lib/pgsql/data/base/1 ... ok initializing pg_authid ... ok initializing dependencies ... ok creating system views ... ok loading system objects' descriptions ... ok creating collations ... ok creating conversions ... ok creating dictionaries ... ok setting privileges on built-in objects ... ok creating information schema ... ok loading PL/pgSQL server-side language ... ok vacuuming database template1 ... ok copying template1 to template0 ... ok copying template1 to postgres ... ok WARNING: enabling "trust" authentication for local connections You can change this by editing pg_hba.conf or using the -A option the next time you run initdb. Success. You can now start the database server using: postgres -D /var/lib/pgsql/data or pg_ctl -D /var/lib/pgsql/data -l logfile start [root@Fedora16 ~]#
Start the Server now
[root@Fedora16 ~]# service postgresql start Output Redirecting to /bin/systemctl start postgresql.service
[root@Fedora16 ~]# ps -ef | grep sql Output postgres 3045 1 1 22:03 ? 00:00:00 /usr/bin/postgres -D /var/lib/pgsql/data -p 5432 postgres 3046 3045 0 22:03 ? 00:00:00 postgres: logger process postgres 3048 3045 0 22:03 ? 00:00:00 postgres: writer process postgres 3049 3045 0 22:03 ? 00:00:00 postgres: wal writer process postgres 3050 3045 0 22:03 ? 00:00:00 postgres: autovacuum launcher process postgres 3051 3045 0 22:03 ? 00:00:00 postgres: stats collector process root 3186 2874 0 22:04 pts/0 00:00:00 grep --color=auto post
For questions please refer to our Q/A forum at : http://ask.unixmen.com/
Like us on Facebook
Donate to Unixmen
We need your assistance to stay live
This week Top Posts
- Top Things To Do After Installing Ubuntu 13.10 'Saucy Salamander' : Ubuntu 13.10 Saucy Salamander will be released on coming October 17th with many new salient featur...0 comments |
- Install Fail2Ban On Ubuntu Server 13.04/13.10 : Introduction Fail2Ban is an intrusion prevention framework written in the Python programming l...0 comments |
- 5 Android Apps that’s Going to Make Running Your Business Less Stressful : Running a business can be very stressful. You have to think about team collaboration, making sure th...0 comments |
- install Git in Ubuntu : Git is a distributed revision control system with an emphasis on speed. Git was initially designed a...0 comments |
- Install Crashplan backup tool in Linux : CashPlan is an automated backup solution that either uses the CrashPlan Central server or any other ...0 comments |
- Install Corosync and Pacemaker On CentOS 6.5 : I will show you in this tutorial how to install your first cluster Corosync and the Linux Cluster Ma...0 comments |
- Install Power Commands 0.1.5 On Ubuntu 14.04/13.10/12.10/12.04
- 5 Android Apps that’s Going to Make Running Your Business Less Stressful
- Puppet agent Install Using Script
- Install Corosync and Pacemaker On CentOS 6.5
- Install Fail2Ban On Ubuntu Server 13.04/13.10
- How To Install Google Chrome in Fedora 20, 19, 18
- How to surf using Tor Browser Bundle
- New Games got Greenlit on Linux by Steam Today!
- Linux Basics: Zypper Usage On openSUSE
- GNOME’s 3.12 supports Google Cloud Print
This work by unixmen.com is licensed under a Creative Commons Attribution-NonCommercial-NoDerivs 3.0 Unported License.
Copyright © 2008-2013 Unixmen.com .
Maintained by Unixmen .