
Linux
shihuan830619
J2EE程序员.
展开
-
RedHat6.5用镜像文件配置yum源
RedHat [color=blue]6.5[/color] [color=red]x64[/color]位[root@gyum ~]# mkdir -p /mnt/cdrom[root@gyum ~]# df –h[root@gyum ~]# yum repolist[img]http://dl2.iteye.com/upload/attachment/0116/8251/d...2016-04-20 17:20:11 · 419 阅读 · 0 评论 -
realvnc使用
远端实验服务器: RedHat 6.5一、在Linux上安装vncserver[root@shihuan ~]# rpm -qa|grep vnc[root@shihuan ~]# yum -y install tigervnc-server二、启用vncserver[root@shihuan ~]# vncserverYou will require a pa...2016-03-23 17:19:48 · 705 阅读 · 1 评论 -
java调用shell脚本
附件java执行shell.rar里是已经下载好的jar包。http://www.jcraft.comhttp://www.jcraft.com/jsch/examples/https://en.wikipedia.org/wiki/Expecthttps://github.com/cverges/expect4j可以到maven里搜索expect4j...原创 2016-01-26 00:53:29 · 215 阅读 · 0 评论 -
shell脚本编程
例1: 用vi编辑文件echodate输出系统日期[root@testgitlab opt]# vi echodate#%Y#%m#%decho `date +%Y%m%d`保存并退出。 [root@testgitlab opt]# sh ./echodate20160125或者[root@testgitlab opt]# chmod 755 e...原创 2016-01-26 00:13:31 · 131 阅读 · 0 评论 -
Linux目录名称
[root@testgitlab [color=red]/[/color]]# 这个是根目录[root@testgitlab [color=red]~[/color]]# 这个是主目录[root@testgitlab [color=red]home[/color]]# 这个是家目录[root@testgitlab [color=red]opt[/color]]# 这个...2016-01-25 22:23:50 · 162 阅读 · 0 评论 -
RedHat6.5在线安装GitLab
[url]https://gitlab.com/gitlab-org/gitlab-recipes/tree/master/install/centos[/url] --centos安装gitlab[url]https://github.com/gitlabhq/gitlab-recipes/tree/master/install/centos[/url] ...2016-01-22 21:09:39 · 1397 阅读 · 0 评论 -
Linux安装Git服务
[root@testgit rpmlib]# pwd/opt/rpmlib[root@testgit rpmlib]# lsasciidoc-8.6.9-1.el6.rfx.noarch.rpm gettext-devel-0.17-16.el6.x86_64.rpmautoconf-2.63-5.1.el6.noarch.rpm libiconv-1.14.tar....2016-01-22 21:01:52 · 170 阅读 · 0 评论 -
Linux安装ruby
[url]https://rvm.io/[/url] 官方网站[url]https://github.com/rvm/rvm[/url] 官方离线包在线安装步骤:[root@testagent ~]# \curl -sSL https://get.rvm.io | bash -s stablecurl: (6) Couldn't resolve host 'get...2016-01-22 20:53:29 · 326 阅读 · 0 评论 -
验证RedHat6是否能够联网
验证RedHat6是否能够联网:[root@testagent ~]# ping 8.8.8.8[root@testagent ~]# ping 8.8.4.4下载www.baidu.com首页并且显示下载信息:[root@testagent ~]# wget -d http://www.baidu.com能成功下载百度首页index.html文件,但不一定能ping http...2016-01-22 20:46:47 · 545 阅读 · 0 评论 -
Linux非联网状态安装gcc依赖包
cloog-ppl-0.15.7-1.2.el6.x86_64.rpmcpp-4.4.6-4.el6.x86_64.rpmgcc-4.4.7-16.el6.x86_64.rpmgcc-c++-4.4.7-16.el6.x86_64.rpmglibc-devel-2.12-1.166.el6.x86_64.rpmglibc-headers-2.12-1.80.el6.x86_64...原创 2016-01-22 20:43:50 · 726 阅读 · 0 评论 -
Hadoop集群环境搭建
最近学习了下hadoop的安装。下面详细说明下步骤。一、环境我的是在Linux环境下进行安装的。现在有三台服务器,分配如下:192.168.3.100 NameNode --主机名testhadoop192.168.3.201 DataNode1 --主机名hadoopsub1192.168.3.202 DataNode2 ...2015-12-11 17:09:29 · 131 阅读 · 0 评论 -
Linux hosts文件参考内容
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain410.29.2.68 ceshi localhost.localdomain localhost4 localhost4.localdomain4::1 localhost localhost.localdomain ...原创 2015-11-11 17:13:22 · 280 阅读 · 0 评论 -
Linux下ZooKeeper集群搭建
shihuan830619@163.com邮箱的网盘里"我的原创作品"目录有word文档。2017-12-26 17:19:36 · 184 阅读 · 0 评论