![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
云服务器
一位愿意透露姓名的少侠
Java,Android,黑苹果
展开
-
Linux安装Java
Linux安装Java学习在linux目录中创建一个install.sh的文件,拷贝以下内容并粘贴进去执行 chmod u+x install.sh赋权命令执行./isntall.sh命令即可以安装。#!/bin/bash# 创建一个下载目录testPath="/home/download"echo '10%>>>>>>>>>>>>>>>>>>>>>>>原创 2021-11-08 15:36:13 · 131 阅读 · 0 评论 -
Linux出现坏的解释器错误
Linux出现坏的解释器错误在windowns上编写完的程序放到linux下运行的时候,比如:./install.sh的时候显示:“坏的解释器,没有那个文件”错误,原因是windowns下写的shell脚本换行结束是以\n\r结尾的,而linux下是以\n结尾的,所有多出来了一个\r,使用命令:sed -i 's/\r$//' install.sh 回车,把start.sh的\r换成空白,最后就可以运行./install.sh了...原创 2021-11-08 15:03:25 · 1819 阅读 · 1 评论 -
Linux解决端口号被占用
Centos7解决端口号被占用使用命令查看被占用端口号的PID,例如9411端口lsof -i:9411如提示没有lsof命令,则可以用通过yum install lsof -y命令来安装lsof。查看端口占用信息如下:[root@192 ~]# lsof -i:80COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAMEnginx 25687 nobody 6u IPv4 140933 0t0 TCP *:h原创 2021-11-08 10:28:52 · 820 阅读 · 0 评论 -
centos打开防火墙无法访问网站解决办法
启动firewalld[root@localhost]# service firewalld start关闭firewalld[root@localhost]# service firewalld stop重启firewalld[root@localhost]# service firewalld restart永久关闭防火墙[root@localhost]# chkconfig iptables off永久关闭后重启[root@localhost]# chkconfig iptables原创 2020-11-29 21:04:06 · 1659 阅读 · 2 评论