摘要: 本地文件.json .plist文件是较为常用的存储本地数据的文件,对这些文件的操作也是一种常用的基础。 本文同时提供初始化变量的比较标准的写法,如果你有更好的初始化变量的写法,欢迎留言提醒我。 .json文件的数据获取需要通过赋值NSData,再通过NSJSONSerialization 方法将N 阅读全文
posted @ 2017-08-02 13:46 chen_cheng 阅读(525) 评论(0) 推荐(0) 编辑
摘要: 当你安装centos服务器版本的时候,系统默认是不会安装 CentOS 的图形界面程序的,比如:gnome或者kde, 那么如果你想在图形界面下工作的话,可以手动来安装CentOS Gnome GUI包,本文将会讲述如何在CentOS 7 系统下安装gnome图形界面程序。 在安装Gnome 包之前 阅读全文
posted @ 2017-06-19 17:28 chen_cheng 阅读(2981) 评论(0) 推荐(0) 编辑
摘要: 操作系统环境:CentOS Linux release 7.0.1406(Core) 64位CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙步骤。 1、关闭firewall:systemctl stop firewalld.service #停止firewa 阅读全文
posted @ 2017-06-19 16:58 chen_cheng 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 检查8080端口是否被占用: [html] view plain copy [root@centosvm /]# netstat -anp | grep 8080 tcp 0 0 :::8080 :::* LISTEN 5472/java unix 3 [ ] STREAM CONNECTED 18 阅读全文
posted @ 2017-06-13 20:40 chen_cheng 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 一、配置防火墙,开启80端口、3306端口 CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙。 1、关闭firewall: #停止firewall服务 systemctl stop firewalld.service #禁止firewall开机启动 syst 阅读全文
posted @ 2017-06-13 20:35 chen_cheng 阅读(228) 评论(0) 推荐(0) 编辑
摘要: 一:前言 防火墙,其实说白了讲,就是用于实现Linux下访问控制的功能的,它分为硬件的或者软件的防火墙两种。无论是在哪个网络中,防火墙工作的地方一定是在网络的边缘。而我们的任务就是需要去定义到底防火墙如何工作,这就是防火墙的策略,规则,以达到让它对出入网络的IP、数据进行检测。 目前市面上比较常见的 阅读全文
posted @ 2017-06-13 17:26 chen_cheng 阅读(160) 评论(0) 推荐(0) 编辑
摘要: Linux防火墙怎么开放特定端口 iptables是linux下的防火墙,同时也是服务名称。 service iptables status 查看防火墙状态 service iptables start 开启防火墙 service iptables stop 关闭防火墙 service iptabl 阅读全文
posted @ 2017-06-13 13:50 chen_cheng 阅读(1249) 评论(0) 推荐(0) 编辑
摘要: 一、发现问题 在Linux中安装jdk.bin的时候发现问题,报错./config.sh: line 103: /home/jdk.bin : Permission denied 修改权限:chmod 775 /home/jdk.bin 二、chmod命令详解 文件/目录权限设置命令:chmod 用 阅读全文
posted @ 2017-06-13 00:41 chen_cheng 阅读(750) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2017-06-12 23:15 chen_cheng 阅读(3) 评论(0) 推荐(0) 编辑