linux
前行之路
一个一心想改变世界的人,最后却被世界改变了。
展开
-
查看进程和端口使用情况
1、先查看进程pid ps -ef | grep 进程名 ps -ef | grep nginx 2、通过pid查看占用端口 netstat -nap | grep 端口 netstat -nap | grep 3306原创 2020-06-01 14:13:23 · 220 阅读 · 0 评论 -
查看开启的服务,并关闭
netstat -ntlp 关闭服务 kill -9 pid原创 2020-04-20 17:07:47 · 159 阅读 · 0 评论 -
linux快速查询文件下含有特定字符的方法
find -type f -name '*.html'|xargs grep字符串 或者直接grep -r 字符串原创 2020-04-20 10:07:53 · 634 阅读 · 0 评论 -
JS验证输入数据为数字
var c="^([0-9])[0-9]*(\\.\\w*)?$"; //数字和一位小数点数字 test.test(num) parseFloat(num.toFixed(1)) //转成想要的几位小数点原创 2020-01-03 11:25:22 · 354 阅读 · 0 评论 -
nginx配置站点出现Access Denied怎么解决
修改/usr/local/php/etc/php-fpm.conf,找到security.limit_extensions把他修改为: security.limit_extensions=.php .html .js .css .jpg .jpeg .gif .png .htm#(常用的文件扩展名) 重启php-fpm 就行了 停止命令 pkill php-fpm 重启 php-fpm ...原创 2019-11-07 15:24:21 · 1146 阅读 · 0 评论 -
mysql 1130问题解决
总体运行语句: mysql -u root -p mysql>use mysql; mysql>select 'host' from user where user='root'; mysql>update user set host = '%' where user ='root'; mysql>flush privileges; mysql>sel...原创 2019-10-30 14:55:51 · 270 阅读 · 0 评论 -
新配置的服务器开放3306端口
查看防火墙规则: iptables-nL 若防火墙拦截了3306端口,请您执行以下命令放通3306端口: iptables-IINPUT-ptcp--dport3306-jACCEPT原创 2019-10-28 11:23:44 · 881 阅读 · 0 评论