qiuri2008

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2018年4月28日

摘要: 今天需要在本地测试系统功能,因为本地没有数据库,就需要在程序里面连接远程数据库; #登录数据库mysql -hlocalhost -uroot -p; 先用ssh登录远程服务器,用root连上数据库看看情况; mysql> select Host,User,Password from mysql.u 阅读全文
posted @ 2018-04-28 15:28 江召伟 阅读(290) 评论(0) 推荐(0) 编辑

摘要: 1.使用lsof lsof -i:端口号,如:lsof -i:8080 查看某个端口是否被占用 2.使用netstat 使用netstat -anp|grep 80 3 、# netstat -nltp p 查看端口挂的程序 看到 查询的有Local、Address、Foregin、Program 阅读全文
posted @ 2018-04-28 14:55 江召伟 阅读(2100) 评论(0) 推荐(0) 编辑