摘要:/etc/profile vi 编辑追加行 export $JAVA_HOME=/usr/local/jdk1.7 保存退出 source /etc/profile 使其立即生效
阅读全文
摘要:https://www.centos.org/docs/5/html/Installation_Guide-en-US/s1-boot-init-shutdown-run-boot.html The /etc/rc.d/rc.local script is executed by the init
阅读全文
摘要:1. ECS 云服务器(Elastic Compute Service,简称 ECS) https://cn.aliyun.com/product/ecs 2.确认linux版本 [root@iZ255m2u8usZ ~]# cat /proc/versionLinux version 2.6.32
阅读全文
摘要:history | grep somekeywords http://www.computerhope.com/unix/uhistory.htm
阅读全文
摘要:查看当前磁盘使用情况 df -h . 查看所有磁盘使用情况 df -h 查看指定磁盘使用情况 df -h ~
阅读全文
摘要:step1 查进程号 syntax : netstat -apn|grep [port number] e.g. netstat -apn|grep 8888 explain -a, --all, --listening display all sockets (default: connected
阅读全文
摘要:https://subversion.apache.org/packages.html 1. 安装 Subversion yum install -y subversion 2.安装 mod_dav_svn yum install -y mod_dav_svn 3. 使用 svnadmin 命令创建
阅读全文
摘要:1. 一般配置 ssh 登录 ip 端口 2. 登录(这步很关键,一开始不知道在哪里配置私钥,填完用户名下一步就知道答案了) 3. 添加私钥(将私钥文件上传即可,无需填写密码,确定即可) 4. 成功登录
阅读全文
摘要:vi close_feature.sh Esc Shift+: :set ff fileformat=dos 利用编辑器内部命令,查看文件格式是:dos 这种格式用于Windows :set ff=unix :wq! :se[t] {option}? Show value of {option}.
阅读全文
摘要:如果你遇到了以上的问题,首先检查一下 sh 脚本 是否可执行(权限) ls -l 查看(x) 这是罪魁祸首,会引起各种诡异的问题。 如果只有 read write 权限,没有 excute 权限 请授权 chmod 777 *.sh 再考虑常规的解决办法。 验证是否可执行可以./ + Tab 会列出
阅读全文
摘要:http://www.redhat.com/services/custom/cygwin/ http://www.cygwin.com/
阅读全文
摘要:find / -name nginx.conf 在根目录下寻找nginx.conf 文件 find -help 举例: find / -name java find [path...] [expression] find [path...] -name [PATTERN]
阅读全文
摘要:一开始找不到表名,原来mysql 表名区分大小写。 修改参数 lower_case_table_names=1 成功运行后不能通过浏览器访问! 开启8080端口 一、关闭防火墙 firewall-cmd --state 查看状态 systemctl disable firewalld.service
阅读全文
摘要:1. 下载tomcat wget http://apache.fayea.com/tomcat/tomcat-7/v7.0.68/bin/apache-tomcat-7.0.68.tar.gz tar zxvf apache-tomcat-7.0.68.tar.gz 2. 下载JDK 进入www.o
阅读全文
摘要:检测是否安装 rpm -qa |grep telnet 安装 yum install xinetd yum install telnet-server yum -y install telnet 再次测试 rpm -qa |grep telnet
阅读全文
摘要:[root@VM_7_88_centos ~]# uname -a Linux VM_7_88_centos 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
阅读全文
摘要:http://www.ruanyifeng.com/blog/2012/02/a_history_of_unix_directory_structure.html http://www.pathname.com/fhs/pub/fhs-2.3.html http://lists.busybox.ne
阅读全文
摘要:Xshell Xftp FortiClient SSLVPN 天融信
阅读全文
摘要:小样 jstat -gc `ps aux | grep java | awk '/broker/{print $2}'` if [[ ${SCAN_FLAG} -ne 1 ]]; then [[ -n `ps aux | grep java | grep broker` ]] && kill -9
阅读全文
摘要:http://www.computerhope.com/unix/nc.htm 小样 nc -v [-w timeout] [destination] [port]
阅读全文