随笔分类 - Unix/Linux
摘要:安装sshfs命令:sudo apt-get install sshfs使用modprobe加载模块命令:sudo modprobe fuse设置权限把下面的替换成自己的用户名sudo adduser fusesudo chown root:fuse /dev/fuse创建本地挂载目录mkdir ...
阅读全文
摘要:原文:http://www.techienote.com/2014/04/how-to-install-oracle-12c-enterprise-edition-database-ubuntu-13-10.html。ubuntu14.04 LTS同样适用Following is the how t...
阅读全文
摘要:原文:http://injustfiveminutes.com/2013/03/13/fixing-ssh-login-long-delay/For a long time I had a problem with ssh login on a Redhat 6 server – it was ta...
阅读全文
摘要:创建一个用于挂载iso镜像的目录。由于这个目录不能在挂载时自动创建,所以需要以root身份先创建一个目录。命令: mkdir mount_dir 以root身份把iso镜像挂载到上一步创建的目录上。命令: mount -o loop iso_name mount_dir 检查挂...
阅读全文
摘要:给第二块硬盘分区Step#1通过 fdisk -l 查看磁盘分区信息Output:Disk /dev/sdb: 750.2 GB, 750156374016 bytes255 heads, 63 sectors/track, 91201 cylinders, total 1465149168 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 4096 bytesI/O size (minimum/optimal): 4096 bytes / 4096 bytesDis
阅读全文
摘要:解决办法: 此时要导入rpm的签名信息即可 以root登录,执行下面命令 # rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
阅读全文
摘要:Step # 1: Mount an ISO file Type the following command (replace iso file name with the actual iso file): # yum install createrepo # mkdir -p /mnt/iso/{1,2,3} # mount -o loop /path/to/centos1.iso /mnt/iso/1 Step # 2: Create a repository Use createrepo to generate the necessary XML metadata. Type t...
阅读全文
摘要:一、CentOS 修改IP地址 修改对应网卡的IP地址的配置文件 # vi /etc/sysconfig/network-scripts/ifcfg-eth0 修改以下内容 DEVICE=eth0 #描述网卡对应的设备别名,例如ifcfg-eth0的文件中它为eth0 BOOTPROTO=static #设置网卡获得ip地址的方式,可能的选项为static,dhcp或bootp,分别对应静态指定的 ip地址,通过dhcp协议获得的ip地址,通过bootp协议获得的ip地址 BROADCAST=192.168.0.255 #对应的子网广播地址 HWADDR=00:07:E9:05:E8:B4 #
阅读全文
摘要:Here are the different values that the s, stat and state output specifiers (header "STAT" or "S") will display to describe the state of a process. D Uninterruptible sleep (usually IO) R Running or runnable (on run queue) S Interruptible sleep (waiting for an event to complete) T
阅读全文
摘要:删除/etc/udev/rules.d/70-persistent-net.rules这个文件,重启
阅读全文
摘要:默认情况下,nohup的日志将保存在一个名为nohup.out的文件中。随着时间的推移,nohup.out文件会变得越来越大,直到某一天程序莫名的崩溃。这种情况是可以预防的,有很多策略都可以解决这个问题。Strategy#1利用rotatelogs分割日志每天写一个日志:nohup ./startWebLogic.sh | /usr/sbin/rotatelogs -l /var/logs/logfile.%Y.%m.%d 86400 &每512M写一个日志:nohup ./startWebLogic.sh | /usr/sbin/rotatelogs -l /var/logs/log
阅读全文
摘要:在Unix-like系统中,有一个内置的用于计算MD5值的程序——md5sum。通过md5sum命令计算md5值,格式:echo -n "Your-String-Here" | md5sumeg:echo -n "admin" | md5sum输出结果:21232f297a57a5a743894a0e4a801fc3
阅读全文
摘要:This tutorial focuses on how to setup vsftpd server on your linux based VPS or a dedicated server. The vsftpd stands for “Very Secure FTP Daemon”. It is not just secure as the name suggests but also delivers excellent performance by consuming less memory. The tutorial also teaches you how to configu
阅读全文
摘要:Can I run a 64-bit VMware image on a 32-bit machine?Yes, running a 64-bit OS on a 32-bit processor in VMware is possible.First of all, see if your CPU is capable of running a 64-bit OS. Search for 'Processor check for 64-bit compatibility' on the VMware site. Run the program.If it says your
阅读全文
摘要:如果eth0为192.168.10.123/255.255.255.0,eth1为192.168.20.231/255.255.255.0,则命令格式如下:#route add -net 192.168.10.0 netmask 255.255.255.0 dev eth0#route add -net 192.168.20.0 netmask 255.255.255.0 dev eth1上面的命令把发送给192.168.10.0网段的IP包交给eth0转发,把192.168.20.0网段的IP包交给eth1转发。如果还有可能有发送给其他目的IP的包,那么你肯能希望设置一个“默认网关”:#ro
阅读全文
摘要:[link:http://edin.no-ip.com/blog/hswong3i/oracle-database-11g-release-2-ubuntu-12-04-howto]This HOWTO will guide you though installation of Oracle Database 11g Release 2 on Ubuntu 12.04.Install the base systemFirst of all you should install Ubuntu 12.04 with minimal packages, almost nothing else is
阅读全文
摘要:12.04 official release allows auto-hide of the unity panel.OpenSystem Settingsand click onAppearanceand select theBehaviortab to adjust the settings.
阅读全文
摘要:[link:http://stackoverflow.com/questions/4317973/svn-how-to-resolve-local-edit-incoming-delete-upon-update-message]Short version:$ svn st! + C foo > local edit, incoming delete upon update! + C bar > local edit, incoming delete upon update$ touch foo bar$ svn revert foo bar$ rm foo...
阅读全文
摘要:1:在Client上产生一对密钥,执行ssh-keygen命令,需要输入的地方直接回车,接受缺省值即可,输出如下:[logbak@bbf .ssh]$ lsauthorized_keys id_rsa.pub[logbak@bbf .ssh]$ ssh-keygen -dGenerating public/private dsa key pair.Enter file in which to save the key (/home/logbak/.ssh/id_dsa): Enter passphrase (empty for no passphrase): Enter same passph
阅读全文
摘要:在RHEL平台中使用chkconfig来管理service的开机启动:chkconfig --add <service>chkconfig --level 345 <service> onchkconfig --del <service>Ubuntu中,与chkconfig等价的是update-rc.d:update-rc.d <service> defaultsupdate-rc.d <service> start 20 3 4 5update-rc.d -f <service> remove
阅读全文

浙公网安备 33010602011771号