{"id":56599,"date":"2023-06-30T14:19:13","date_gmt":"2023-06-30T06:19:13","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=56599"},"modified":"2023-06-30T14:19:13","modified_gmt":"2023-06-30T06:19:13","slug":"ubuntu-pgadmin-postgresql","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/ubuntu-pgadmin-postgresql.html","title":{"rendered":"\u5982\u4f55\u5728UBUNTU 16.04\u4e0a\u5b89\u88c5\u684c\u9762\u6a21\u5f0f\u4e2d\u7684PGADMIN 4"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\nPgAdmin 4\u662fPostgreSQL\u6570\u636e\u5e93\u6d41\u884c\u7684pgAdmin3\u7ba1\u7406\u5de5\u5177\u7684\u91cd\u5199\u3002PgAdmin\u662fPostgreSQL\u9886\u5148\u7684\u56fe\u5f62\u5316\u5f00\u6e90\u7ba1\u7406\uff0c\u5f00\u53d1\u548c\u7ba1\u7406\u5de5\u5177\u3002\u4e0b\u9762\u6211\u54e6\u7b80\u5355\u7684\u8bf4\u8bf4\u600e\u4e48\u5728UBUNTU 16.04\u4e0a\u5b89\u88c5PGADMIN 4\u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"\"<\/p>\n

\u6b65\u9aa41.\u5b89\u88c5\u5b89\u88c5\u5305<\/strong><\/div>\n
# sudo apt-get install build-essential libssl-dev libffi-dev libgmp3-dev virtualenv python-pip libpq-dev python-dev<\/pre>\n
\u6b65\u9aa42.\u521b\u5efa\u865a\u62df\u73af\u5883<\/strong><\/div>\n
# cd \/opt\/\r\n# mkdir enviromentpy\r\n# cd enviromentpy\/\r\n# virtualenv pgadmin4\r\n# cd pgadmin4\r\n# source bin\/activate<\/pre>\n
\u6b65\u9aa43.\u4e0b\u8f7d\u5e76\u5b89\u88c5PGAdmin 4<\/strong><\/div>\n
# wget https:\/\/ftp.postgresql.org\/pub\/pgadmin\/pgadmin4\/v1.3\/pip\/pgadmin4-1.3-py2.py3-none-any.whl\r\n# pip install pgadmin4-1.3-py2.py3-none-any.whl<\/pre>\n
\u6b65\u9aa44.\u521b\u5efaPGAdmin 4\u7684\u672c\u5730\u914d\u7f6e\u6587\u4ef6<\/strong><\/div>\n
# cd \/lib\/python2.7\/site-packages\/pgadmin4\r\n# touch config_local.py<\/pre>\n

\u7f16\u8f91config_local.py\u5e76\u6dfb\u52a0\u4efb\u4f55\u6240\u9700\u7684\u914d\u7f6e\u9009\u9879\uff08\u4f7f\u7528config.py\u6587\u4ef6\u4f5c\u4e3a\u53c2\u8003 - config_local.py\u4e2d\u91cd\u590d\u7684\u4efb\u4f55\u8bbe\u7f6e\u5c06\u8986\u76d6config.py\u4e2d\u7684\u8bbe\u7f6e\uff09\u3002 \u8981\u5c06PGAdmin 4\u914d\u7f6e\u4e3a\u5728\u5355\u7528\u6237\u6a21\u5f0f\u4e0b\u8fd0\u884c\uff0c\u8bf7\u6dfb\u52a0\u4ee5\u4e0b\u884c\uff1a<\/p>\n

# echo \"SERVER_MODE = False\" >> lib\/python2.7\/site-packages\/pgadmin4\/config_local.py<\/pre>\n
\u6b65\u9aa44.\u8fd0\u884cPGAdmin 4<\/strong><\/div>\n
# python lib\/python2.7\/site-packages\/pgadmin4\/pgAdmin4.py\r\n.\r\n Enter the email address and password to use for the initial pgAdmin user account:\r\n\r\n        Email address: lotfi@yallalabs.com<\/pre>\n

\u60a8\u5c06\u63d0\u793a\u5b83\u6dfb\u52a0\u4e00\u4e2a\u7535\u5b50\u90ae\u4ef6\u5730\u5740\u548c\u5bc6\u7801\u6765\u8bbf\u95eePGAdmin 4\uff0c\u73b0\u5728\u8bbf\u95eehttp\uff1a\/\/ localhost\uff1a5050\u5e76\u8fde\u63a5\u60a8\u7684PostgreSQL\u670d\u52a1\u5668\u3002<\/p>\n

\n

\u539f\u521b\u5730\u5740\uff1ahttp:\/\/lrxjmw.cn\/ubuntu-pgadmin-postgresql.html<\/a>\u7f16\u8f91\uff1a\u51af\u742a\uff0c\u5ba1\u6838\u5458\uff1a\u9004\u589e\u5b9d<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u5bfc\u8bfb PgAdmin 4\u662fPostgreSQL\u6570\u636e\u5e93\u6d41\u884c\u7684pgAdmin3\u7ba1\u7406\u5de5\u5177\u7684\u91cd\u5199\u3002PgAdmin\u662fPo […]<\/p>\n","protected":false},"author":63,"featured_media":56602,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-56599","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/56599","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=56599"}],"version-history":[{"count":7,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/56599\/revisions"}],"predecessor-version":[{"id":276235,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/56599\/revisions\/276235"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/56602"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=56599"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=56599"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=56599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}