随笔分类 -  Linux使用

摘要:1Dennis Ritchie ---- C语言之父2 W.Richard Stevens -----国际知名的Unix和网络专家,《TCP/IP 详解》(三卷本),《UNIX网络编程》(两卷本)以及《UNIX环境高级编程》的作者 阅读全文
posted @ 2012-06-02 10:25 Jack204 阅读(367) 评论(0) 推荐(0)
摘要:Obtain the Apache HTTP server from the location listed above, and unpack it:gzip -d httpd-2_x_NN.tar.gztar -xf httpd-2_x_NN.tarLikewise, obtain and unpack the PHP source:gunzip php-NN.tar.gztar -xf php-NN.tarBuild and install Apache. Consult the Apache install documentation for more details on build 阅读全文
posted @ 2012-05-30 22:42 Jack204 阅读(384) 评论(0) 推荐(0)
摘要:1. Installing Apache + PHPApache is one of the most famous web server which runs on most linux based servers. With just few commands you can configure apache to run with PHP 4 or PHP 5.If you want to install PHP 4, justapt-get install apache2 php4 libapache2-mod-php4To install PHP5, just run the fol 阅读全文
posted @ 2012-05-30 22:42 Jack204 阅读(221) 评论(0) 推荐(0)
摘要:一、ORACLE的启动和关闭 1、在单机环境下要想启动或关闭ORACLE系统必须首先切换到ORACLE用户,如下su - oraclea、启动ORACLE系统oracle>svrmgrlSVRMGR>connect internalSVRMGR>startupSVRMGR>quitb、关闭ORACLE系统oracle>svrmgrlSVRMGR>connect internalSVRMGR>shutdownSVRMGR>quit启动oracle9i数据库命令:$ sqlplus /nologSQL*Plus: Release 9.2.0.1.0 阅读全文
posted @ 2012-04-30 20:08 Jack204 阅读(45252) 评论(0) 推荐(4)
摘要:为了加快启动,ubuntu使用的ash,所以在shell中直接用 sh *.sh 有时候会出现语法错误。因为ash只是bash的一个简化版可以显示的使用bash执行该脚本bash ×.sh在sh文件头部加入#!/bin/bash,然后将sh文件具有可执行权限,直接./*.sh 阅读全文
posted @ 2012-02-27 16:54 Jack204 阅读(3649) 评论(0) 推荐(0)
摘要:【转自】:http://ubuntu.uestc.edu.cn/Notes推荐使用域名http://ubuntu.dormforce.net代替http://ubuntu.uestc.edu.cn我们同时提供 Ubuntu 的ISO BT种子文件的下载End of Life (EOL) for each version: https://wiki.ubuntu.com/ReleasesSupport Email:contact@dormforce.netUbuntu 12.04 Precise PangolinISO BT Download-->ISO BT Download--> 阅读全文
posted @ 2012-02-21 22:06 Jack204 阅读(367) 评论(0) 推荐(0)
摘要:在linux的shell中,输入输出分为3部分:标准输入(stdin):代码为0,使用<或<<标准输出(stdout):代码为1,使用>或>>标准错误输出(stderr):代码为2,使用2>或2>>标准输出(stdout): 这个比较容易懂,1> 或者 > -------- 覆盖的方法将正确的数据输出到指定的文件或设备上。1>>或者>> ------ 累加的方法...比如:cat file1 > file2标准错误输出(stderr): 类似的:2> ------- 覆盖的方法...2> 阅读全文
posted @ 2011-11-13 16:44 Jack204 阅读(322) 评论(0) 推荐(0)
摘要:如何将shell script功能模块化,并且对外留出函数和参数接口。要写出这种高质量的模块化的东西,需要对要写的这一块的业务非常理解,知道哪些是通用的,哪些是不通用的。从而将其分离,废话不多说直接看一个我感觉很牛B的脚本。以下脚本的作用:我新写了一个内核device driver模块,下面的脚本是尝试将我的模块,加载模块,在/dev目录下创建结点+++删除文件,卸载模块。参数接口部分:#!/bin/bash# Sample init script for the a driver module <rubini@linux.it>DEVICE="scull"SE 阅读全文
posted @ 2011-11-01 17:26 Jack204 阅读(1727) 评论(0) 推荐(0)
摘要:Quoting a single character with the backslashYou can prevent the shell from interpreting a character by placing a backslash ("\") in front of it. Here is a shell script that can delete any files that contain an asterisk:echo This script removes all files thatecho contain an asterisk in the 阅读全文
posted @ 2011-11-01 14:35 Jack204 阅读(538) 评论(0) 推荐(0)
摘要:/proc/* ------ 映射了kernel中的一些信息。还有进程的信息。具体请看 【鸟哥私房菜 17.4.2】daemon/etc/init.d/* ----- 启动脚本放置处。系统上几乎所有的服务启动脚本都放置在这里。/etc/sysconfig/* ----- 各服务的初始化环境配置文件。比如/etc/sysconfig/syslog /etc/sysconfig/network/etc/xinetd.conf, /etc/xinetd.d ----- super daemon配置文件/etc/* ----- 系统的主要配置文件。/var/lib/* ----- 各服务产生的数据库。 阅读全文
posted @ 2011-10-16 15:48 Jack204 阅读(482) 评论(0) 推荐(0)