码迷,mamicode.com
首页 >  
搜索关键字:tmp    ( 7796个结果
部署和调优 1.3 pureftp部署和优化-2
登录ftp,用远程的一台机器,执行lftp如果没有这个命令,需要安装yum install -y lftp登录ftplftp ftpuser1@192.168.1.117输入口令,即密码在远程机器创建目录 mkdir 123在本地机器查看ls /tmp/ftp/有一个123目录在本地创建一个文件,并...
分类:其他好文   时间:2015-12-16 00:26:35    阅读次数:173
Linux输出重定向
>标准的正确输出重定向 用法示例 find/etc-name*network*>/tmp/findresult.txt 2>标准的错误输出重定向 用法示例: lswrong/2>/tmp/wrong.txt &>正确的以及错误的全部重定向输出 find/-nameroot&>/tmp/findresult.txt >,2>,&>会清空输..
分类:系统相关   时间:2015-12-15 19:36:33    阅读次数:238
求1!+2!+·····10!
#include<stdio.h>intmain(){ inti=0,sum=0,n=1,tmp=1; for(n=1;n<11;n++) { tmp=1; for(i=1;i<=n;i++) { tmp*=i; } sum+=tmp; } printf("%d\n",sum); system("pause"); return0;}这个代码很罗嗦非常不好可以优化为#include<stdio.h>intmain(){ inti=..
分类:其他好文   时间:2015-12-15 16:04:08    阅读次数:127
编译 PHP时提示mysql 错误
编译PHP:./configure--prefix=/usr/local/php--with-config-file-path=/usr/local/php/etc--enable-fpm--with-fpm-user=php-fpm--with-fpm-group=php-fpm--with-mysql-dir=/usr/local/mysql--with-mysql-sock=/tmp/mysql.sock--with-libxml-dir--with-gd--with-jpeg-dir--with-..
分类:数据库   时间:2015-12-15 06:32:01    阅读次数:191
zabbix server is not running解决办法
在安装Zabbix后,发现一直提示zabbixserverisnotrunning这个报错,首先查看Zabbix的日志,tail/tmp/zabbix_server.log,发现一直提示以下报错肯定是没有数据库的访问权限了,加上权限就OK了
分类:其他好文   时间:2015-12-14 23:22:04    阅读次数:193
oracle如何判断字段是数字还是字符
参考百度oracle正则表达式--数字开头的select * from tmp where regexp_like(str,'^[0-9]');--从头到位都是数字select * from tmp where regexp_like(str,'^[0-9]+$')--字段中是数字或者是字母组成se...
分类:数据库   时间:2015-12-14 16:07:34    阅读次数:326
求Sn=a+aa+aaa+aaaa+aaaaa的前5项之和,其中a是一个数字,例如:2+22+222+2222+22222
#include<stdio.h>intmain(){inta=0;intn=0;intsum=0;inttmp=0;inti=0;scanf("%d%d",&a,&n);for(i=0;i<n;i++){tmp=a+tmp*10;sum=sum+tmp;}printf("sum=%d",sum);system("pause");return0;}
分类:其他好文   时间:2015-12-13 23:59:26    阅读次数:318
LAMP 3.2 mysql登陆
mysql 服务启动时,不仅会监听 IP:Port,还会监听一个 socket,我们安装的 mysql 是监听在/tmp/mysql.sock。如果 php 是在本地,那么 php 和 mysql 通信可以通过 socket 通信,如果是远程,就需要通过 tcp/ip 来通信了。在 Linux 命令...
分类:数据库   时间:2015-12-13 00:48:44    阅读次数:205
mysql 提示找不到mysql.sock文件
免编译安装mysql后,出现错误提示:ERROR2002(HY000):Can‘tconnecttolocalMySQLserverthroughsocket‘/tmp/mysql.sock‘(2)解决方法:1.vi/etc/my.cnf找到socket=这项2.修改socket路径:socket=/usr/local/mysql/lib/mysql.sock#根据mysql安装目录修改3.ln-s/usr/local/mysql/lib/..
分类:数据库   时间:2015-12-12 17:14:28    阅读次数:187
uva714 Copying Books
#include#define REP(i,a,b) for(int i=a;i=1;i--){ s+=a[i]; if(s>m){ s=a[i]; tmp[i]=1; cnt++; } ...
分类:其他好文   时间:2015-12-12 16:53:52    阅读次数:190
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!