ln -s /etc /etc/rc.dln -s /usr/bin/awk /bin/awkln -s /usr/bin/basename /bin/basenameln -s /usr/bin/rpm /bin/rpmln -s /lib/i386-linux-gnu/libgcc_s.so.1...
分类:
数据库 时间:
2014-06-28 23:38:22
阅读次数:
467
约定几个目录/usr/local/php/sbin/php-fpm/usr/local/php/etc/php-fpm.conf/usr/local/php/etc/php.ini一,php-fpm的启动参数#测试php-fpm配置/usr/local/php/sbin/php-fpm -t/usr...
分类:
Web程序 时间:
2014-06-28 23:23:28
阅读次数:
365
在bash下中文乱码,因为locale没有正确设置,在bash下执行:/usr/share/locales/install-language-pack zh_CNsudo locale-gen编辑用户主目录下 ~/.bashrc 文件,添加内容export LANG="zh_CN.UTF-8"exp...
分类:
其他好文 时间:
2014-06-18 10:51:44
阅读次数:
211
把 c 编译成 arm 指令的可执行文件
/usr/bin/arm-linux-gnueabi-g++ hello.cpp
cat hello.cpp
#include
void crash(){
char *a=0;
*a=0;
}
int main()
{
printf("hello world\n");
crash();...
分类:
数据库 时间:
2014-06-18 06:50:45
阅读次数:
424
之前都是用计算所的分词工具进行分词,效果不错但是比较麻烦,最近开始用Python的“结巴”模块进行分词,感觉非常方便。这里将我写的一些小程序分享给大家,希望对大家有所帮助。
下面这个程序是对一个文本文件里的内容进行分词的程序:test.py
#!/usr/bin/python
#-*- encoding:utf-8 -*-
import jieba ...
分类:
编程语言 时间:
2014-06-18 06:00:59
阅读次数:
412
wgethttp://pecl.php.net/get/zip-1.10.2.tgztarzxvfzip-1.10.2.tgzcdzip-1.10.2./configure--with-php-config=/usr/local/php/bin/php-config运行了这个zip目录下会自动生成几个文件,其中包括configure./configure--with-php-config=/usr/local/php/bin/php-configmakemakein..
分类:
Web程序 时间:
2014-06-17 18:20:35
阅读次数:
279
进入linux系统root>/usr/bin/mysql-urootmysql>showdatabases;#查看数据库mysql>usetesttable;#testtable为所要查看的库,应用数据库mysql>showtables;#查看所有表mysql>descabc_table#查看表结构mysql>createtableabc(>idintnotnullprimarykey,>`type..
分类:
数据库 时间:
2014-06-17 18:17:46
阅读次数:
233
实验拓扑:LinuxClient-----RHEL5.9(vmnet1)----------(vmnet1)Win7Client实验一:Samba匿名共享工作组为Tarena将目录/usr/src共享给所有人共享名设为tools允许所有人访问、无需密码验证访问权限为只读1、安装软件包[root@localhost~]#rpm-qsamba-clientsambasamba-commonp..
分类:
其他好文 时间:
2014-06-17 17:51:01
阅读次数:
198
我这里用到的nginx为最新版的nginx所以我使用了最新的插件nginx_upstream_check_module-master.zipcdnginx-1.7.1patch-p1</tmp/nginx_upstream_check_module-master/check_1.5.12+.patchnginx-V./configure--prefix=/usr/local/nginx--with-http_stub_status_module--with-h..
分类:
其他好文 时间:
2014-06-17 17:17:22
阅读次数:
337