curl -l -H "Content-type: application/json" -X POST -d '[{"a":"2"},{"b":"2"},{"c":"31"}]' http://192.168.1.200:8101/api/host/tag?uid=20\&host=wangdeiMac.local
由于url中有&其他参数获取不到,在linux系统中 &会使进程系统后台运行 必须对 &进行下转义才能 $_GET获取到所有参数 curl -s http://mywebsite.com/index.php?a=1\&b=2\&c=3
为当前用户创建cron服务
-
键入 crontab -e 编辑crontab服务文件
例如 文件内容如下:
*/2 * * * * /bin/sh /home/admin/jiaoben/buy/deleteFile.sh
保存文件并并退出
echo “hello” > /dev/udp/127.0.0.1/8125
nc -l -u 8188
<?php
//设置post的数据
$post = array (
'input' => '[email protected]',
'password' => '1234qwer',
'rememberPassword' => true,
'encode' => false,
'labelKey' => 'ci',
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
centos 安装 php5.6,安装前需要先安装数据库和apache | |
安装 apache2.4 | |
安装基础依赖: | |
# yum install gcc gcc-c++ glibc glibc-devel gd gd-devel zlib zlib-devel libtool-ltdl-devel flex autoconf automake | |
apache 需要依赖apr 和 apr-util、apr-iconv、pcre | |
所以还需要先安装 apr和apr-util、apr-iconv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iptables是linux下的防火墙,同时也是服务名称。 | |
service iptables status 查看防火墙状态 | |
service iptables start 开启防火墙 | |
service iptables stop 关闭防火墙 | |
service iptables restart 重启防火墙 | |
防火墙开放特定端口: | |
①文件/etc/sysconfig/iptables | |
②添加: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nohup command > myout.file 2>&1 & |
[Software: ncurses] I | 2017-03-24T17:54:19+08:00 | Dirtied the cache
[Software: zlib] I | 2017-03-24T17:54:19+08:00 | Building because `preparation' dirtied the cache
[NetFetcher: zlib] I | 2017-03-24T17:54:19+08:00 | Cleaning project directory `/var/cache/omnibus/src/zlib'
[NetFetcher: zlib] I | 2017-03-24T17:54:19+08:00 | Extracting `/var/cache/omnibus/cache/zlib-1.2.8.tar.gz' to `/var/cache/omnibus/src/zlib'
[Builder: zlib] I | 2017-03-24T17:54:19+08:00 | Starting build
[Builder: zlib] I | 2017-03-24T17:54:19+08:00 | Writing license file from https://gist.githubusercontent.com/remh/77877aa00b45c1ebc152/raw/372a65de9f4c4ed376771b8d2d0943da83064726/zlib.license to /opt/datadog-agent/licenses/zlib/zlib.license
[Builder: zlib] I | 2017-03-24T17:54:22+08:00 | Adding License: 'https://gist.githubusercontent.com/remh/77877aa00b45c1ebc152/raw/372a65de9f4c4ed376771b8d2d0943da83064726/zlib.license': 2.4888s
[Builder: zlib] I | 2017-03-24T17:5