博文

目前显示的是 2015的博文

debian apt-get update:public key 错误修复

apt-get update 出现 这种错误 Reading package lists… Done W: There is no public key available for the following key IDs: 7638D0442B90D010 W: There is no public key available for the following key IDs: 7638D0442B90D010 W: There is no public key available for the following key IDs: 9D6D8F6BC857C906 解决方法 apt-get install debian-keyring debian-archive-keyring apt-get update

兄弟8070D加粉后如何清零

碳粉清零: 1、打开前盖 2、按清除键显示跟换硒鼓不理它,马上再按“启用”键,然后马上按“00”。 过几秒就可以关前盖 就可以了 硒鼓清零: 1、打开前盖 2、按清除键显示跟换硒鼓 1是 2否 按1 过几秒就可以关前盖就可以了

Depends: init-system-helpers (>= 1.18~) but it is not installable

Depends: init-system-helpers (>= 1.18~) but it is not installable E: Unable to correct problems, you have held broken packages. Working on debian wheezy… I added backports to my apt repo “deb http://ftp.de.debian.org/debian wheezy-backports main” and performed a “apt-get update”. Afterwards, the apt-get install docker-engine completed fine. Personally, I’m leaving backports commented out for now but in my conf as a reminder…

How to Disable a Services in Linux

In Red Hat based distributions such as Fedora and CentOS, make use of a script called ‘chkconfig‘ to enable and disable the running services in Linux. For example, lets disable the Apache web server at the system startup. [avishek@tecmint]# chkconfig httpd off [avishek@tecmint]# chkconfig httpd –del In Debian based distributions such as Ubuntu, Linux Mint and other Debian based distributions use a script called update-rc.d. For example, to disable the Apache service at the system startup execute the following command. Here ‘-f’ option stands for force is mandatory. [avishek@tecmint]# update-rc.d -f a

AVG Internet Security 2015 key

8MEH-RO9SN-AVP3P-E3SMR-PK3ZG-HEMBR-ACED 8MEH-R6O2P-VYKXS-BAYWR-CDLLX-WEMBR-ACED 8MEH-RFOD4-SXWR8-JRTQA-JVMEN-WEMBR-ACED 8MEH-RCKOP-BP9KK-YW8EA-6ZMMK-SEMBR-ACED 8MEH-RS47Y-82HT8-GONVA-BO3R8-DEMBR-ACED 8MEH-RQX93-WYZKW-BE2FR-QX9FE-PEMBR-ACED 8MEH-REDSL-7EKFC-ULA8R-EEJMJ-4EMBR-ACED 8MEH-RSTBP-ST9JM-2TVHA-XL9M9-LEMBR-ACED 8MEH-RR6GC-KLJJD-S7DBA-NWPS7-EEMBR-ACED

在shell命令行下让mplayer循环播放和播放列表

第一步:将所有要播放的多媒体文件放在~/music/目录下;       第二步:进入music目录,执行ls > music.lst,则在music目录下生成一个名为music.lst的列表文件,并把music目录下的文件名写入到music.lst文件中;       第三步:运行mplayer -playlist music.lst即可实现列表播放       值得注意的是第二步中,生成的多媒体列表文件music.lst一定要与要播放的多媒体文件保存在同一个目录中,否则mplayer播放时会有找不到文件的错误提示。       如果要删除一些不想听的多媒体文件,则用编辑器打开music.lst列表文件,删除对应的文件名即可,保存时要注意一行一个文件名,不能有空行。       如果要增加文件,执行命令echo filename >> music.lst即可,即可将新增的文件名追加在music.lst列表文件末。

兄弟(brother)MFC7340打印机清零方法

