Çë½Ìlinux×é²¥ÎÊÌâ¡£ - Linux/UnixÉçÇø / ³ÌÐò¿ª·¢Çø
Îҵİå×ÓÓÃǶÈëʽlinuxϵͳ·¢ËÍ×é²¥°ü¸øÎÒPCÐéÄâ»úµÄlinux£¬ÐéÄâ»úµÄlinux¿ÉÒÔ½ÓÊÕµ½£¬µ«ÊÇͬÑùµÄ³ÌÐò£¬ÓÃÐéÄâ»úµÄlinux·¢ËÍ£¬Ç¶ÈëʽlinuxÈ´½ÓÊÕ²»µ½£¬¾ßÌå±íÏÖΪ×èÈûÔÚrecvfromº¯Êý¡£
´óÖÂÒѾ¿ÉÒÔÅųýµÄÎÊÌ⣺
1¡¢ÍøÂç¡¢½»»»»úµÈÎÊÌ⣬2̨É豸֮¼äÖ±½ÓÓÃÍøÏßÏàÁ¬£¬²»¾¹ýÈκÎÖмäÉ豸¡£
2¡¢Ç¶ÈëʽlinuxÄÚºËÎÊÌ⣬Äں˱àÒëʱÎÒÒѾѡÉÏÖ§³Ömulticast£¬¶øÇÒǶÈëʽlinuxÄÜ·¢³ö×é²¥°ü˵Ã÷ÄÚºËÆðÂëÔÚÒ»¶¨³Ì¶ÈÉϿ϶¨Ö§³Ö×é²¥ÁË£¬µ«²»ÖªµÀÊÇ·ñ»¹ÓÐÆäËûÑ¡ÏîÐèҪѡ£¿
ÒÔÏÂÊdzÌÐò£º
½ÓÊն˳ÌÐò
-----------------
#include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/time.h>
#include <signal.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <memory.h>
#define PORT 9000
#define MultiAddr "224.0.1.1"
int main(void)
{
struct ip_mreq command;
int loop = 1;
int ttl=128;
int iter = 0;
int sin_len;
char message[256];
int socket_descriptor;
struct sockaddr_in sin;
memset(&sin, 0, sizeof(sin));
sin.sin_family = AF_INET;
sin.sin_port = htons(PORT);
if((socket_descriptor = socket(AF_INET, SOCK_DGRAM, 0)) == -1)
{
perror("socket");
Ïà¹ØÎÊ´ð£º
Á½¸öÎļþ1.PC£¬1.inc
1.PCÓвÙ×÷oracleÊý¾Ý¿âµÄ ,1.incÒ²ÓвÙ×÷oracleÊý¾Ý¿â
ÔÚÆäËûÊý¾ÝÖÐÈçinformix ÖÐ$include 1.inc¾Í¿ÉÒÔʹÓÃÁË
ÔÚORACLEÊý¾Ý¿âÖØ $include 1.inc²»¿ÉÓà EXEC SQL include 1.incÒ²²»¿É ......
ÎÒµÄÏîÄ¿ËùÔڵĻ·¾³ÊÇphp+apache+linux
ÏÖÎÒÖØÆô·þÎñÊÇ service httpd restart
ÏÖÎÒÏ붨ʱÖØÆô´ËÏî·þÎñ£¨¶¨ÔÚÿÌìÏÂÎç4µã£© ÔõôʵÏÖѽ£¬¶àл
crontab
* 16 * * * service httpd restart
ѧϰ + d ......
ÔÚLinuxÉÏÖ´ÐÐrenameº¯Êýʧ°Ü£¬·µ»ØµÄ´íÎóÂëerrnoÊÇ2£¬ÕâÊÇÓÉÓÚʲôÔÒòµ¼ÖµĴíÎó°¡£¬ÊÇÔÚRedHatµÄ»úÆ÷ÉÏ
ÓÃperrorÊÔÊÔ¡¢¡¢¿´¿´Êä³öµÄ´íÎó×Ö·û´®ÊÇʲô¾ÍÇå³þÁË¡¢¡¢
ÒòΪÊDz¿Êðµ½ÏÖÍøµÄ³ÌÐò²»ÄÜËæ±ã¸Ä´úÂë£¬Ò ......
ÔÚubuntuÉϴÁË·þÎñÆ÷£¬¸ùĿ¼Ϊ/var/www£¬Ê¹ÓÃphp½Å±¾ÔÚ/var/www/htmlÎļþ¼ÐÏÂÉú³ÉÁËÎļþ¼ÐºÍÎļþ£¬Éú³ÉµÄ¸ñʽÊÇ/var/www/html/123456/sss.html£¬Éú³Éºó²é¿´htmlÎļþ¼ÐµÄȨÏÞÊÇwww-data£¬ÎÒÖ´ÐÐphpµÄɾ³ý½Å±¾µÄʱ ......