参考文章[root@oel158 soft]# yum install lrzszLoaded plugins: securitySetting up Install ProcessResolving Dependencies--> Running transaction check---> Pac...
分类:
系统相关 时间:
2014-07-12 00:53:43
阅读次数:
386
假设你使用的是Fedora, Red Hat, CentOS, 或者 ScientificLinux 系统,使用以下的命令安装GNU的C/C++开发包和编译器。# yum groupinstall 'Development Tools' 假设你使用的是Debian 或者 UbuntuL...
分类:
编程语言 时间:
2014-07-09 19:30:48
阅读次数:
226
centos 6.51.yum安装和源代码编译在使用的时候没啥区别,但是安装的过程就大相径庭了,yum只需要3个命令就可以完成,源代码需要13个包,还得加压编译,步骤很麻烦,而且当做有时候会出错,源代码编译安装大概需要2个小时,好处在于可以自己配置地址等一些参数,yum安装半个小时搞定,一般不会出错...
分类:
系统相关 时间:
2014-07-09 16:22:59
阅读次数:
223
如果用db.Accounts.Add() db.A ccounts.Remove()诸如此类的方法做的数据更改就不用加db.Entry(account).State=System.Data.EntityState.Modified;这一句把其状态改成修改的,直接加db.SaveChanges(...
分类:
Web程序 时间:
2014-07-09 14:45:30
阅读次数:
198
原因:没有配置resolv.conf
解决方法:
到/etc目录下配置resolv.conf加入nameserver IP,如:
nameserver 8.8.8.8
nameserver 8.8.4.4
search localdomain
保存再次运行上面命令就可以。
关键一点 serach那一行要在nameserver的后面...
分类:
其他好文 时间:
2014-07-09 13:13:24
阅读次数:
137
2.配置无线
vi /etc/config/wireless
config wifi-device wlan0
option type mac80211
option channel 5
# REMOVE THIS LINE TO ENABLE WIFI:
# 删除或注释掉option disabled...
分类:
其他好文 时间:
2014-07-09 12:37:59
阅读次数:
339
公司原来的备份机器用的是oracle-linux 5.7 运行的不是很稳定,经常出现死机,新装了一个centos6.5, 准备使用bacula来对数据进行备份,在这里记录一下安装过错,备忘.
操作系统:centos6.5
1、安装mysql
用yum安装
yum install mysql mysql-server mysql-devel
这里要注意的是一定要安装mysq...
分类:
其他好文 时间:
2014-07-09 12:16:01
阅读次数:
296
Write code to remove duplicates from an unsorted linked list.
分类:
其他好文 时间:
2014-07-08 22:18:56
阅读次数:
219
今天在用yum安装git的时候遇到这个问题,下面详细说下#ThissystemisnotregisteredtoRedHatSubscriptionManagement.Youcanusesubscription-managertoregister.SettingupInstallProcessNothingtodo其实如果使用redhat的yum源需注册付费,费时费力,没有必要,所以我们只需要把自..
分类:
系统相关 时间:
2014-07-08 09:20:13
阅读次数:
255
1.新安装一台RHEL6.x或CentOS6.x虚拟机1)关闭防火墙、SELinux[root@localhost~]#serviceiptablesstop[root@localhost~]#chkconfigiptablesoff[root@localhost~]#vim/etc/sysconfig/selinuxELINUX=disabled2)使用光盘中的软件包为本机配置YUM源【提示:指到光盘根目录,不要指..
分类:
系统相关 时间:
2014-07-08 08:31:35
阅读次数:
347