兄弟BROTHER MFC7340打印机清零方法 硒鼓是鼓粉分离的,官方给出的硒鼓使用寿命12000张,但一般可以打印到25000张左右,到25000时机器可能会提示硒鼓错误,让你按使用说明书上的什么什么东东操作… 以下两种清零方法可以解决机器:硒鼓将用尽、硒鼓寿命为0%、硒鼓错误、计数器清零等问题。 1、粉盒清零(一般加粉时都可以操作) 步骤: 1、打开机器前盖取出硒鼓 2、取下粉盒边盖上的三个螺丝(注意别把里面的齿轮搞掉了) 3、将盖板上面的白色(或黑色的)拨片拨上去就行(逆时针转到另一头) 4、装回硒鼓放入机器就OK了 2、机器清零(提示硒鼓错误时可以按此操作) 步骤: 1、关闭电源 2、按住菜单键,打开电源,待机器面板上的3灯全亮 3、按74,出来一串数字,用笔记下,按退出 4、按90,按28,按64 5、关闭电源 6、重复步骤 2 7、按74,输入你刚才记下的数字,确认,按96 8、OK!再看看你是硒鼓寿命,变成100%了,页码计数器也变为0了!

Blocking abusive IP addresses using IPTABLES Firewall in Debian

In one of our previous article we have posted an instructional guide on how to secure your Debian/Ubuntu based VPS using IPTABLES/Netfilter. In the following article we are adding a blacklist to the firewall script which will allow you to block any abusive IP addresses or ranges of IPs in your Debian or Ubuntu based virtual server. What is iptables? It is is a user space application program that allows a system administrator to configure the tables provided by the Linux kernel firewall (implemented as different Netfilter modules) and the chains and rules it stores. Before proceeding any further, make sure you read the article on how to secure/design the firewall in your linux vps. This includes: Flushing the old firewall rules Determining service ports Setting-up default policies Setting-up your firewall rules Saving your firewall rules BLOCKING IPs USING IPTABLES To block some abusive IP address or range of IPs, you can use the following iptables rules: ## iptables -I INPUT -s 1.2.3.4...

How to mount Google Drive on debian

图片
apt-get install ocaml camlp4-extra git clone https://github.com/OCamlPro/opam.git cd opam ./configure make sudo make install apt-get install m4 libcurl4-gnutls-dev libfuse-dev libsqlite3-dev opam init //**if error( opam init https://opam.ocaml.org/1.1 ) opam update opam install google-drive-ocamlfuse 安装成功后,进入Google Project建立一个Project https://console.developers.google.com/project 进入项目的API设置开启Drive API 建立一个OAuth验证ID 建立项目的Client ID 记录下这两个生成的参数做稍后使用 进入/root/.opam/system/bin/目录绑定项目 cd /root/.opam/system/bin/ ./google-drive-ocamlfuse -headless -label googledrive -id ##Client ID##.apps.googleusercontent.com -secret ##secret key## 执行完上述指令会返回一个https的网址在浏览器粘贴到浏览器后会进入google页面询问是否允许访问该项目,选accept然后记录下浏览器页面返回的密码,粘贴进去回车即可。 进入~/.gdfuse/googledrive cd ~/.gdfuse/googledrive nano config 编辑config修改内容例如 verification_code= [key returned from browser] client_id= [eg. 123123231.apps.googleusercontent.com] client_secret= [eg. ASDQWEWGSD!$@#@#ASD] 完成配置加载Google Drive远端存储到本地/googledrive mkdir /googledrive cd ~/.o...

Create Fake Swap in OpenVZ VPS if you get swapon failed: Operation not permitted Error

if you get swapon failed: Operation not permitted Error even if you run as root it is because in your VPS swap creation is not allowed follow below steps to Create Fake Swap in OpenVZ VPS [root@server] free -m total used free Mem: 4096 104 3991 -/+ buffers/cache: 104 3991 Swap: 0 0 0 create shell script file add lines like below [root@server] vi fakeswap.sh #!/bin/bash SWAP=”${1:-512}” NEW=”$[SWAP*1024]”; TEMP=”${NEW//?/ }”; OLD=”${TEMP:1}0″ umount /proc/meminfo 2> /dev/null sed “/^Swap\(Total\|Free\):/s,$OLD,$NEW,” /proc/meminfo > /etc/fake_meminfo mount –bind /etc/fake_meminfo /proc/meminfo free -m [root@server] chmod +x fakeswap.sh [root@server] sh fakeswap.sh [root@server] free -m total used free Mem: 4096 104 3991 -/+ buffers/cache: 104 3991 Swap: 512 0 51...

debian install shorewall

