![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
文章平均质量分 51
lijie2049
这个作者很懒,什么都没留下…
展开
-
VM克隆CentOS后设置IP
Remove the kernel’s networking interface rules file so that it can be regenerated# rm -f /etc/udev/rules.d/70-persistent-net.rulesRestart the VM# rebootUPDATE your interface configuration ...原创 2015-06-11 09:32:29 · 102 阅读 · 0 评论 -
yum/rpm包卸载和安装
JDK example:0. Remove jdk1.4.2 if existrpm -qa | grep jdkrpm -qa | grep gcj (list the installed jdk)yum -y remove java-1.4.2-gcj-compat-1.4.2.0-40jpp.1151. Download jdk-6u45-linux-i586.bi...原创 2015-06-11 09:56:45 · 204 阅读 · 0 评论 -
postgresql rpm 安装
考虑到生产环境可能无法联网所以直接采用RPM安装。下载RPM装包:http://www.postgresql.org/download/postgresql94 - PostgreSQL client programs and librariespostgresql94-contrib - Contributed source and binaries distribute...原创 2015-06-11 10:37:37 · 1062 阅读 · 0 评论 -
生成ssh key免密钥登录
执行命令ssh-keygen -t rsa该命令会让用户输入密码,我们设置为空就行。所以连续输入三个回车。我们会在~目录生成两个文件id_rsa和id_rsa.pub拷贝id_rsa.pub公钥到目标服务器...原创 2015-06-29 18:00:02 · 524 阅读 · 0 评论 -
有效减少虚拟机镜像文件的大小
使用该方法后我们项目制作出的镜像大小在2.7G而如果不做清理我们项目制作出的镜像会有18G为了制作的img文件较小,我们需要先清理虚拟机中的垃圾。1.交换区做为硬盘上被划为内存使用的区域,里面的内容是可以清理的。2.把空闲区域的磁盘0格式化。Shrinking the DisksWhen you export your VMs in your OVF package...原创 2015-09-17 14:08:22 · 1988 阅读 · 0 评论