Linux System
deepxl
这个作者很懒,什么都没留下…
展开
-
git php hook
WebHooks https://gitee.com/0. git.php hook php代码<?php//echo(shell_exec("whoami"));if(function_exists("exec")){ $dir = "/home/www/test2"; $giturl = "https://gitee.com/xxxx/test2.git"; #$cute = "cd $dir && git pull $giturl原创 2022-04-15 17:37:00 · 3048 阅读 · 0 评论 -
centos 常用的网络登录端口测试工具
ssh 登录lastlastbwhouserswlastlogac -dac -plsoflsof -i:443ngrepngrep port 80ngrep -q '^GET .* HTTP/1.[01]'ngrep -q -d eth0 -W byline port 80 or port 8089 or port 11211 or port 443tcpdumpsudo /usr/sbin/tcpdump -s 0 -X 'tcp dst原创 2022-04-01 16:42:27 · 1684 阅读 · 0 评论 -
docker 中 mysql 5.7 8.0 消耗内存大问题办法
1.Docker 中修改 docker-compose.yamlversion: '3'services: mysql: container_name: mysql5.7 image: mysql:5.7.33 ports: - "3306:3306" environment: MYSQL_ROOT_PASSWORD: "123456" MYSQL_USER:原创 2022-02-13 22:53:24 · 1612 阅读 · 0 评论 -
在 wget 时去掉 –no-check-certificate 参数
1. 在 wget 时去掉 –no-check-certificate 参数2. 如果遇到 “wget … not trusted …” 这种报错,不要使用 no-check-certificate 这个参数,。3.正确的解决方法是:yum install -y ca-certificates原创 2021-12-24 13:14:53 · 1925 阅读 · 0 评论 -
Linux设置开机自动启动的方法
方法1 设置rc.localls -al /etc/rc5.d/S99local 看下S99local究竟指向的是/etc/rc.local还是/etc/rc.d/rc.local。 如果是/etc/rc.d/rc.local,就自己ln -sf /etc/rc.d/rc.local /etc/rc.local 如果ls -l /etc/rc.local...原创 2019-12-21 13:21:21 · 472 阅读 · 0 评论 -
nginx 服务器图片找不到跳到默认图片或其他地方
nginx 服务器图片找不到跳到默认图片或其他地方#没有找到的话跳默认图片 404#没有找到的话去其他地方找 not fond !-f $request_filename #for test location /uploads/ { #在路径 uploads 下的设置 #error_page 404 = https://...原创 2019-12-09 17:44:28 · 1402 阅读 · 0 评论 -
Linux---Swap
I need additional swap space to improve my Linux server/desktop system performance. How do I add a swap file to Linux system using command line options without creating a new partitions?In Linux转载 2015-02-03 14:15:39 · 796 阅读 · 0 评论 -
iptable中snat和masquerade的区别
IPtables中可以灵活的做各种网络地址转换(NAT) 网络地址转换主要有两种:SNAT和DNATSNAT是source network address translation的缩写即源地址目标转换 比如,多个PC机使用ADSL路由器共享上网 每个PC机都配置了内网IP PC机访问外部网络的时候,路由器将数据包的报头中的源地址替换成路由器的ip 当外部网络的服务器比如网站web服务器接到转载 2015-07-18 14:57:08 · 1719 阅读 · 0 评论