Tag: 互联网技术
-
FATAL ERROR: Could not find ./bin/my_print_defaults
一般还有如下提示: If you compiled from source, you need to run ‘make install’ to copy the software into the correct location ready for operation. If you are using a binary release, you must either be at the top level of the extracted archive, or pass the –basedir option pointing to that location. 所以我们按照提示把basedir 也加上: /usr/local/mysql/bin/mysql_install_db…
-
什么是HTTP Headers
HTTP是”Hypertext Transfer Protocol”的所写,整个万维网都在使用这种协议,几乎你在浏览器里看到的大部分内容都是通过http协议来传输的,比如这篇文章。 HTTP Headers是HTTP请求和相应的核心,它承载了关于客户端浏览器,请求页面,服务器等相关的信息。 示例 当你在浏览器地址栏里键入一个url,你的浏览器将会类似如下的http请求:GET /tutorials/other/top-20-mysql-best-practices/ HTTP/1.1Host: moneyslow.comUser-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5 (.NET CLR 3.5.30729)Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8Accept-Language: en-us,en;q=0.5Accept-Encoding: gzip,deflateAccept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7Keep-Alive: 300Connection: keep-aliveCookie: PHPSESSID=r2t5uvjq435r4q7ib3vtdjq120Pragma: no-cacheCache-Control: no-cache第一行被称为”Request Line” 它描述的是这个请求的基本信息,剩下的就是HTTP headers了。 请求完成之后,你的浏览器可能会收到如下的HTTP响应: HTTP/1.x 200 OKTransfer-Encoding: chunkedDate: Sat, 28 Nov 2009 04:36:25 GMTServer: LiteSpeedConnection: closeX-Powered-By: W3 Total Cache/0.8Pragma: publicExpires: Sat, 28 Nov…
-
给新手的 10 个有用 Linux 命令行技巧
10 个 Linux 命令行技巧 这篇文章希望向你展示一些不需要很高的技术就可以像一个高手一样使用 Linux 终端的有用技巧。你只需要一个 Linux 终端和一些自由时间来体会这些命令。 1. 找到正确的命令 执行正确的命令对你的系统来说非常重要。然而在 Linux 中有如此多的、难以记忆的各种的命令行。那么怎样才能找到你需要的正确命令呢?答案是 apropos。你只需要运行: # apropos <description> 其中你要用真正描述你要查找的命令的语句代替 “description”。这里有一个例子: # apropos “list directory” dir (1) – list directory contents ls (1) – list directory contents ntfsls (8) – list directory contents on an NTFS filesystem vdir (1) – list directory contents 左边你看到的是命令,右边是它们的描述。 2.…
-
Centos6.6 安装操作手册(包括安装vmware-tools GCC LVM)
On any Window’s machine, download and install VMware Player, if you have not already done so. Instructions: http://downloads.vmware.com/d/info/desktop_downloads/vmware_player/3_0 Locate CentOS Mirror Download Instructions: http://wiki.centos.org/Download On the CentOS-6 Row, Click on i386. Choose a CentOS Mirror Instructions: Choose a Mirror Download CentOS-6.6 ISO Instructions: Click on CentOS-6.6-i386-bin-DVD1.iso Click the Save File radio button Click the OK…
-
Centos7下如何部署Apache+PHP+MariaDB
安装CentOS 7操作系统 将CentOS7iso文件放进VMware中,建立CentOS7操作系统。如果VMware识别不出操作系统是什么类型,手动选择”Linux(L)”客户机操作系统,”CentOS 64位”版本。如图2.1.1所示。 图2.1.1 新建CentOS7虚拟机 另外,推荐:虚拟内存给1024M;使用网络地址转换(NAT);最大磁盘大小给40G;虚拟磁盘存为单个文件;其它选择默认或者推荐的就好。 启用Intel VT-x 在建立CentOS时,很有可能出现一个错误提示框”已将该虚拟机配置为使用64客户机操作系统。但是,无法执行64位操作”,并且提示”此主机支持Intel VT-x,但Intel VT-x处于禁用状态”; 解决方法:先将虚拟机关闭;重启自己的电脑进入BIOS,进入方法根据自己电脑品牌去找;进入后,会在BIOS界面的上面看到”Configuration”选项,按向右方向键,到达此选项;然后会在下面看到”Intel Virtual Technology”选项,将此选项后面的”Disabled”改成”Enabled”就可以了。然后保存BIOS设置退出即可。如图2.1.2所示。 图2.1.2 进BIOS启用Intel VT-x 然后再次开启CentOS7虚拟机,会进入图2.1.3.1所示的界面。然后只要等待即可。 进入如图2.1.3.2的界面,等待最下面显示”Checking:100%”即可。 图2.1.3.1 进入安装CentOS 7.0界面 图2.1.3.2 CentOS7自检中 2.1.4 看到如图所示2.1.4的界面,就进入CentOS7的设置界面了。选择”中文 Chinese”—”简体中文(中国)”即可。 图2.1.4 选择语言 2.1.5 然后进入图2.1.5 的”安装信息摘要”部分,下面依次把”安装位置”、”网络和主机名”、”软件选择”设置好。 图2.1.5 安装信息摘要 2.1.6 “安装位置”设置,建议点击图2.1.6蓝色的区域,选中它后会变成蓝色;然后选择”自动配置分区”。最后点击左上角的”完成”即可。 图2.1.6 设置安装分区 2.1.7 如图2.1.7,只要将将右上角设置为开启就行了。 图 2.1.7 网络连接配置 …
-
Centos利用第三方yum源安装rpm软件包
CentOS自带的yum源中rpm包数量有限,很多时候找不到我们需的软件包,(例如:要安装网络连接查看软件iftop,默认设置下无法使用yum命令安装),下面教大家在CentOS 6.2中(以32位系统为例,64位系统安装方法一样),使用第三方yum源来安装更多软件包。 一、安装CentOS yum源优先级插件yum-priorities yum install yum-priorities #输入y安装二、设置CentOS默认yum源的优先级为最高系统运维 www.osyunwei.com 温馨提醒:qihang01原创内容©版权所有,转载请注明出处及原文链接 cd /etc/yum.repos.d/ #进入yum源目录 vi CentOS-Base.repo #在[base]、[updates]、[extras]组下面添加priority=1,在[centosplus]、[contrib]组下面添加priority=2################################################################ [base]name=CentOS-$releasever – Basemirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6priority=1 [updates]name=CentOS-$releasever – Updatesmirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6priority=1 [extras]name=CentOS-$releasever – Extrasmirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6priority=1 [centosplus]name=CentOS-$releasever – Plusmirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/gpgcheck=1enabled=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6priority=2 [contrib]name=CentOS-$releasever – Contribmirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/gpgcheck=1enabled=0gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6priority=2############################################################### 备注:priority的优先级为1到99,设置为1即优先级最高,1-10为系统保留,第三方yum源的优先级从11-99三、安装epel yum源 rpm -ivh http://download.fedora.redhat.com/pub/epel/6/i386/epel-release-6-5.noarch.rpm rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 vi /etc/yum.repos.d/epel.repo #修改epel yum源优先级,priority=11 ############################################################### [epel]name=Extra Packages for Enterprise Linux 6 – $basearch#baseurl=http://download.fedoraproject.org/pub/epel/6/$basearchmirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-6&arch=$basearchfailovermethod=priorityenabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6priority=11#################################################################四、安装rpmforge yum源 wget http://apt.sw.be/redhat/el6/en/i386/rpmforge/RPMS/rpmforge-release-0.5.2-2.el6.rf.i686.rpm wget http://dag.wieers.com/rpm/packages/RPM-GPG-KEY.dag.txt …
-
Centos 安装多个mysql方法
建用户与组 groupadd mysql useradd -g mysql mysql 解压mysql安装包 #tar zxf mysql-5.5.3-m3.tar.gz #cd mysql-5.5.3-m3 #./configure –prefix=/usr/local/mysql3308 –sysconfdir=/usr/local/mysql3308/etc –with-tcp-port=3308 –localstatedir=/usr/local/mysql3308/localstate –with-unix-socket-path=/tmp/mysql3308.sock –with-extra-charsets=all –enable-thread-safe-client –with-plugins=innobase –with-mysqld-user=mysql –with-client-ldflags=-all-static –with-mysqld-ldflags=-all-static #make #make install 初始化db #/usr/local/mysql3308/bin/mysql_install_db –user=mysql –datadir=/usr/local/mysql3308/localstate/ 创建etc文件夹 #mkdir /usr/local/mysql3308/etc 复制my.cnf #cp support-files/my-medium.cnf /usr/local/mysql3308/etc/my.cnf 修改my.cnf 复制mysql.server至/etc/rc.d/init.d #cp support-files/mysql.server /etc/rc.d/init.d/mysql3308 修改权限 #chmod +x /etc/rc.d/init.d/mysql3308 修改mysql3308 修改目录权限 #chown…
-