apt-get install shorewall cp /usr/share/doc/shorewall/examples/one-interface/interfaces /etc/shorewall/interfaces cp /usr/share/doc/shorewall/examples/one-interface/policy /etc/shorewall/policy cp /usr/share/doc/shorewall/examples/one-interface/rules /etc/shorewall/rules cp /usr/share/doc/shorewall/examples/one-interface/zones /etc/shorewall/zones Now open /etc/shorewall/policy file and change the line: net all DROP info removing info directive given it fills the system logs: net all DROP Now open /etc/shorewall/rules and add the following rules at the bottom of the file: HTTP/ACCEPT net $FW SSH/ACCEPT net $FW FTP/ACCEPT net $FW # real apache since varnish listens on port 80 #ACCEPT net $FW tcp 8080 ACCEPT net:192.168.1.10 $FW TCP 22 vi /etc/shorewall/shorewall.conf STARTUP_ENABLED=No —— STARTUP_ENABLED=Yes vi /etc/default/shorewall ...

Debian remove exim4

apt-get –purge remove exim4 apt-get –purge remove exim4-base dpkg -l | grep exim dpkg -P exim_name

实战Exim4配置

经过多方查阅资料,终于将exim4的配置搞定了,结果才发现,原来是这么简单。下面我就把我配置的过程写出来,与大家分享。 1)在命令行输入dpkg-reconfigure exim4-config来进行配置。 2)将配置文档分拆成小文件吗?(否) 3)邮件系统配置的常见模式:(互联网站;直接通过 SMTP 发送或接收信件) 4)系统邮件名称:(我的机器名默认的) 5)要监听的入站 SMTP 连接的 IP 地址:(空白,就是什么都不写) 6)其它可接受的邮件目的地址:( localhost.localdomain:debian:localhost) 注:我的主机名是debian 7)中转(relay)邮件的域名: (空白) 8)为这些主机进行邮件转发:(空白) 9)保持最小 DNS 查询量吗(按需拔号 Dial-on-Demand)? (否) 测试发邮件 echo “text” | mail -s “title” xxxxxxx@qq.com

web server setup with Debian 7 (Wheezy)

Setup bash and update the system cp /etc/skel/.bashrc /root/.bashrc apt-get update apt-get dist-upgrade Configure hostname correctly Make sure to have the following two lines (with the same format) at the top of your /etc/hosts file 127.0.0.1 localhost.localdomain localhost xxx.xxx.xxx.xxx web1.myserver.com web1 Note: xxx.xxx.xxx.xxx is the public IP address assigned to your server. Install all needed packages apt-get install php5 mysql-server mysql-client apache2 iptables phpmyadmin varnish shorewall vsftpd php5-cli php5-curl php5-dev php5-gd php5-idn php5-imagick php5-imap php5-memcache php5-ming php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xcache php5-xmlrpc php-apc php-pear php-xml-rpc postfix apg ca-certificates heirloom-mailx MySQL/PhpMyAdmin: mysql root password: xxx repeat mysql root password: xxx web server to reconfigure automatically: apache2 configure database for phpmyadmin with dbconfig-common? Yes Password of the database’s ...

Git远程操作详解

图片
Git是目前最流行的版本管理系统,学会Git几乎成了开发者的必备技能。 Git有很多优势,其中之一就是远程操作非常简便。本文详细介绍5个Git命令,它们的概念和用法,理解了这些内容,你就会完全掌握Git远程操作。 git clone git remote git fetch git pull git push 本文针对初级用户,从最简单的讲起,但是需要读者对Git的基本用法有所了解。同时,本文覆盖了上面5个命令的几乎所有的常用用法,所以对于熟练用户也有参考价值。 一、git clone 远程操作的第一步,通常是从远程主机克隆一个版本库,这时就要用到git clone命令。 git clone 比如,克隆jQuery的版本库。 git clone https://github.com/jquery/jquery.git 该命令会在本地主机生成一个目录,与远程主机的版本库同名。如果要指定不同的目录名,可以将目录名作为git clone命令的第二个参数。 git clone git clone支持多种协议,除了HTTP(s)以外,还支持SSH、Git、本地文件协议等,下面是一些例子。 git clone http[s]://example.com/path/to/repo.git/ git clone ssh://example.com/path/to/repo.git/ git clone git://example.com/path/to/repo.git/ git clone /opt/git/project.git git clone file:///opt/git/project.git git clone ftp[s]://example.com/path/to/repo.git/ git clone rsync://example.com/path/to/repo.git/ SSH协议还有另一种写法。 git clone [user@]example.com:path/to/repo.git/ 通常来说,Git协议下载速度最快,SSH协议用于需要用户认证的场合。各种协议优劣的详细讨论请参考官方文档。 二、git remote 为了便于管理,Git要求每个远程主机都必须指定一个主机名。git remote命令就用于管理主机名。 不带选项的时候...

