Recent content by gdf

  1. G

    nginx file downloading

    Help! rate:200kb/s file downloading from my nginx server. url: blabla.com/filename.tar.gz version: 1.20.2 Why not Mb/s or faster? Configuration default! Thank you !
  2. G

    Does a holefile take up disk space?

    Thanks for useful links! Maybe I know how filehole work...
  3. G

    Does a holefile take up disk space?

    Yeah! By using system call : truncate(fd,length). I do not know how to check how much space actually allocated to the File Hole!
  4. G

    Does a holefile take up disk space?

    I touched a holefile using the truncate function,the length of file is 1G. however,df command does not show as old space usage - 1G, it does not chang at all. Could anybody make it clear? Thank you!
  5. G

    SSH Security of Centos System

    I've closed port 22 by firewall-cmd,why hackers could hack into my server through port 22? They are trying<_<.My control panel shows that! And someone succeeded! How can I stop these guys? Best Wishes!
  6. G

    Identical laptop's ip seen from Different servers

    Clear! I've checked every day.addresses did vary even from the same ISP!
  7. G

    Identical laptop's ip seen from Different servers

    I use my laptop log in different vps by ssh,while the last ip in /var/log/secure differs a lot, Could sb help me? Thank you!
  8. G

    Why parent and son not mixed?

    1 #include <stdio.h> 2 #include <unistd.h> 3 #include <stdlib.h> 4 5 int main(int argc,char * argv[]){ 6 pid_t pid = fork(); 7 int i; 8 int count = atoi(argv[1]); 9 if(argc != 2){ 10 printf("usage:%s <loops>\n",argv[0]); 11...
  9. G

    Why parent and son not mixed?

    int main(){ 4 pid_t pid = fork(); 5 int i; 6 setbuf(stdout,NULL); 7 if(pid == 0){ 8 for(i = 0;i < 10;i++){ 9 printf("AA"); 10 } 11 sleep(1); 12 exit(0); 13...
Top