摘要: 解决办法: 做以下3个修改 1. /etc/sysctl.conf 文件中的 net.ipv4.conf.all.rp_filter 设置成0 2. sysctl -w net.ipv4.conf.all.rp_filter=0 3. echo "0">/proc/sys/net/ipv4/conf 阅读全文
posted @ 2019-06-13 13:52 jiexianzhu 阅读(6071) 评论(1) 推荐(0) 编辑
摘要: 在test.c中写如下代码: 1 #include <stdio.h> 2 3 int main() 4 { 5 printf("line:%d\n", __LINE__); 6 return 0; 7 } 使用gcc编译 gcc -o test test.c 执行 ./test 结果 line:5 阅读全文
posted @ 2019-01-15 21:42 jiexianzhu 阅读(3303) 评论(0) 推荐(0) 编辑