linux
前行之路
一个一心想改变世界的人,最后却被世界改变了。
展开
-
查看进程和端口使用情况
1、先查看进程pidps -ef | grep 进程名ps -ef | grep nginx2、通过pid查看占用端口netstat -nap | grep 端口netstat -nap | grep 3306原创 2020-06-01 14:13:23 · 230 阅读 · 0 评论 -
查看开启的服务,并关闭
netstat -ntlp关闭服务kill -9 pid原创 2020-04-20 17:07:47 · 163 阅读 · 0 评论 -
linux快速查询文件下含有特定字符的方法
find -type f -name '*.html'|xargs grep字符串或者直接grep -r 字符串原创 2020-04-20 10:07:53 · 646 阅读 · 0 评论 -
JS验证输入数据为数字
var c="^([0-9])[0-9]*(\\.\\w*)?$"; //数字和一位小数点数字test.test(num)parseFloat(num.toFixed(1)) //转成想要的几位小数点原创 2020-01-03 11:25:22 · 359 阅读 · 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 · 1177 阅读 · 0 评论 -
mysql 1130问题解决
总体运行语句:mysql -u root -pmysql>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 · 278 阅读 · 0 评论 -
新配置的服务器开放3306端口
查看防火墙规则:iptables-nL若防火墙拦截了3306端口,请您执行以下命令放通3306端口:iptables-IINPUT-ptcp--dport3306-jACCEPT原创 2019-10-28 11:23:44 · 902 阅读 · 0 评论