zno2

随笔分类 -  Linux

1 2 下一页

Linux 环境变量
摘要:/etc/profile vi 编辑追加行 export $JAVA_HOME=/usr/local/jdk1.7 保存退出 source /etc/profile 使其立即生效 阅读全文

posted @ 2023-06-06 13:15 zno2 阅读(14) 评论(0) 推荐(0)

Running Additional Programs at Boot Time (开机启动)
摘要: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  阅读全文

posted @ 2023-06-06 13:15 zno2 阅读(40) 评论(0) 推荐(0)

《大迁徙》 linux
摘要:1. ECS 云服务器(Elastic Compute Service,简称 ECS) https://cn.aliyun.com/product/ecs 2.确认linux版本 [root@iZ255m2u8usZ ~]# cat /proc/versionLinux version 2.6.32 阅读全文

posted @ 2023-06-06 13:15 zno2 阅读(31) 评论(0) 推荐(0)

linux history command
摘要:history | grep somekeywords http://www.computerhope.com/unix/uhistory.htm 阅读全文

posted @ 2023-06-01 17:08 zno2 阅读(19) 评论(0) 推荐(0)

linux 查看磁盘使用情况
摘要:查看当前磁盘使用情况 df -h . 查看所有磁盘使用情况 df -h 查看指定磁盘使用情况 df -h ~ 阅读全文

posted @ 2023-06-01 17:03 zno2 阅读(39) 评论(0) 推荐(0)

linux 查看端口
摘要:step1 查进程号 syntax : netstat -apn|grep [port number] e.g. netstat -apn|grep 8888 explain -a, --all, --listening display all sockets (default: connected 阅读全文

posted @ 2023-06-01 17:03 zno2 阅读(52) 评论(0) 推荐(0)

CentOS 安装 svn server ..
摘要:https://subversion.apache.org/packages.html 1. 安装 Subversion yum install -y subversion 2.安装 mod_dav_svn yum install -y mod_dav_svn 3. 使用 svnadmin 命令创建 阅读全文

posted @ 2023-06-01 16:56 zno2 阅读(40) 评论(0) 推荐(0)

ssh 登录 xshell
摘要:1. 一般配置 ssh 登录 ip 端口 2. 登录(这步很关键,一开始不知道在哪里配置私钥,填完用户名下一步就知道答案了) 3. 添加私钥(将私钥文件上传即可,无需填写密码,确定即可) 4. 成功登录 阅读全文

posted @ 2023-06-01 16:21 zno2 阅读(81) 评论(0) 推荐(0)

-bash: ./test.sh: /bin/bash^M: bad interpreter: No such file or directory
摘要:vi close_feature.sh Esc Shift+: :set ff fileformat=dos 利用编辑器内部命令,查看文件格式是:dos 这种格式用于Windows :set ff=unix :wq! :se[t] {option}? Show value of {option}. 阅读全文

posted @ 2023-06-01 16:20 zno2 阅读(19) 评论(0) 推荐(0)

Bad substitution | unable to access jarfile | Syntax error: "(" unexpected
摘要:如果你遇到了以上的问题,首先检查一下 sh 脚本 是否可执行(权限) ls -l 查看(x) 这是罪魁祸首,会引起各种诡异的问题。 如果只有 read write 权限,没有 excute 权限 请授权 chmod 777 *.sh 再考虑常规的解决办法。 验证是否可执行可以./ + Tab 会列出 阅读全文

posted @ 2023-06-01 16:19 zno2 阅读(129) 评论(0) 推荐(0)

cygwin | Get that Linux feeling - on Windows
摘要:http://www.redhat.com/services/custom/cygwin/ http://www.cygwin.com/ 阅读全文

posted @ 2023-06-01 14:21 zno2 阅读(17) 评论(0) 推荐(0)

linux find
摘要:find / -name nginx.conf 在根目录下寻找nginx.conf 文件 find -help 举例: find / -name java find [path...] [expression] find [path...] -name [PATTERN] 阅读全文

posted @ 2016-08-06 07:46 zno2 阅读(199) 评论(0) 推荐(0)

linux 下运行 tomcat
摘要:一开始找不到表名,原来mysql 表名区分大小写。 修改参数 lower_case_table_names=1 成功运行后不能通过浏览器访问! 开启8080端口 一、关闭防火墙 firewall-cmd --state 查看状态 systemctl disable firewalld.service 阅读全文

posted @ 2016-08-06 07:46 zno2 阅读(166) 评论(0) 推荐(0)

Linux 下安装tomcat 服务器
摘要: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 阅读全文

posted @ 2016-08-06 07:45 zno2 阅读(122) 评论(0) 推荐(0)

yum 安装telnet
摘要:检测是否安装 rpm -qa |grep telnet 安装 yum install xinetd yum install telnet-server yum -y install telnet 再次测试 rpm -qa |grep telnet 阅读全文

posted @ 2016-08-06 07:45 zno2 阅读(1441) 评论(0) 推荐(0)

Linux 查看是64位还是32位
摘要:[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 阅读全文

posted @ 2016-08-06 07:45 zno2 阅读(138) 评论(0) 推荐(0)

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 阅读全文

posted @ 2016-08-06 07:45 zno2 阅读(416) 评论(0) 推荐(0)

Linux相关常用工具
摘要:Xshell Xftp FortiClient SSLVPN 天融信 阅读全文

posted @ 2016-08-06 07:44 zno2 阅读(190) 评论(0) 推荐(0)

awk
摘要:小样 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 阅读全文

posted @ 2016-08-06 07:44 zno2 阅读(159) 评论(0) 推荐(0)

nc
摘要:http://www.computerhope.com/unix/nc.htm 小样 nc -v [-w timeout] [destination] [port] 阅读全文

posted @ 2016-08-06 07:44 zno2 阅读(100) 评论(0) 推荐(0)

1 2 下一页

导航