LinuxÏÂHTTP·þÎñÆ÷µÄ´î½¨
LinuxÏÂHTTP·þÎñÆ÷µÄ´î½¨
Linux Ï°²×°Tomcat 6µÄ²½ÖèÈçÏ¡£
£¨1£©µ½apacheÍøÕ¾ÏÂÔØTomcatÎļþ apache-tomcat-6.0.18.tar.gz¡£
£¨2£©ÔÚ/usrĿ¼Ï½¨Á¢TomcatĿ¼¡£
£¨3£©½âѹapache-tomcat-6.0.18.tar.gz Îļþ¡£
#tar -xvzf apache-tomcat-6.0.18.tar.gz
£¨4£©ÐÞ¸Äetc/profile Îļþ£¬ÔÚ×îºó¼ÓÈëÈçÏ´úÂë¡£
export TOMCAT_HOME=/usr/tomcat
£¨5£©Èç¹ûÐèҪʹÓÃmanager¹¦ÄÜ£¬ÐèÐÞ¸ÄTomcat_HOME/conf/tomcat-users.xml Îļþ£¬¼ÓÈ룺
<role rolename="manager"/> <user username="admin" password="123" roles="manager"/>
£¨6£©Æô¶¯Tomcat£¬ÃüÁîÐз½Ê½¸Ä±äµ½°²×°Ä¿Â¼£¬ÔËÐÐÒÔÏÂÃüÁî¡£
./catalina.sh run //Æô¶¯Tomcat, ¿ØÖÆ̨ ./catalina.sh start //Æô¶¯tomcat, ÎÞ¿ØÖÆ̨ ./startup.sh //Æô¶¯tomcat, ÎÞ¿ØÖÆ̨
£¨7£©¹Ø±ÕTomcat£¬Ö´ÐÐ./shutdown.sh »òÕß ./catalina.sh stop¡£
£¨8£©²âÊÔTomcat°²×°ÊÇ·ñ³É¹¦¡£
http://localhost:8080
Ïà¹ØÎĵµ£º
Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖÐÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀÐÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......
Linux Ï°²×°QQ
1. download qq:
µ½QQ¹Ù·½ÉÏÏÂÔØLinux°æ±¾µÄQQ£¬ÓÐtar.gzºÍrpmµÈ¸ñʽ¡£
½¨ÒéÏÂÔØtar.gz¸ñʽµÄ¡£ ......
errno
ÊǸöint±äÁ¿£¬·µ»Ø´íÎó
ÓдíÎóʱʹÓ÷½·¨
fprintf(fp, "%s", strerror(errno))
perrorÓ÷¨
#include <stdio.h>
#include <stdlib.h>
#include<errno.h>
int main(void)
{
FILE *fp;
if((fp=fopen("aaa.txt","r+"))==NULL)
{
puts("²»ÄܽøÈ ......
¶¨Ê±Ö´ÐÐcrontabʹÓ÷½·¨Ïê½â
¡¡¡¡Ê¹Ó÷½Ê½:
¡¡¡¡crontab [ -u user ] filecrontab [ -u user ] { -l | -r | -e }
¡¡¡¡ËµÃ÷:
¡¡¡¡crontab ÊÇÓÃÀ´ÈÃʹÓÃÕßÔڹ̶¨Ê±¼ä»ò¹Ì¶¨¼ä¸ôÖ´ÐгÌʽ֮ÓÃ,»»¾ä»°Ëµ,Ò²¾ÍÊÇÀàËÆʹÓÃÕßµÄʱ³Ì±í¡£-u user ÊÇÖ¸É趨ָ¶¨ user
µÄʱ³Ì±í,Õâ¸öÇ°ÌáÊÇÄã±ØÐëÒªÓÐÆäȨÏÞ(±ÈÈç˵ÊÇ root)²ÅÄ ......
¸Õ¿ªÊ¼Ñ§Linux£¬¿´µ½ÄÇЩ·×·±¸´ÔÓµÄĿ¼ÕæÊǸоõÓеãÊÖ×ãÎ޴룬ÏÖÔÚ×ÜËãÖªµÀ×Ô¼ºµÄÈí¼þÓ¦¸Ã×°ÔÚ/usrĿ¼Ï£¬ºÇºÇ¡«¡«
ÏÂÃæÊǸ÷¸öĿ¼µÄ˵Ã÷£º
/bin
¸ÃĿ¼Öдæ·ÅLinuxµÄ³£ÓÃÃüÁÔÚÓеİ汾ÖÐÊÇһЩºÍ¸ùĿ¼ÏÂÏàͬµÄĿ¼¡£
/boot
¸ÃĿ¼Ï´æ·ÅµÄ¶¼ÊÇϵͳÆô¶¯Ê±ÒªÓõ½µÄ³ÌÐò£¬µ±ÓÃliloÒýµ¼Linuxʱ£¬»áÓõ½Õâ ......