![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
文章平均质量分 77
冰玉翔龙
这个作者很懒,什么都没留下…
展开
-
CentOS安装FTP
[songjy@localhost ~]$ yum install vsftpdLoaded plugins: fastestmirrorYou need to be root to perform this command.[songjy@localhost ~]$ suPassword: [root@localhost songjy]# yum install vsftpd...原创 2012-03-23 14:30:26 · 48 阅读 · 0 评论 -
Linux下压缩某个文件夹(文件夹打包)
[url]http://blog.sina.com.cn/s/blog_7479f7990100zwkp.html[/url]原创 2013-02-01 13:25:41 · 263 阅读 · 0 评论 -
Linux和Windows之间文件传输(Linux下rz,sz与ssh的配合使用)
[url=http://oldboy.blog.51cto.com/2561410/588592]linux上很方便的上传下载文件工具rz和sz[/url][url=http://www.cnblogs.com/276815076/archive/2011/09/22/2184804.html]Linux下rz,sz与ssh的配合使用[/url]一般来说,linux服务器大多是通过...原创 2013-02-20 09:42:25 · 168 阅读 · 0 评论 -
linux下svn命令大全
1、将文件checkout到本地目录 svn checkout path(path是服务器上的目录) 例如:svn checkout svn://192.168.1.1/pro/domain 简写:svn co 2、往版本库中添加新的文件 svn add file 例如:svn add test.php(添加test.php) svn add *.php(添加当前目录下...原创 2013-02-22 13:35:31 · 54 阅读 · 0 评论 -
linux kill
[url]http://jakbb.iteye.com/blog/1206135[/url]原创 2013-02-22 15:40:40 · 60 阅读 · 0 评论 -
Linux中添加路由
[color=red]Linux添加路由[/color]在文件/etc/init.d/network中可以看到如下部分内容[img]http://dl2.iteye.com/upload/attachment/0092/9933/d06561ec-6059-3b5c-b472-55d4f10637cd.png[/img]可见只要在/etc/sysconfig/static-rout...原创 2014-01-09 22:39:06 · 137 阅读 · 0 评论 -
linux进入单用户模式改密码
[url=http://wenku.baidu.com/view/7325421ec5da50e2524d7f76.html]linux进入单用户模式改密码[/url][url=http://yunpan.cn/Qpt7Lea6p35Js]linux进入单用户模式改密码.doc[/url]Linux用户修改自身密码命令:passwdroot修改其它用用户密码命令:passw...原创 2014-01-10 18:47:51 · 195 阅读 · 0 评论 -
查找某用户下的子线程的父线程
一、 执行命令 ps -ux 显示当前用户所开线程二、 选择一个pid,如28118,并执如下行命令 ps -ef | grep 28118三、 即可看到该pid(28118)的父线程ppid是6688,如下图[img]http://dl.iteye.com/upload/picture/pic/123743/a7a72718-366e-31c2-a0db-4...原创 2013-03-01 15:05:55 · 295 阅读 · 0 评论 -
linux 命令 文本查找 grep
[url=http://linux.chinaunix.net/techdoc/system/2008/09/11/1031488.shtml]linux 命令 文本查找 grep[/url][url=http://yunpan.cn/QEeBZwwEdJPf4]Linux文本编辑器.pdf[/url][url=http://yunpan.cn/Qpt7RFAbMRAkF]鸟哥的Linux...原创 2014-01-16 10:27:43 · 77 阅读 · 0 评论 -
Linux/DOS命令
[url=http://itlab.idcquan.com/Special/linuxshell/index.htmll]Linux shell编程指南[/url][url=http://www.cnblogs.com/benio/archive/2010/10/13/1849946.html]Linux下查看文件和文件夹大小[/url][url=http://eksliang.i...原创 2014-01-22 17:40:30 · 81 阅读 · 0 评论 -
cannot restore segment prot after reloc permission denied
今天在虚拟机上安装jdk-7u25-linux-i586.tar.gz(解压版),运行如下命令时java -version出现错误提示:cannot restore segment prot after reloc permission denied解决方案是:以root用户登录并修改文件/etc/sysconfig/selinux中的内容将SE...原创 2013-08-13 10:18:27 · 105 阅读 · 0 评论 -
Linux中启动Oracle
一、用oracle用户登录linux系统并执行命令:[color=blue]lsnrctl start[/color],如下:[img]http://dl2.iteye.com/upload/attachment/0099/5989/6d928cb3-892c-3ced-96ce-2553c38b7b54.png[/img]二、以sysdba登录启动oracle,如下:[img]htt...原创 2014-07-28 11:33:40 · 73 阅读 · 0 评论 -
Linux中安装MySQL
参阅[url=http://sanwu.iteye.com/blog/2002487]mysql在linux下安装[/url]一、[url=http://dev.mysql.com/downloads/mysql/]下载MySQL[/url]二、检查并删除以前安装的MySQL,如下:[img]http://dl2.iteye.com/upload/attachment/0095...原创 2014-03-19 18:11:50 · 166 阅读 · 0 评论 -
Java调用ping命令
[code="java"]package cn.com.songjy;import java.io.BufferedReader;import java.io.IOException;import java.io.InputStreamReader;public class Ping { public static void main(String[] args) ...原创 2013-11-26 10:26:51 · 587 阅读 · 0 评论 -
Linux开机启动Java程序
一、编写启动Java程序shell脚本(smssend.sh)[code="java"]#!/bin/bash#program# This program is used to startup SmsSentTask.jar#export JAVA_HOME=/usr/java/jdk1.6.0_22export JRE=/usr/java/jdk1.6.0_22/j...原创 2013-11-25 15:26:01 · 215 阅读 · 0 评论 -
CentOS启动FTP
[songjy@localhost ~]$ service vsftpd startbash: service: command not found[songjy@localhost ~]$ suPassword: [root@localhost songjy]# service vsftpd startbash: service: command not found[ro...原创 2012-03-23 15:00:24 · 67 阅读 · 0 评论 -
CentOS保存文件报错
报错信息如下:E37: No write since last change (add ! to override)解决办法是:在修改完后,将命令:q改成:wq即可。原创 2012-03-26 10:54:06 · 118 阅读 · 0 评论 -
CentOS中文乱码
执行命令“yum -y install fonts-chinese”即可,但要确保能连接外网!,如下:[root@localhost bin]# yum -y install fonts-chineseLoaded plugins: fastestmirrorExisting lock /var/run/yum.pid: another copy is running as p...原创 2012-03-26 15:40:33 · 64 阅读 · 0 评论 -
CentOS(linux)开放端口
首先,在CentOS系统中用Vi命令打开iptables文件vi /etc/sysconfig/iptables 然后在CentOS系统中添加 -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 3001 -j ACCEPT 最后在CentOS中重新启动如下服务/sbin/service...原创 2012-12-19 12:51:34 · 68 阅读 · 0 评论 -
Linux授权命令之解决bash: ./start.sh: Permission denied
Linux chmod 命令功能说明:变更文件或目录的权限。语 法:chmod [-cfRv][--help][--version][+/-/=][文件或目录...]或 chmod [-cfRv][--help][--version][数字代号][文件或目录...]或 chmod [-cfRv][--help][--reference=][--ver...原创 2012-12-19 13:52:32 · 6031 阅读 · 0 评论 -
linux的nohup命令的用法
在应用Unix/Linux时,我们一般想让某个程序在后台运行,于是我们将常会用 & 在程序结尾来让程序自动运行。比如我们要运行mysql在后台: /usr/local/mysql/bin/mysqld_safe –user=mysql &。可是有很多程序并不想mysqld一样,这样我们就需要nohup命令,怎样使用nohup命令呢?这里讲解nohup命令的一些用法。nohup /root/...原创 2012-12-20 12:49:02 · 60 阅读 · 0 评论 -
Linux查看端口占用与否
查看端口9010是否已占用方式一:[dev_ydzj_1@localhost logs]$ lsof -i:9010-bash: lsof: command not found[dev_ydzj_1@localhost logs]$ whereis lsoflsof: /usr/sbin/lsof /usr/share/man/man8/lsof.8.gz[dev_...原创 2012-12-21 14:31:28 · 155 阅读 · 0 评论 -
Linux安装和卸载JDK(Java)
Linux安装JDK步骤1. 先从网上下载jdk(jdk-1_5_0_02-linux-i586.rpm) ,推荐SUN的官方网站www.sun.com,下载后放在/home目录中,当然其它地方也行。进入安装目录#cd /home#cp jdk-1_5_0_02-linux-i586.rpm /usr/local#cd /usr/local给所有用户添加可执...原创 2012-12-26 13:42:53 · 96 阅读 · 0 评论 -
linux用户覆盖全局(自定义)变量环境
[dev_ydzj_1@localhost usr]$ cd $HOME[dev_ydzj_1@localhost ~]$ pwd/home/dev_ydzj_1[dev_ydzj_1@localhost ~]$ java -versionjava version "1.6.0_24"Java(TM) SE Runtime Environment (build 1.6.0_24...原创 2012-12-28 13:35:22 · 331 阅读 · 0 评论 -
查看Linux版本命令
[web_meg@localhost logs]$ [color=red]cat /etc/issue[/color]CentOS release 5.5 (Final)Kernel \r on an \m[web_meg@localhost logs]$ [color=red]lsb_release -a[/color]LSB Version: :core-3.1-am...原创 2013-01-04 10:33:53 · 136 阅读 · 0 评论 -
CentOS安装中文输入法
1、执行以下命令:yum install "@Chinese Support"2、重启备注:yum命令只有root用户有权限执行!原创 2013-01-14 16:03:41 · 84 阅读 · 0 评论 -
CentOS 时区 修改
[url]http://os.51cto.com/art/201004/192805.htm[/url]原创 2013-01-14 16:43:47 · 65 阅读 · 0 评论 -
Linux备份数据学习记录
1、插入救援光盘(已刻录系统:systemrescuecd-x86-4.7.2.iso)2、重启(reboot)3、按F11后选择光盘启动,选择chache模式进入系统4、插入备份硬盘(热插拔设备)5、输入命令:partprobe刷新设备6、使用命令:fdisk -l 查看设备(硬盘)是否插入成功(成功后会看到设备:/dev/sdc),一般排在最后的是刚插入的设备,如图...原创 2016-04-15 15:17:30 · 153 阅读 · 0 评论