{"id":593,"date":"2024-11-12T21:54:37","date_gmt":"2024-11-12T13:54:37","guid":{"rendered":"https:\/\/blog.ttf2.cn\/?p=593"},"modified":"2024-11-12T21:54:37","modified_gmt":"2024-11-12T13:54:37","slug":"%e8%ae%b0%e4%b8%80%e6%ac%a1kali%e5%ae%89%e8%a3%85gvm%ef%bc%88openvas%ef%bc%89%e4%b8%adpostgres%e6%95%b0%e6%8d%ae%e5%ba%93%e7%89%88%e6%9c%ac%e9%94%99%e8%af%af","status":"publish","type":"post","link":"https:\/\/blog.ttf2.cn\/index.php\/2024\/11\/12\/%e8%ae%b0%e4%b8%80%e6%ac%a1kali%e5%ae%89%e8%a3%85gvm%ef%bc%88openvas%ef%bc%89%e4%b8%adpostgres%e6%95%b0%e6%8d%ae%e5%ba%93%e7%89%88%e6%9c%ac%e9%94%99%e8%af%af\/","title":{"rendered":"\u8bb0\u4e00\u6b21Kali\u5b89\u88c5GVM\uff08OpenVAS\uff09\u4e2dPostgres\u6570\u636e\u5e93\u7248\u672c\u9519\u8bef"},"content":{"rendered":"<h2>\u95ee\u9898\u63cf\u8ff0<\/h2>\n<p>\u5b89\u88c5GVM\u6267\u884c\u5b8cgvm-setup\u6210\u529f\u540e\u8fd0\u884cgvm-check-setup\u9519\u8bef\uff1a<\/p>\n<pre><code class=\"language-shell\">WARNING:  database &quot;postgres&quot; has a collation version mismatch DETAIL:  The database was created using collation version 2.37, but the operating system provides version 2.38. HINT:  Rebuild all objects in this database that use the default collation and run ALTER DATABASE postgres REFRESH COLLATION VERSION, or build PostgreSQL with the right library version.\n\nERROR: The Postgresql DB does not exist.\n\nFIX: Run &#039;sudo runuser -u postgres -- \/usr\/share\/gvm\/create-postgresql-database&#039;   ERROR: Your GVM-23.11.0 installation is not yet complete!<\/code><\/pre>\n<h2>\u89e3\u51b3\u65b9\u6cd5<\/h2>\n<ol>\n<li>\u8fdb\u5165Postgres CLI<code>sudo -u postgres psql<\/code><\/li>\n<li>\u91cd\u5efa\u4f7f\u7528\u9ed8\u8ba4\u6392\u5e8f\u89c4\u5219\u7684\u6240\u6709\u5bf9\u8c61<code>ALTER DATABASE postgres REFRESH COLLATION VERSION;<\/code><\/li>\n<li>\u91cd\u65b0check\u5373\u53ef\uff0c\u5b89\u88c5\u5b8c\u540e\u9700\u8981\u521b\u5efa\u4e00\u4e2a\u7528\u6237<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>\u95ee\u9898\u63cf\u8ff0 \u5b89\u88c5GVM\u6267\u884c\u5b8cgvm-setup\u6210\u529f\u540e\u8fd0\u884cgvm-check-setup\u9519\u8bef\uff1a WARNING:  &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/blog.ttf2.cn\/index.php\/2024\/11\/12\/%e8%ae%b0%e4%b8%80%e6%ac%a1kali%e5%ae%89%e8%a3%85gvm%ef%bc%88openvas%ef%bc%89%e4%b8%adpostgres%e6%95%b0%e6%8d%ae%e5%ba%93%e7%89%88%e6%9c%ac%e9%94%99%e8%af%af\/\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb<span class=\"screen-reader-text\">\u201c\u8bb0\u4e00\u6b21Kali\u5b89\u88c5GVM\uff08OpenVAS\uff09\u4e2dPostgres\u6570\u636e\u5e93\u7248\u672c\u9519\u8bef\u201d<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-593","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.ttf2.cn\/index.php\/wp-json\/wp\/v2\/posts\/593","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ttf2.cn\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ttf2.cn\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ttf2.cn\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ttf2.cn\/index.php\/wp-json\/wp\/v2\/comments?post=593"}],"version-history":[{"count":2,"href":"https:\/\/blog.ttf2.cn\/index.php\/wp-json\/wp\/v2\/posts\/593\/revisions"}],"predecessor-version":[{"id":595,"href":"https:\/\/blog.ttf2.cn\/index.php\/wp-json\/wp\/v2\/posts\/593\/revisions\/595"}],"wp:attachment":[{"href":"https:\/\/blog.ttf2.cn\/index.php\/wp-json\/wp\/v2\/media?parent=593"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ttf2.cn\/index.php\/wp-json\/wp\/v2\/categories?post=593"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ttf2.cn\/index.php\/wp-json\/wp\/v2\/tags?post=593"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}