operatingsystem
ylzhjlinux
这个作者很懒,什么都没留下…
展开
-
VI : commnads usage
Searching and Replacing:s/string:s/pattern/replace/:%s/pattern/replace/原创 2014-05-09 15:54:59 · 68 阅读 · 0 评论 -
Centos: install maven, ant , tomcat,mysql,Python,g++,NodeJS
Install ant#wget http://apache.tradebit.com/pub//ant/binaries/apache-ant-1.9.4-bin.zip#unzip apache-ant-1.9.4-bin.zip# mv apache-ant-1.9.4/ /opt/ant#ln -s /opt/ant/bin/ant /usr/bin/ant#vi /e...原创 2014-11-21 12:48:55 · 92 阅读 · 0 评论 -
Centos: install jdk
#tar -xzf jdk-7u51-linux-x64.tar.gz -C /opt/#ln -s /opt/jdk1.7.0_51/bin/java /sbin/java#echo "export JAVA_HOME=/opt/jdk1.7.0_51" > /etc/profile.d/java_env.sh#echo "export JRE_HOME=/opt/jdk1....原创 2014-11-21 11:18:53 · 60 阅读 · 0 评论 -
mac short-cut keys
http://my.oschina.net/leejan97/blog/214112?p=1原创 2015-07-15 10:38:36 · 121 阅读 · 0 评论 -
Ubuntu: common errors
when run#sudo update-managererror:solution:sudo apt-get update && sudo apt-get dist-upgrade---------update firefox flash plugin#tar -xzf install_flash_player_11_linux.x86_6...原创 2015-07-07 09:53:15 · 110 阅读 · 0 评论 -
ubuntu下常用工具软件安装
ubuntu 12.04安装有道词典#sudo gedit /etc/apt/sources.listadd the following two lines to the end of sources.list deb http://ppa.launchpad.net/justzx2011/openyoudao/ubuntu precise maindeb-src...原创 2014-04-12 18:25:25 · 95 阅读 · 0 评论 -
Auto login
Fedora20 minimal server change /usr/lib/systemd/system/[email protected] likes this and rebootExecStart=-/sbin/agetty --noclear %I==>ExecStart=-/sbin/agetty --autologin zhj --noclear %I...原创 2014-04-10 22:18:54 · 498 阅读 · 0 评论 -
linux: useful commands
start time1.uptime16:11:40 up 59 days, 4:21, 2 users, load average: 0.00, 0.01, 0.002. date -d "$(awk -F. '{print $1}' /proc/uptime) second ago" +"%Y-%m-%d %H:%M:%S"3. cat /proc/uptime| ...原创 2014-04-09 14:19:21 · 128 阅读 · 0 评论 -
kvm centos clone network configuration
clone a centos vm, there is no ethX device. To fix the problem,following the steps1.# rm -f /etc/udev/rules.d/70-persistent-net.rules2.# vim /etc/sysconfig/networking/devices/ifcfg-ethx//the ...原创 2014-03-25 17:07:15 · 148 阅读 · 0 评论 -
centos change hostname permanently
change hostname under centos #hostname newhostname #hostname when poweroff, the hostname is still stale without changed--------------------------to change hostname permanently.following...原创 2014-03-23 23:11:05 · 166 阅读 · 0 评论 -
fedora 20 set static ip
#vi /etc/hostnamenew_hostname [root@localhost ~]#vi /etc/sysconfig/network-scripts/ifcfg-eth0TYPE="Ethernet"# change BOOTPROTO="none" DEFROUTE="yes" IPV4_FAILURE_FATAL="no" IPV6IN...原创 2014-03-23 23:09:30 · 104 阅读 · 0 评论 -
Centos: errors solution
when I run #yum repolist, error comes yum Error: Cannot retrieve metalink for repository: epel.S:vi /etc/yum.repos.d/epel.repo change https to http =====set mysqld start on boot#chkc...原创 2014-05-13 15:43:10 · 68 阅读 · 0 评论 -
centos 6.5 install mysql 5.6
To install the MySQL server 5.6,follow the given below steps.Step 1: Login into the Server and download the yum repo rpm package.(URL: http://dev.mysql.com/downloads/repo/)yum install wgetwget h...原创 2014-12-09 11:10:06 · 76 阅读 · 0 评论