make: g++: Command not found

make: g++: Command not found g++ make: g++: Command not found sudo apt-get install build-essential

lftp Fatal error: Certificate verification: Not trusted - Junk Food for the Brain

If you use lftp alot, occasionally you will encounter sites that just use ssl to secure transmission, but don’t actually purchase a proper SSL cert for the domain. You would get the following error message: Fatal error: Certificate verification: Not trusted If you are sure its really the intended site (No Man in the Middle Attacks!), you can temporaryly disable certificate verification by the following command at the lftp prompt: lftp > set ssl:verify-certificate no To permanently set this for lftp, you could add this to your /etc/lftp.conf or in your home directory ~/.lfptrc file.

dpkg: error processing mysql-server-5.5 (--configure)

rm -rf /var/lib/mysql /etc/mysql ~/.mysql apt-get –yes autoremove –purge mysql-server-5.5 apt-get –yes autoremove –purge mysql-client-5.5 apt-get –yes autoremove –purge mysql-common deluser mysql apt-get autoclean apt-get update && apt-get upgrade apt-get install mysql-server-5.5 mysql-client-5.5 NOTE: when you get ‘dpkg: error…’ please run step below: $ dpkg –configure -a Setting up mysql-server-5.5 (5.5.41-0ubuntu0.14.04.1) ... /var/lib/dpkg/info/mysql-server-5.5.postinst: line 146: logger: command not found ATTENTION: An error has occured. More info is in the syslog! /var/lib/dpkg/info/mysql-server-5.5.postinst: line 236: logger: command not found dpkg: error processing package mysql-server-5.5 (–configure): subprocess installed post-installation script returned error exit status 127 after installing bsdutils, apt-get install bsdutils mysql installation passed normally

kb2862335 更新失败

今天遇到kb2862335更新失败,网上很多教程都误倒人,修改文件什么的, 直接官方下载安装即可: kb2862335 64位 http://www.microsoft.com/zh-tw/download/details.aspx?id=40587 kb2862335 x86 http://www.microsoft.com/zh-cn/download/details.aspx?id=40409

兄弟(brother)DCP-7030加粉

图片

android手机铃声存放路径

/system/media/audio/ringtones 来电铃声 /system/media/audio/notifications 短信通知铃声 /system/media/audio/alarms 闹钟铃声

我的《潜规则》

第一句:不要盘算太多,要顺其自然。 不要拼命求人,有时想得越多,心越急,越得不到回报,等你不想的时候,它就会意想不到地属于你,感觉把握不来的时候,要顺其自然,人的进步与发展是想对的,该是你的东西终归是你的,不要强求。 第二句:压抑自己没必要,奉承巴结也没必要。 乡下与城里,下属与上司,穷人与富人不可能对等,对于趾高气扬的人,你再怎么尊重他,他也不会平等对待你,不管出身低微,还是处境艰难,都不要寄希望于他人的礼遇,唯有保持应有的人格力量,直面人生,当说时就说,当做时就做,别畏首畏尾,就不会轻易让人看不起,反而会赢得他人的尊重。 第三句:不要对谁特好,也不要对谁不好。 “拼命三郎”值得肯定,但是要掌握好火候,因为有个基本的现实是——多数人并不愿意看着你进步,不论你怎么做,最终还是难逃论资排辈,打勾画圈的命运,个中缘由不言而喻,我们无须埋怨谁,关键是要学会随机应变。 第四句:相信自己比依赖别人重要。 不同的人做事肯定是不一样,上司一般都会看出来的,只要尽心做事,就不会被埋没,除非你对自己的能力有所怀疑,关键是要摆正心态,有机会时为社会多做点什么,没机会时要记住为自己打工,积累更多的有形与无形资本,为自己做再多的事情也不过分,不论人生机遇如何,及时努力都不会错。

