随笔分类 -  linux学习

上一页 1 2 3 4 5 6 7 下一页
火狐浏览器修改userAgent
摘要:火狐浏览器修改userAgent的办法:在火狐浏览器地址栏输入“about:config”,按下回车进入设置菜单。找到“general.useragent.override”,如果没有这一项,则点右键“新建”->“字符串”,输入这个字符串。将其值设为自己想要的UserAgent 阅读全文
posted @ 2013-10-15 19:04 一天不进步,就是退步 阅读(549) 评论(0) 推荐(0)
linux主机间复制文件
摘要:命令基本格式:1、从 本地 复制到 远程* 复制文件: * 命令格式: scp local_file remote_username@remote_ip:remote_folder 或者 scp local_file remote_username@remote_ip:remote_file2、从 远程 复制到 本地从 远程 复制到 本地,只要将 从 本地 复制到 远程 的命令 的 后2个参数 调换顺序 即可; 阅读全文
posted @ 2013-10-10 16:09 一天不进步,就是退步 阅读(899) 评论(0) 推荐(0)
解决两台centos虚拟机Telnet服务无法联机的问题
摘要:关闭防火墙[root@localhost ~]# service iptables stopiptables: Flushing firewall rules: [ OK ]iptables: Setting chains to policy ACCEPT: filter [ OK ]iptables: Unloading modules: [ OK ]如果此时无法使用scp命令,可以使用以下命令检测是否安装openssh# rpm -qa |grep openssh如果没有出现包含了openssh client,openssh server,及openssh3个公共组件则说明安装不全或者没有 阅读全文
posted @ 2013-10-09 23:27 一天不进步,就是退步 阅读(812) 评论(0) 推荐(0)
Install Redis on CentOS 6.4--转
摘要:Install Redis on CentOS 6.4source:http://thoughts.z-dev.org/2013/05/27/install-redis-on-centos-6-4/We’re provisioning production machines today!This means that I’m finding a lot of things that I did previously to make my life easier. We use Redis primarily to temporarily cache data retrieved from Ri 阅读全文
posted @ 2013-10-09 22:32 一天不进步,就是退步 阅读(438) 评论(0) 推荐(1)
解决 ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)异常
摘要:ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)解决方案:在java_opts="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n address=port"中修改port值。 阅读全文
posted @ 2013-10-09 15:19 一天不进步,就是退步 阅读(6162) 评论(0) 推荐(0)
主机访问虚拟机中linux上的web服务
摘要:环境:主机windows xp 虚拟机centos 6.4[root@localhost /]# iptables -I INPUT -p tcp --dport 80 -j ACCEPT[root@localhost /]# /etc/rc.d/init.d/iptables saveiptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ][root@localhost /]# cd /etc[root@localhost etc]# cd init.d[root@localhost init.d]# lsauditd 阅读全文
posted @ 2013-10-08 23:12 一天不进步,就是退步 阅读(1486) 评论(0) 推荐(0)
How can I exclude directories from grep -R?
摘要:‘--exclude-dir=dir’ Exclude directories matching the pattern dir from recursive directory searches. Recent versions of GNU Grep (>= 2.5.2) provide:‘--exclude-dir=dir’ Exclude directories matching the pattern dir from recursive directory searches. So you can do:grep -R --exclude-dir=node_module... 阅读全文
posted @ 2013-10-08 21:57 一天不进步,就是退步 阅读(741) 评论(0) 推荐(0)
RPM安装命令总结--转载
摘要:原地址:http://www.cnblogs.com/zqwang0929/p/3352237.html在 Linux 操作系统下,几乎所有的软件均通过RPM 进行安装、卸载及管理等操作。RPM 的全称为Redhat Package Manager ,是由Redhat 公司提出的,用于管理Linux 下软件包的软件。Linux 安装时,除了几个核心模块以外,其余几乎所有的模块均通过RPM 完成安装。RPM 有五种操作模式,分别为:安装、卸载、升级、查询和验证。 1)用RPM安装软件包,最简单的命令如下:1 #rpm -i example.rpm 安装 example.rpm 包;2 #rpm 阅读全文
posted @ 2013-10-08 09:19 一天不进步,就是退步 阅读(382) 评论(0) 推荐(0)
用于软件包管理的21个Linux YUM命令 转载
摘要:http://flycars001.iteye.com/blog/1949085YUM到底是啥东东?YUM(Yellowdog Updater Modified)是一款开源命令行及图形化软件包管理工具,面向基于RPM(红帽软件包管理器)的Linux系统。 它让广大用户和系统管理员可以在系统上轻松地安装、更新、移除或搜索软件包。它由Seth Vidal开发和发布,采用了GPL(通用公共许可证),是一款开源工具。这意味着,谁都可以下载和访问代码,以修复软件错误,开发定制的软件包。YUM 通过解决软件包的依赖项问题,使用众多的第三方软件库来自动安装软件包。1. 使用Yum安装软件包想安装一个名为Fi 阅读全文
posted @ 2013-09-30 11:09 一天不进步,就是退步 阅读(1481) 评论(0) 推荐(0)
libtool: link: `dftables.lo' is not a valid libtool object
摘要:手误造成的错误:make & make install。&位操作符导致的错误!应该是make && make install。 阅读全文
posted @ 2013-09-26 23:43 一天不进步,就是退步 阅读(1112) 评论(0) 推荐(0)
CentOS下安装JDK7 转载
摘要:转载地址:http://www.cnblogs.com/rilley/archive/2012/02/02/2335395.htmlCentOS下安装JDK7下载地址:http://www.oracle.com/technetwork/java/javase/downloads/java-se-jdk-7-download-432154.html1. 安装JDK1.7.0下载完成后在取得root权限后执行:[root@sea sea]# sudo rpm -ivh /目录/jdk-7-linux-x64.rpm执行结果:Preparing... ######################## 阅读全文
posted @ 2013-09-26 00:04 一天不进步,就是退步 阅读(305) 评论(0) 推荐(0)
centos nfs配置--转载
摘要:http://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-nfs-client-config.html18.6.NFS Server ConfigurationThere are three ways to configure an NFS server under Red Hat Enterprise Linux: using the NFS Server Configuration Tool (system-config-nfs), manually editing its configuration file (/etc/ex 阅读全文
posted @ 2013-09-23 11:06 一天不进步,就是退步 阅读(1921) 评论(0) 推荐(1)
Mount NAS Storage in Linux Overview 转载
摘要:Mount NAS Storage in LinuxOverviewMounting your NAS Storage to a device that runs on a Linux-based Operating System can be done using a series of simple commands in the shell or terminal within the OS. This procedure outlines the steps required to mount NAS Storage on any of the following operating 阅读全文
posted @ 2013-09-22 15:41 一天不进步,就是退步 阅读(1512) 评论(0) 推荐(1)
Device eth0 does not seem to be present, delaying initialization.转载
摘要:昨天在vm里面克隆了个虚拟机,克隆之后,启动了网卡起不来,已启动就报Device eth0 does not seem to be present, delaying initialization.[FAILED]经过各种google,最终要是找到了答案使用克隆后的虚拟机时发现原来在基本系统中的网卡eth0到了新系统却没有了,使用ifconfig -a会发现只有lo。http://www.linuxyan.com/linux-service/181.html因为基本系统的网络相关配置都是基于eth0的,如果基于此克隆虚拟机继续克隆或复制新的虚拟机,网卡的标识每一次都会自动加1变成eth1(第二 阅读全文
posted @ 2013-09-21 21:43 一天不进步,就是退步 阅读(308) 评论(0) 推荐(0)
install keepalived on RedHat/CentOS to provide IP failover for web cluster
摘要:Contents[hide]1 Introduction2 Our Sample Setup3 Install Keepalived4 Install Kernel Headers5 Compile keepalived6 Create Required Softlinks7 Configuration8 Verify: Keepalived Working Or Not8.1 Sample outputs8.2 Hugo said ...8.3 YazzY said ...IntroductionKeepalived provides a strong and robust health c 阅读全文
posted @ 2013-09-21 18:53 一天不进步,就是退步 阅读(921) 评论(0) 推荐(0)
Tracert 转
摘要:路由跟踪在线TracertTracert(跟踪路由)是路由跟踪实用程序,用于确定 IP 数据报访问目标所采取的路径。Tracert 命令用 IP 生存时间 (TTL) 字段和 ICMP 错误消息来确定从一个主机到网络上其他主机的路由。Tracert 工作原理 通过向目标发送不同 IP 生存时间 (TTL) 值的“Internet 控制消息协议 (ICMP)”回应数据包,Tracert 诊断程序确定到目标所采取的路由。要求路径上的每个路由器在转发数据包之前至少将数据包上的 TTL 递减 1。数据包上的 TTL 减为 0 时,路由器应该将“ICMP 已超时”的消息发回源系统。 Tra... 阅读全文
posted @ 2013-09-11 18:25 一天不进步,就是退步 阅读(240) 评论(0) 推荐(0)
《高性能网站构建实战》 目录--转
摘要:《高性能网站构建实战》第一篇 架构规划篇第1章 网站架构简介 21.1 网站的硬架构 21.1.1 机房的选择 21.1.2 带宽的大小 21.1.3 服务器的划分 31.2 网站的软架构 31.2.1 框架的选择 31.2.2 逻辑的分层 41.3 网站架构需要考虑的几个问题 51.3.1 html静态化 51.3.2 图片服务器分离 51.3.3 数据库集群和库表散列 61.3.4 缓存 61.3.5 镜像 71.3.6 负载均衡 71.4 操作系统的选择及参数优化 71.4.1 用u盘自动安装操作系统 71.4.2 系统初始化 13.1.5 小结 17第二篇 负载应用篇第2章 lvs+k 阅读全文
posted @ 2013-09-11 08:50 一天不进步,就是退步 阅读(824) 评论(0) 推荐(0)
linux下如何修改weblogic console登陆的用户名和密码
摘要:1. 执行安装目录下config.sh./config.sh2.选择 2|Extend an existing WebLogic configuration3. 别的一路跳过,到修改security,选择yes,即可修改weblogic console登录的用户名和密码。 阅读全文
posted @ 2013-09-03 11:41 一天不进步,就是退步 阅读(2677) 评论(0) 推荐(0)
启动weblogic的错误:Could not obtain an exclusive lock to the embedded LDAP data files directory
摘要:http://hi.baidu.com/kaisep/item/0e4bf6ee5da001d1ea34c986 源地址启动weblogic的错误:Could not obtain an exclusive lock to the embedded LDAP data files directory启动weblogic时报以下错误: 解决办法: 为避免此错误,应确保没有没有启动其它进程或访问此文件并将它删除。 在关机时通常会对此文件进行解锁,但如果上次发生了异常关机(如崩溃... 阅读全文
posted @ 2013-09-03 10:36 一天不进步,就是退步 阅读(1819) 评论(0) 推荐(0)
linux常用命令
摘要:#!/bin/sh myPath="/var/log/httpd/" myFile="/var /log/httpd/access.log" #这里的-x 参数判断$myPath是否存在并且是否具有可执行权限 if [ ! -x "$myPath"]; then mkdir "$myPath" fi 阅读全文
posted @ 2013-09-03 09:17 一天不进步,就是退步 阅读(458) 评论(0) 推荐(0)

上一页 1 2 3 4 5 6 7 下一页