摘要:
SCP传送文件:scp -P 22022 -i /root/.ssh/aaa.pem file.txt root@111.111.111.111:/var/www/wpvirusdata --------把文件从本地上传到服务器复制文件:cp path_a path_b; //将路径A文件 复制到B... 阅读全文
2014年6月6日
2014年5月16日
摘要:
边框 css 基本设置:border:1px solid #d2d2d2; 风格有:solid=>实线 double=>双实线 dotted=>点状 dashed=>虚线 圆角 border-radius: 10px;文字居中 vertical-align:mid... 阅读全文
2014年1月17日
摘要:
错误提示:Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone i 阅读全文
2014年1月5日
摘要:
原文引用至:http://www.jb51.net/article/23781.htm,感谢!可能原因:1.发送的SQL语句太长,以致超过了max_allowed_packet的大小,如果是这种原因,你只要修改my.cnf,加大max_allowed_packet的值即可。 2.某些原因导致超时,比如说程序中获取数据库连接时采用了Singleton的做法,虽然多次连接数据库,但其实使用的都是同一个连接,而且程序中某两次操作数据库的间隔时间超过了wait_timeout(SHOW STATUS能看到此设置),那么就可能出现问题。最简单的处理方式就是把wait_timeout改大,当然你也可以在程 阅读全文
摘要:
解决方式方式1:原因:数据表索引损坏方案:使用repair table 表名;方式2:原因:打开表的数据量太大,内存不够。 方案:配置my.ini 调整内存能解决 阅读全文
2013年10月25日
摘要:
3种接口淘宝/百度/不知名/ 推荐淘宝接口ip自个去获取,下附带php 获取ip的示例function getIP() { static $realip; if (isset($_SERVER)){ if (isset($_SERVER["HTTP_X_FORWARDED_FOR"])){ $realip = $_SERVER["HTTP_X_FORWARDED_FOR"]; } else if (isset($_SERVER["HTTP_CLIENT_IP"])) { ... 阅读全文
2013年10月18日
摘要:
linux下使用psql命令操作数据库下面主要用到了insert into ,pg_dump , pg_restore 命令按步骤走su postgres 切换指定用户pg_restore -d mydb /mnt/mydb.backup mydb指定数据库 mydb.backup 恢复的文件ALTER TABLE table1 RENAME TO table2; 给表重命名 把表1改成表2insert into table1 select name,age,height from student where add_time <'2013-10-01'; ins... 阅读全文
摘要:
shell 文件头格式 #! /bin/sh定义变量 dir_tmp=/tmp/xxx级联创建 mkdir -p /etc/aaa/bbb 阻塞命令 等待用户输入回车 继续 read yum 安装多个软件 自动安装 多个软件中间用空格 yum install -y httpd mod_ssl php-cli php-devel 不记录日志 >/dev/nullcat 输出内容到文件是有顺序执行的cat 1.text 2.text > 3.text 先输出1到3 再输出2到3ssh在登录的机器里执行命令ssh -p 22022 -i /root/.ssh/xxx.pem root@1 阅读全文
摘要:
//获取本月1号 的命令date +%Y-$m-1shell脚本 把时间命令的值赋给变量 并使用#! /bin/sh#赋值time=$(date +%Y-%m-1) #使用变量(转换成时间戳)time_sjc=$( date -d "$time" +%s)#时间戳转换old_time=$(date -d @$time_sjc "+%Y-%m-%d")echo $old_time 阅读全文
2013年10月12日
摘要:
错误提示:Errorprocessingdrive: pci-0000:00:10-scsi-0:0:0:020480MB VMware,VMwareVirtualS Thisdevicemayneedtobereinitialized. REINITIALIZINGWILLCAUSEALLDATATOBELOST! Thisactionmayalsobeappliedtoallotherdisksneedingreinitialization.Devicedetails: pci-0000:00:10.0-scsi-0:0:0:0 底下有四个按钮,Ignore、Ignoreall、Re-in 阅读全文