2020年3月22日

Jave foreach 循环出来的变量能否通过赋值改变

摘要: 代码: public static void main(String[] args) { Integer[] mm = new Integer[] {14561,1264}; for (Integer item : mm) { item=45;//foreach 循环的变量是被transient 修 阅读全文

posted @ 2020-03-22 17:10 滚动的蛋 阅读(784) 评论(0) 推荐(0) 编辑

centos7 yum安装java环境

摘要: centos7中安装java环境,在安装前先查看有无安装过java环境。直接运行java命令,会提示命令未找到,则是没有安装过java环境。 java [root@zixuephp ~]# java -bash: java: command not found 也可以通过rpm命令查看: bash 阅读全文

posted @ 2020-03-22 13:02 滚动的蛋 阅读(2122) 评论(0) 推荐(0) 编辑

centos 7关闭防火墙

摘要: entOS 7.0默认使用的是firewall作为防火墙 关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 firewall-cmd 阅读全文

posted @ 2020-03-22 12:54 滚动的蛋 阅读(210) 评论(0) 推荐(0) 编辑

删除centos7中自带有python2.7

摘要: (1)强制删除已安装python及其关联 # rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps (2)删除残余文件 # whereis python|xargs rm -frv 阅读全文

posted @ 2020-03-22 10:47 滚动的蛋 阅读(2072) 评论(0) 推荐(0) 编辑

导航