上一页 1 2 3 4 5 6 ··· 8 下一页

2012年12月26日

Linux wget命令下载FTP文件

摘要: wget -P /存放路径 -nH -m --ftp-user=user --ftp-password=password ftp://ip/* 阅读全文

posted @ 2012-12-26 15:55 seaven 阅读(289) 评论(0) 推荐(0) 编辑

linux定时备份mysql数据库

摘要: 利用系统crontab来定时执行备份文件,按日期对备份结果进行保存,达到备份的目的。1、创建保存备份文件的路径/mysqldata#mkdir /mysqldata2、创建/usr/sbin/bakmysql文件#vi /usr/sbin/bakmysql输入rq=` date +%Y%m%d `tar zcvf /mysqldata/mysql$rq.tar.gz /var/lib/mysql或者写成rq=` date +%Y%m%d `mysqldump --all-databases -u root -p密码 > /mysqldata/mysql$rq.sql/var/lib/my 阅读全文

posted @ 2012-12-26 10:05 seaven 阅读(166) 评论(0) 推荐(0) 编辑

2012年12月2日

更改dedecms提示信息的方法

摘要: DedeCms网站提示信息的修改方法:在include文件夹里找到 inc_functions.phpCopycode$rmsg=$func;$rmsg.="document.write(\"<br/><divstyle='width:400px;padding-top:4px;height:24;font-size:10pt;border-left:1pxsolid#b9df92;border-top:1pxsolid#b9df92;border-right:1pxsolid#b9df92;background-color:#def5c2; 阅读全文

posted @ 2012-12-02 11:29 seaven 阅读(178) 评论(0) 推荐(0) 编辑

DEDE5.6,DEDE5.7实现同时调用一级、二级、三级栏目

摘要: 一、修改文件:\include\taglib目录下的channel.lib.php,请将以下代码全部复制替换上述文件<?phpfunctionlib_channel(&$ctag,&$refObj){global$_sys_globals,$envs,$dsql;$attlist="typeid|0,reid|0,row|100,col|1,type|son,currentstyle|";FillAttsDefault($ctag->CAttribute->Items,$attlist);extract($ctag->CAttribu 阅读全文

posted @ 2012-12-02 11:21 seaven 阅读(8691) 评论(1) 推荐(0) 编辑

2012年11月25日

织梦(DedeCMS)系统将IP地址转换为纯真IP数据库的地区的实现函数

摘要: “将织梦系统的IP地址转换为纯真IP数据库的函数”,通过这个函数,可以实现类似于本站评论处的那样的显示IP地址所在地区。一、实现方法1)函数编写 本来是以前的版本,我是通过JS方式来调用的,但这种方式在有些页面可能会不兼容。后来就升级了函数方式,但一直没更新。好了,我们来看看具体的函数编写方法:在/include/extend.func.php 文件中的?>的上面加入以下函数代码:functionconvertip($ip){$dat_path=DEDEDATA.'/ip/QQWry.dat';if(!ereg("^([0-9]{1,3}.){3}[0-9]{1 阅读全文

posted @ 2012-11-25 17:40 seaven 阅读(1651) 评论(0) 推荐(0) 编辑

2012年11月19日

linux启动oracle数据库

摘要: 首先使用oracle用户登录Linux,然后在shell命令行中执行下面的命令:第一步:打开Oracle监听$ lsnrctl start第二步:进入sqlplus$ sqlplus /nologSQL>第三步:使用sysdab角色登录sqlplusSQL> conn /as sysdba第四步:启动数据库SQL> startup 阅读全文

posted @ 2012-11-19 11:50 seaven 阅读(220) 评论(0) 推荐(0) 编辑

2012年11月11日

Linux Nginx开机启动

摘要: 1、建立脚本文件nginxd [root@Nginx canyouNgx]# vi /etc/init.d/nginxd 插入以下内容 #!/bin/bash##chkconfig:-8515#description:NginxisaWorldWideWebserver.#processname:nginxnginx=/usr/local/nginx/sbin/nginxconf=/usr/local/nginx/conf/nginx.confcase$1instart)echo-n"StartingNginx"$nginx-c$confecho"done&quo 阅读全文

posted @ 2012-11-11 20:07 seaven 阅读(205) 评论(0) 推荐(0) 编辑

2012年10月15日

常用网站颜色代码,字体等

摘要: #FFB6C1LightPink浅粉红#FFC0CBPink粉红#DC143CCrimson深红/猩红#FFF0F5LavenderBlush淡紫红#DB7093PaleVioletRed弱紫罗兰红#FF69B4HotPink热情的粉红#FF1493DeepPink深粉红#C71585MediumVioletRed中紫罗兰红#DA70D6Orchid暗紫色/兰花紫#D8BFD8Thistle蓟色#DDA0DDPlum洋李色/李子紫#EE82EEViolet紫罗兰#FF00FFMagenta洋红/玫瑰红#FF00FFFuchsia紫红/灯笼海棠#8B008BDarkMagenta深洋红#8000 阅读全文

posted @ 2012-10-15 09:43 seaven 阅读(3093) 评论(0) 推荐(0) 编辑

2012年6月22日

centos中crontab -e用法详解

摘要: 安装crontab:[root@CentOS ~]# yum install vixie-cron[root@CentOS ~]# yum install crontabs说明:vixie-cron软件包是cron的主程序;crontabs软件包是用来安装、卸装、或列举用来驱动 cron 守护进程的表格的程序。cron 是linux的内置服务,但它不自动起来,可以用以下的方法启动、关闭这个服务:/sbin/service crond start //启动服务/sbin/service crond stop //关闭服务/sbin/service crond restart //重启服务/sbi 阅读全文

posted @ 2012-06-22 15:05 seaven 阅读(2303) 评论(0) 推荐(1) 编辑

2012年6月20日

Eclipse 中将文件在资源管理器中打开

摘要: Summary: Create an external tool with location ${env_var:SystemRoot}\explorer.exe and arguments /select,${resource_loc} . Any selected file or directory can now be shown in the windows explorer. How do I do that? Create an new external tool: (1) Create a new Program (select Program in the tree) (2) 阅读全文

posted @ 2012-06-20 09:54 seaven 阅读(4402) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 ··· 8 下一页

导航