ÈçÌ⣬±¾ÈËÐÂÊÖ£¬Çë´ó¼Ò¶àÖ¸½Ì£¡
1.linuxµÄÇý¶¯³ÌÐòÈçºÎµ÷Óö¯Ì¬Á¬½Ó¿â?
2.Õâ¸ö¶¯Ì¬Á¬½Ó¿â¸ÃÔõô±àд£¿ÓÐÌض¨µÄ±àд¹æÔò?ÈçºÎ±àÒëÕâ¸ö¿â£¿ÊDz»ÊÇÖ¸Ó¦ÓòãµÄ¶¯Ì¬Á¬½Ó¿â.soÄÇÖÖ£¿
3.ÈçºÎ±àÒëµ÷Óö¯Ì¬¿âµÄÇý¶¯³ÌÐò£¿
ÏÈллÁË£¡
Èç¹ûÕâ¸öÎÊÌâÊǸöÀÏÎÊÌ⣬Âé·³¸ßÊÖ¸ø¸öÍøÖ·£¬ÎÒʵÔÚÊÇÕÒÁ˺ܾö¼Ã»ÕÒµ½ÓÐ ......
ÎҵĻ·¾³£º
Red Hat Enterprise Linux ES release 4
tomcat5.5
jdk1.6
ÏÖÔÚ¿½±´tomcat binϵÄcatalina.sh µ½/etc/rc.d/init.dÖв¢ÇÒ´æΪtomcat£¬ÉèÖÃȨÏÞΪ777
²¢¼ÓÁË
# chkconfig: 2345 63 37
# description: tomcat server init script
JAVA_HOME=/usr/local/jdk1.6.0_16
CATALINA_HOME= ......
ÿ´Î±à¼ÍêÒ»¸ö³ÌÐò£¬±àÒëºóÔÙls²é¿´¶¼¿´µ½Ã¿¸öÍ·ÎļþºÍÔ´Îļþ¶¼ÓÐÒ»¸öÏàͬÃû×ÖµÄÎļþ£¬¾Í¶àÁ˸ö~¡£ÇëÎÊÕâ¸öÊÇʲôÒâ˼£¿
±¸·ÝÎļþ
vim»òÕßEmacs×Ô¶¯Éú³ÉµÄ±¸·ÝÎļþ£¬Í¨³£±£´æÄãÎļþµÄÇ°Ò»¸ö°æ±¾¡£
......
#include <semaphore.h>
#include <unistd.h>
#include <stdio.h>
#include <fcntl.h>
void print(pid_t pid);
sem_t *sem;/*¶¨ÒåposixÓÐÃûÐźŵÆ*/
int val;/*¶¨ÒåÐźŵƵ±Ç°Öµ*/
int main(int argc,char *argv[])
{
int n=0;
if(argc!=2)
{ ......
Çë½Ì¸÷λ£¡
ÎÒÔÚwindowsÉÏ×öÁËÒ»¸örun.jarÎļþ¡£Ë«»÷¿ÉÕý³£ÔËÐС£
ËæºóÎÒ°Ñrun.jar ·Åµ½Á˹«Ë¾µÄ·þÎñÆ÷ÉÏ£¨ÊÇLinuxƽ̨), ÔÚ·þÎñÆ÷µÄÖÕ¶ËÖ´ÐÐ Java -jar run.jar
Ö´ÐÐÕý³££¬¿ÉÕâ¸ö³ÌÐòʱһ¸öÑ»·³ÌÐò¡£ÒµÎñÂß¼ÐèÒªÆäÒ»Ö±ÔËÐÐÏÂÈ¥¡£
ÓÉÓÚ·þÎñÆ÷ÔÚ»ú·¿£¬Ö»ÄÜÔ¶³Ì²Ù×÷·þÎñÆ÷¡£ËùÒÔÓÃÁËsshÔ¶³Ì¹¤ ......
ÔÚarm linux»·¾³ÏÂÓÐÁ½¸öÎÊÌâÇë½Ì´ó¼Ò£º
1.ÏëÈÃÒ»¸öָʾµÆÔÚÓ²ÅÌÓжÁд²Ù×÷µÄʱºòÉÁ˸¡£±ÈÈçÁ¬ÐøfwriteÓ²ÅÌÎļþʱ£¬ÈÃָʾµÆ¿ªÆôÉÁ˸£¬¿ÉÊÇÈçºÎÅжÏfwrite½áÊø£¬ÈÃָʾµÆÍ£Ö¹ÉÁ˸ÄØ?ÐèÒªÔÚÇý¶¯Öиù¾ÝÓ²Å̵Ä״̬¼Ä´æÆ÷Åжϣ¬»¹ÊÇÖ±½ÓÔÚÉϲãÖиù¾ÝfwriteÖ®ÀàµÄ·µ»ØÖµÅжÏÄØ¡£Á¬Ðøwrite»òÕßreadʱÔõô¿ØÖÆÄØ£¿
2.¹Ø»úÇ°£ ......