随笔分类 -  linux

摘要:yum install的时候提示:Loaded plugins: fastestmirrorfastestmirror是yum的一个加速插件,这里是插件提示信息是插件不能用了。不能用就先别用呗,禁用掉,先yum了再说。1.修改插件的配置文件#vi/etc/yum/pluginconf.d/faste... 阅读全文
posted @ 2015-08-31 15:41 starof 阅读(48297) 评论(1) 推荐(0) 编辑
摘要:下载好一个rpm包怎样安装?[root@localhost ~]# lsanaconda-ks.cfg install.log install.log.syslog jboss-as-7.1.1-11.el6.x86_64.rpm[root@localhost ~]# rpm -ivh jbo... 阅读全文
posted @ 2015-08-31 15:25 starof 阅读(1145) 评论(0) 推荐(0) 编辑
摘要:一、telnet连接1、linuxlinux下可以通过net stat 查看22端口来确认端口是否开放。然后在cmd中可通过telnet 10.0.200.151 22来连接。2、win7win7中默认端口是23。可通过telnet 10.0.200.153 23或者直接省略端口23来连接。二、wi... 阅读全文
posted @ 2015-08-25 14:26 starof 阅读(1312) 评论(0) 推荐(0) 编辑
摘要:查找n是下一个,N是上一个撤销和重做u:撤销上一步的操作ctrl+r:恢复上一步被撤销的操作替换:1,$ s/aaa/bbb/g 阅读全文
posted @ 2015-08-24 11:13 starof 阅读(461) 评论(0) 推荐(0) 编辑
摘要:一、场景描述ssh连接服务器,发现连接失败,但是对应服务器的ip能够ping通。场景:[root@yl-web ~]# ssh root@10.1.101.35ssh_exchange_identification: read: Connection reset by peer[root@yl-we... 阅读全文
posted @ 2015-08-07 12:33 starof 阅读(161713) 评论(4) 推荐(23) 编辑
摘要:一、chmod及文件权限1、了解文件权限root账户新建一个目录permission,在该目录新建一个文件file,通过ll就可以查看其权限。root@development:~# cd permission/root@development:~/permission# touch fileroot... 阅读全文
posted @ 2015-08-05 17:28 starof 阅读(11603) 评论(0) 推荐(1) 编辑
摘要:一、安装httpd服务apache在centos7中是Apache HTTP server。如下对httpd的解释就是Apache HTTP Server。所以想安装apache其实是要安装httpd。httpd.x86_64 : Apache HTTP Server安装:# yum install... 阅读全文
posted @ 2015-07-29 17:38 starof 阅读(28270) 评论(1) 推荐(0) 编辑
摘要:一、问题描述在apache2的httpd配置中,很多情况都会出现403。刚安装好httpd服务,当然是不会有403的问题了。主要是修改了一些配置后出现,问题描述如下:修改了DocumentRoot目录指向后,站点出现403错误。设置了虚拟主机目录也可能导致403。apache的httpd服务成功启动... 阅读全文
posted @ 2015-07-29 16:47 starof 阅读(43476) 评论(3) 推荐(2) 编辑
摘要:一、系统环境yum update升级以后的系统版本为[root@yl-web yl]# cat /etc/redhat-release CentOS Linux release 7.1.1503 (Core) 二、mysql安装一般网上给出的资料都是#yum install mysql#yum in... 阅读全文
posted @ 2015-07-27 17:07 starof 阅读(383344) 评论(27) 推荐(65) 编辑
摘要:1、查看系统版本[root@yl-web yl]# cat /etc/redhat-release CentOS Linux release 7.1.1503 (Core) 2、查看内核版本[root@yl-web yl]# uname -r3.10.0-229.7.2.el7.x86_64 阅读全文
posted @ 2015-07-27 13:58 starof 阅读(4626) 评论(0) 推荐(1) 编辑
摘要:一、使用介绍1、名词区分打包:将一大堆文件或目录变成一个总的文件【tar命令】压缩:将一个大的文件通过一些压缩算法变成一个小文件【gzip,bzip2等】Linux中很多压缩程序只能针对一个文件进行压缩,这样当你想要压缩一大堆文件时,你得将这一大堆文件先打成一个包(tar命令),然后再用压缩程序进行... 阅读全文
posted @ 2015-05-21 15:08 starof 阅读(70694) 评论(0) 推荐(0) 编辑
摘要:Bind是一款开放源码的DNS服务器软件,由美国加州大学Berkeley分校开发和维护的,全名为Berkeley Internet Name Domain它是目前世界上使用最为广泛的DNS服务器软件,支持各种unix平台和windows平台。一、安装bind1、检查是否已安装bind# dpkg -... 阅读全文
posted @ 2015-03-23 08:40 starof 阅读(4842) 评论(3) 推荐(2) 编辑
摘要:一、问题描述登录linux系统发现控制台无法登录,即使输入正确用户名和密码,也无法登录,回车看到有一个错误“module is unknow”。但是,ssh可以正常登录。二、解决办法ssh登录,然后注释掉session required /lib/security/pam_limits.so改为se... 阅读全文
posted @ 2015-02-13 09:29 starof 阅读(1097) 评论(2) 推荐(0) 编辑
摘要:把django开发好的项目部署到apache2服务器。 记录我的配置过程。apache,django,mod_wsgi,python版本如下。不同版本大同小异。ii apache2 2.2.22-1ubuntu1.6 ... 阅读全文
posted @ 2015-02-07 14:26 starof 阅读(43651) 评论(0) 推荐(1) 编辑
摘要:一、查看Ubuntu版本号方法一root@wiki:~# cat /etc/issueUbuntu 14.04.1 LTS \n \l方法二root@wiki:~# sudo lsb_release -aNo LSB modules are available.Distributor ID: Ubu... 阅读全文
posted @ 2015-01-22 09:57 starof 阅读(1074) 评论(0) 推荐(0) 编辑
摘要:问题:root@wiki:~# sudo lsb_release -asudo: unable to resolve host wikiNo LSB modules are available.Distributor ID: UbuntuDescription: Ubuntu 14.04.1 ... 阅读全文
posted @ 2015-01-22 09:46 starof 阅读(1159) 评论(0) 推荐(0) 编辑
摘要:Sun公司开发NFS (Network File System)之初就是为了在不同linux/Unix系统之间共享文件或者文件夹。可以在本地通过网络挂载远程主机的共享文件,和远程主机交互。NFS共享存储对初学者来说不太好理解,我看到过一个很好的例子,假如有三台机器A、B、C,它们需要访问同一个目录,... 阅读全文
posted @ 2015-01-20 14:51 starof 阅读(5353) 评论(1) 推荐(4) 编辑
摘要:一、初识sed在部署openstack的过程中,会接触到大量的sed命令,比如# Bind MySQL service to all network interfaces.sed -i 's/127.0.0.1/0.0.0.0/g' /etc/mysql/my.cnf那么这条命令是什么意思?接下来介... 阅读全文
posted @ 2014-12-31 11:32 starof 阅读(12172) 评论(0) 推荐(5) 编辑
摘要:linux系统一般来说分为两大类:1、RedHat系列:Redhat、Centos、Fedora等;2、Debian系列:Debian、Ubuntu等。linux系统中,TCP/IP网络是通过若干个文本文件来进行配置的,需要配置这些文件来联网,下面对linux两大类系统中基本的TCP/IP网络配置文... 阅读全文
posted @ 2014-12-10 17:21 starof 阅读(18555) 评论(0) 推荐(1) 编辑