一般情况一句话即可:gcc -o fuck fuck.c./fuck 直接运行了问题1. 报错 ld 未找到此时,gcc编译得分布来,并且指定特定的ldgcc -c 1.c //会在目录下生成一个文件 1.o/usr/bin/ld -dynamic-linker /lib/ld-linux.so.....
分类:
其他好文 时间:
2014-07-07 17:25:09
阅读次数:
175
python中一个简单的webserver2013-02-24 15:37:49分类:Python/Ruby支持多线程的webserver123456789101112131415161718192021#!/usr/bin/pythonfrom SocketServer import Thread...
分类:
编程语言 时间:
2014-07-01 00:03:34
阅读次数:
462
start.shJava代码#!/usr/bin/bash##start.sh#@auth:zhoulin@lianchuang.com#SERVER_STATUS(){serv_status=`ps-ef|grepweblogic|grepwebapp|grep-vgrep|grep$1|wc-l...
分类:
Web程序 时间:
2014-06-30 23:05:20
阅读次数:
578
亲测安装php1、tar zvxf php-5.3.8.tar.gz 2、cd php-5.3.83、./configure \ --prefix=/usr/local/php \--with-mysql=/usr/local/mysql \ --with-apxs=/usr/local/apach...
分类:
Web程序 时间:
2014-06-30 21:35:51
阅读次数:
399
本教程适用于centos
安装之前
检查nodejs
如果没安装nodejs按照以下步骤安装
$ su -
$ yum install openssl-devel
$ cd /usr/local/src
$ wget http://nodejs.org/dist/v0.10.29/node-v0.10.29.tar.gz
$ tar zxvf node-v0.10.29.tar.gz...
分类:
其他好文 时间:
2014-06-30 16:54:31
阅读次数:
296
以前写的一篇笔记,偶尔翻出来了,放在这里做个纪念
Linux 下IO端口编程访问
这里记录的方法是在用户态访问IO端口,不涉及驱动程序的编写。
首先要包含头文件 /usr/include/asm/io.h
ioperm()
在 unistd.h 中声明。用来打开对IO端口的访问权限,要求程序执行时必须有root 权限。只可以打开0x00到0x3ff 这一地址段的IO端口。
iop...
分类:
系统相关 时间:
2014-06-30 16:30:54
阅读次数:
302
环境说明:系统:CentOS6.5X64很简单,主要原因是在启动Chromium的时候指定了自有的Flash,我们可以在启动参数上去除指定的Flash!sudovim/usr/bin/chromium-browserCHROMIUM_RHEL_FLAGS="--enable-plugins--enable-extensions--enable-user-scripts--enable-printing--enable-sy..
分类:
系统相关 时间:
2014-06-30 15:53:55
阅读次数:
682
总结:新搭编译安装的 nginx+php+mysql环境,运行之前开发的项目遇到了没有安装pdo的问题
1.进入到php5的源码包里面,ext下面,找到pdo_mysql文件夹
首先执行:/usr/loca/php5/bin/phpize
2.进行编译。
./configure --with-php-config=/usr/local/php5/bin/php-config --with-...
分类:
数据库 时间:
2014-06-30 10:05:01
阅读次数:
216
Linux下Memcached的安装步骤,如果出现/usr/local/memcached/bin/memcached: error while loading shared libraries: libevent-2.0.so.5: cannot open shared object file: No such file or directory异常在/etc/ld.so.conf中加入/usr/local/lib这一行,保存之后,再运行:/sbin/ldconfig –v更新一下配置即可。...
分类:
系统相关 时间:
2014-06-30 09:20:50
阅读次数:
320
本篇介绍从Solaris、Linux、Windows或VxWorks创建VxWorks启动盘的方法。
从Solaris或Linux创建启动盘
使用Solaris或Linux自带的工具/usr/bin/fdformat。它需要一个引导加载程序vxld.bin,位置为安装目录下的$WIND_BASE/host/$WIND_HOST_TYPE/bin/vxld.bin。
...
分类:
其他好文 时间:
2014-06-30 08:47:06
阅读次数:
200