zoukankan      html  css  js  c++  java
  • 关于几个小错误

    MySQL

    ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: N O)

    解决方法:

    打开命令提示符


    Step 1:

    C:Program FilesMySQLMySQL Server 5.0in>mysql -u root -p
    Enter password: ******
    Welcome to the MySQL monitor. Commands end with ; or g.
    Your MySQL connection id is 28 to server version: 5.0.24a-community-nt

    Type 'help;' or 'h' for help. Type 'c' to clear the buffer.

    Step 2:
    C:Program FilesMySQLMySQL Server 5.0in>mysql
    mysql>status

    正常使用....

    Apache

    apache虽然能运行,但是看见error.log中有httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168. x. x for ServerName这个错误,想看看是否有其他占用了80端口

    开始--运行--cmd 进入命令提示符 输入netstat -ano 即可看到所有连接的PID 之后在任务管理器中找到这个PID所对应的程序如果任务管理器中没有PID这一项,可以在任务管理器中选"查看"-"选择列"

    经常,我们在启动应用的时候发现系统需要的端口被别的程序占用,如何知道谁占有了我们需要的端口,很多人都比较头疼,下面就介绍一种非常简单的方法,希望对大家有用

    假如我们需要确定谁占用了我们的80端口

    1、Windows平台
    在windows命令行窗口下执行:
    C:/>netstat -aon|findstr "80"
    TCP     127.0.0.1:80         0.0.0.0:0               LISTENING       2448
    看到了吗,端口被进程号为2448的进程占用,继续执行下面命令:
    C:/>tasklist|findstr "2448"
    thread.exe                     2016 Console                 0     16,064 K
    很清楚吧,thread占用了你的端口,Kill it
    如果第二步查不到,那就开任务管理器,看哪个进程是2448,然后杀之即可。

    如果需要查看其他端口。把 80 改掉即可补充:原来出现这个错误 原因(httpd.exe: Could not reliably determine the server's fully qualified domain name, using 192.168.1.111 for ServerName)是因为DNS没配置好. 如果不想配置DNS, 就在httpd.conf , 在最前加入 ServerName localhost:80 即可

     以上为网络搜素综合所得,只是汇聚,互相学习。

    是为参考,立此存照。

    来源:

    关于mysql:http://blog.sina.com.cn/s/blog_586a1f3e01000b82.html

    关于apache:http://blog.csdn.net/auto_ptr/article/details/6237580

  • 相关阅读:
    Metasploit advanced命令使用技巧
    Metasploit命令info使用技巧
    Kali Linux 2020.1b发布了
    设置USB无线网卡为监听模式大学霸IT达人
    解决ifconfig命令未找到
    Metasploit新增技巧提示功能
    Wireshark运算符!=无法正常工作
    解决Kali Linux XFCE桌面Tab无法补全
    Nessus更新到8.9.1
    ASP入门(七)-Response小案例
  • 原文地址:https://www.cnblogs.com/w-five/p/3760218.html
Copyright © 2011-2022 走看看