Android出现Read-only file system解决办法

操作设备文件系统上的文件结果遇到”… Read-only file system”。 解决办法: 最简单的,adb remount 不行的话,adb shell su之后将文件系统remount为读写权限: mount -o remount rw /system。出于安全考虑,记得完事后remount回只读: mount -o ro,remount /system 和方法2类似,mount -o rw,remount -t ext3 /dev/block/mmcblk1p21 /system

Android手机装上Linux系统

昨天发现手机安装linux脚本已经自动化了,直接下载一个应用即可全自动安装,就在闲置的手机上安装了下;像: Linux Installer https://play.google.com/store/apps/details?id=com.zpwebsites.linuxonandroid 手机都需要root。尝试了下Linux Installer,教程比较详细 http://android.galoula.com/en/LinuxInstall/ 需要注意一个地方是,最后install linuxchroot script时,注意设置linuxinstaller的系统可写权限,不然安装无响应或者提示写权限出错。 我装的是Debian Linux的arm发行版,apt-get用起来很方便。

chattr: command not found

Solution: Install e2fsprogs: apt-get install e2fsprogs

debian7 wheezy install mysql-server-5.5 error

dpkg: error processing mysql-server (–configure): dependency problems – leaving unconfigured Processing triggers for libapache2-mod-php5 … [ ok ] Reloading web server config: apache2. Errors were encountered while processing: mysql-server-5.5 mysql-server E: Sub-process /usr/bin/dpkg returned an error code (1)   # wget http://dev.mysql.com/get/mysql-apt-config_0.2.1-1debian7_all.deb # dpkg -i mysql-apt-config_0.2.1-1debian7_all.deb //安装时选1,使用5.6版本。 # apt-get update # apt-get install mysql-server

win7和windows xp 虚拟打印机安装方法

虚拟打印机一般情况下我们用不到,在特殊情况下,如把word或excel文件导入到CorelDRAW;word文档转换成PDF文件,这个时候我就可以用到虚拟打印机了。windows7具体操作如下: win7下设备和打印机——然后添加打印机——添加本地打印机——使用现有的端口(默认就OK)——厂商选择Generic,打印机选择“MS Publisher Imagesetter”——下一步完成就OK了。 如果我们现在有一个word文件,里面有表格,也有文字,但是我们要把它转换到coreldraw里去编辑它,文字可以复制粘贴,但是表格就不行了,表格必须得转成曲线才能编辑,所以我们可以word里将文件选择打印,然后在打印界面选择“MS Publisher Imagesetter”虚拟打印机,然后勾选打印到文件,这样你可以看到弹出一个界面,随便取个名字,文件格式默认为prn格式,不用理它,保存后桌面就有个prn文件了,直接拖到coreldraw里,弹出对话框,这里我们选择曲线就OK了. 上面我记录的win7下word文件导入到CORELDRAW的方法,因为网上很多是XP下的文章,有些写的win7下的,但是有些误倒人,说什么还得提取XP的驱动什么的……如果你的系统是win7就参考我上面写的,绝对可行,如果是XP,参考如下: 首先,安装一个虚拟打印机,Linotronic 530-RIP 30 v52.3 系统自带的 控制面板—打印机和传真—添加打印机 选择Linotronic 530-RIP 30 v52.3此型号,安装就可以了。安装完成就OK了。 选择要打开的WORD文件,然后按快捷键 ctrl + p 会出现 “打印”窗口,把打印机设成Linotronic 530-RIP 30 v52.3此型号,还要勾选打印到文件,这时会出现“打印到文件”窗口,把文件命名为123(这个打印机保存的文件类型是prn格式的),最后把123这个文件导入CDR就可以了。 Excel和这个类似,不过在把prn文件导入CDR之前要把 导入的文件名加个扩展名prn 才能导入CDR。 注意: 1、在word中不要加粗文字,要不然转换后是双层的哟; 2、关于漏白,在word中不要使用“_GB2312”的字体,要不然就会漏白(导入CDR后文字会出现空心的)。

