zoukankan      html  css  js  c++  java
  • 删干净post

    首先确保postgresql是否在运行,在命令窗口输入 netstat -nlt

    复制代码
    han@han-OptiPlex-7050:~/project/0_ng_practice/ng-test$ netstat -nlt
    激活Internet连接 (仅服务器) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:63342 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:8081 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:5939 0.0.0.0:* LISTEN tcp 0 0 127.0.1.1:53 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:1080 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:6942 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:4200 0.0.0.0:* LISTEN tcp6 0 0 ::1:631 :::* LISTEN
    复制代码

    如果在运行,默认的5432端口就能被监听到,请运行 sudo service postgresql stop 暂停服务。

    在命令行输入 

    sudo apt-get --purge remove postgresql

    删除postgresql安装包,安装删除后还有删除对应的配置

    sudo rm -r /etc/postgresql/
    sudo rm -r /etc/postgresql-common/
    sudo rm -r /var/lib/postgresql/
    sudo userdel -r postgres
    sudo groupdel postgres

    到此,postgresql就从电脑中完全删除了.

  • 相关阅读:
    SDK安装教程
    appscan下载
    app测试-兼容性测试与云测试技术
    app测试之耗电量测试
    App测试1-App测试概述
    app测试2--monkey稳定性测试
    app测试1--常用adb命令
    常用dos命令
    jmeter(二)脚本录制
    jmeter基础介绍
  • 原文地址:https://www.cnblogs.com/originalTblog/p/11732761.html
Copyright © 2011-2022 走看看