Firefox无法启动 解决办法

症状:Firefox无法正常启动,每点击一次快捷键都会有一个Firefox进程,但Firefox窗口不显示。     解决办法:   1. 执行”C:\Program Files\Mozilla Firefox\firefox.exe” -safe-mode 进入安全模式   2. 如果这些操作后仍无法启动,尝试用firefox.exe -p新建一个火狐配置文档来启动   3. 如果还是无法启动,则查找火狐配置文件夹中的parent.lock文件,删除之试试看   4. 还是不行就参照如下官网给出的方法试一试   手动卸载插件 如果您不能使用卸载程序来移除一个插件,您可以手动移除它:   在地址栏,输入 about:config,然后按 Enter。   about:config 警告页面 这样可能会失去质保! 可能会出现。点击 我保证会小心,以继续到 about:config 页面。 搜索参数: plugin.expose_full_path. 双击列表中 plugin.expose_full_path 参数并将值改为 true. 在地址栏中输入about:plugins以显示“关于插件”页面。 在“关于插件”页面中的每个条目都有带着文件路径的 “文件名:” 。 利用Windows 窗口定位到您想移除的插件的位置。 将文件名改成其它名称,只要不是其本名即可——例如 npswf32 变成了 Xnpswf32 这个插件就被移除了。   重新初始化插件数据库 有时候你可能无法安装或重新安装某一个插件。重新初始化插件数据库可以解决这个问题:   要打开你的用户档案文件夹:   点击 Firefox 窗口顶部的 Firefox 按钮,移到 帮助 菜单(Windows XP 中是点击 帮助 菜单),然后选择 疑难解答信息。将打开疑难解答信息标签页。 在 应用基础 部分,点击 打开所在文件夹。将打开一个窗口显示您的配置文件夹。 注意:如果您无法打开或使用 Firefox,您也可以用不打开 Firefox 找到您的配置文件夹的方法。 点击 Firefox 窗口顶部的 Firefox 按钮(Windows XP 中是点...

Win7 64位操作系统下配置PHP+MySql+Apache环境

一、安装软件准备 软件版本以本人安装为例,其他版本同理,软件可到各官网下载,我提供的下载:点我下载! 二、安装Apache 1、64位的Apache不同于32位打包成exe文件可直接安装,先把httpd-2.2.19-win64解压到“D:\server”目录下 /*若没有server目录就创建后再解压*/ 修改“D:\server\httpd-2.2-x64\conf\httpd.conf”的配置信息,这里跟32位系统里配置一样   (1)用记事本或其它文本编辑工具打开“D:\server\httpd-2.2-x64\conf\httpd.conf”   (2)转到第35行,/*小提示:用记事本修改的话可以使用“Crtl+g”转到指定行*/ 修改为ServerRoot “D:/server/httpd-2.2-x64” /*直接粘过去替换即可,下面也一样*/   (3)转到第129行,会看到apache开启的功能模块如:#LoadModule vhost_alias_module modules/mod_vhost_alias.so   模块其后添加:   LoadModule php5_module “D:/Server/php-5.3.6-Win32-VC9-x64/php5apache2_2.dll”   PHPiniDir “D:/Server/php-5.3.6-Win32-VC9-x64”   AddType application/x-httpd-php .html .htm .php /*将上面三行粘到第129~131行即可*/ (4)转到第182行,设置网页文件存放目录,我的存在在“D:\htdocs”   设置为 DocumentRoot “D:/htdocs” /*此步请按自身的实际存在目录进行设置*/   此行修改要与第209行目录设置相对应 所以第209行对应修改为 <Directory “D:/htdocs”>   (5)以管理员身份运行命令提示符 执行httpd -k install 没有错误即apache服...

linux删除/var/cache,不能升级

mkdir -pv /var/cache/apt/archives/partial

mysql配置文件my.cnf详解

basedir = path 使用给定目录作为根目录(安装目录)。 character-sets-dir = path 给出存放着字符集的目录。 datadir = path 从给定目录读取数据库文件。 pid-file = filename 为mysqld程序指定一个存放进程ID的文件(仅适用于UNIX/Linux系统); Init-V脚本需要使用这个文件里的进程ID结束mysqld进程。 socket = filename 为MySQL客户程序与服务器之间的本地通信指定一个套接字文件(仅适用于UNIX/Linux系统; 默认设置一般是/var/lib/mysql/mysql.sock文件)。在Windows环境下,如果MySQL客户与服务器是通过命名管道进行通信 的,–sock选项给出的将是该命名管道的名字(默认设置是MySQL)。 lower_case_table_name = 1/0 新目录和数据表的名字是否只允许使用小写字母; 这个选项在Windows环境下的默认设置是1(只允许使用小写字母)。     mysqld程序:语言设置   character-sets-server = name 新数据库或数据表的默认字符集。为了与MySQL的早期版本保持兼容,这个字符集也可以用–default-character-set选项给出; 但这个选项已经显得有点过时了。 collation-server = name 新数据库或数据表的默认排序方式。 lanuage = name 用指定的语言显示出错信息。     mysqld程序:通信、网络、信息安全   enable-named-pipes 允许Windows 2000/XP环境下的客户和服务器使用命名管道(named pipe)进行通信。这个命名管道的默认名字是MySQL,但可以用–socket选项来改变。 local-infile [=0] 允许/禁止使用LOAD DATA LOCAL语句来处理本地文件。 myisam-recover [=opt1, opt2, …] 在启动时自动修复所有受损的MyISAM数据表。这个选项的可取值有4种:DEFAULT、BACKUP、QUICK和FORCE; 它们与myisamchk程序的同名选项作用相同...

windows7安装中使用diskpart为硬盘分区

图片
以win7光盘安装为例我们可以在安装完系统后分区,也可以在安装时分区,安装程序创建的都是主分区,并没有创建逻辑分区的任何选项,这样的 情况导致创建4个主分区后剩余的空间无法继续分配,用windows的Diskpart命令可以很简单的帮助我们解决这个问题。 Diskpart命令是Windows环境下的一个命令,利用diskpart可实现对硬盘的分区管理,包括创建分区、删除分区、合并(扩展 )分区,而且设置分区后不用重启电脑也能生效。 利用Diskpart命令来分区,既不用借助第三方工具,也不会产生100MB的“系统保留”分区,其次分区操作直接设置即刻生效,不用重新启动计算机。 以一块98G的盘为例 40G【主分区】+20G+20G+18G【逻辑分区】 在安装windows7过程中,到磁盘分区这一步时停下,按组合键“Shift+10”进入cmd窗口。 输入diskpart 回车即可启动diskpart工具,其提示符为“DISKPART>”。 输入List Disk回车,显示本机所有磁盘,便于操作正确的磁盘。 输入Select Disk 0选择要操作的磁盘。 输入Clean 清除已选硬盘上的所有分区。 输入Create Partition Primary Size=40960 在已选硬盘上创建容量为40960MB(即40G——40*1024=40960)的主磁盘分区。 输入Active 激活当前磁盘分区,即刚分好的主磁盘分区。 输入format quick 快速格式化当前磁盘分区。 输入Create Partition Extended将剩余空间全部划分为扩展磁盘分区。 输入Create Partition Logical Size=20480在扩展磁盘分区上创建容量为20G的逻辑磁盘分区。 输入format quick 快速格式化当前磁盘分区。 输入Create Partition Logical Size=20480 在扩展磁盘分区上创建容量为20G的第二个逻辑磁盘分区。 输入Format Quick 快速格式化当前磁盘分区。 输入Create Partition Logical 在扩展磁盘分区上将剩余的磁盘空间创建逻辑磁盘分区。 输入Format Quick 快速格式化当前磁盘分区。 输入Exit  退出diskpart工具 输入Exit 退出cmd界面 刷新

Linux硬盘坏掉后用dd做应急处理备份

dd if=源文件 of=目标文件 conv=sync,noerror bs=4k