创建头文件(.h), 导出常量:// Constants.h
FOUNDATION_EXPORT NSString *const MyFirstConstant;
FOUNDATION_EXPORT NSString *const MySecondConstant;
//etc.(代码不用于C/C++混合编程时, 可以使用extern代替FOUNDATION_EXPORT.)定义源文件(.m), 设...
分类:
其他好文 时间:
2015-07-13 12:22:50
阅读次数:
130
CentOS6的请编辑/etc/yum.repos.d/epel.repo输入以下内容[epel]name=ExtraPackagesforEnterpriseLinux6-$basearch#baseurl=http://download.fedoraproject.org/pub/epel/6/...
分类:
其他好文 时间:
2015-07-13 12:05:11
阅读次数:
123
[oracle@node1 ~]$ vi /etc/oratab# This file is used by ORACLE utilities. It is created by root.sh# and updated by the Database Configuration Assistant...
分类:
其他好文 时间:
2015-07-13 10:03:44
阅读次数:
98
Tomcat 可充当一个完全独立的 web 服务器。Tomcat 最大优势在于 servlet 和 JSP 引擎。 安装 tomcat: Sudo yum install -y tomcat-* 启动 tomcat: [user@localhost ~]$ /etc/rc.d/init.d/tomcat start [user@loca...
分类:
系统相关 时间:
2015-07-13 06:43:51
阅读次数:
232
1、storm集群配置JDK环境变量问题 问题分析:在linux系统下配置JDK后一般修改/etc/profile值进行环境变量配置,但是安装storm集群时会出现问题 问题解决:需要在/etc/.bashrc文件中也加入环境变量不然安装的JDK无...
分类:
其他好文 时间:
2015-07-13 06:41:08
阅读次数:
131
linux 命令总结(转载)1、 永久更改ip ifconfig eth0 新ip 然后编辑/etc/sysconfig/network-scripts/ifcfg-eth0,修改ip2、从Linux上远程显示Windows桌面安装rdesktop包3、 手动添加默认网关 以root用户,执行: r...
分类:
系统相关 时间:
2015-07-13 06:29:27
阅读次数:
318
wgethttp://mirrors.163.com/.help/CentOS{6/7}-Base-163.repo下载163的yum源替换本机/etc/yum.repo.d/下的repo文件即可安装内核编译环境yuminstallDevelopmentlib和yuminstallncrsesdeve下载内核wgethttps://www.kernel.org/pub/linux/kernel/v3.x/linux-3.12.44.tar.xz此为3...
分类:
其他好文 时间:
2015-07-13 01:09:24
阅读次数:
109
1、初始化mysql数据库(实际就是mysql表、test表、infomation表)#cd/mysql/mysql#scripts/mysql_install_db--user=mysql--basedir=/mysql/mysql--datadir=/data/33072、复制启动文件#cp/mysql/mysql/support-files/mysql.server/etc/init.d/mysqld3、更改配置文件#cp/mysql/su..
分类:
数据库 时间:
2015-07-13 01:06:48
阅读次数:
153
1、初始化mysql数据库(实际就是mysql表、test表、infomation表)#cd/mysql/mysql#scripts/mysql_install_db--user=mysql--basedir=/mysql/mysql--datadir=/data/33072、复制启动文件#cp/mysql/mysql/support-files/mysql.server/etc/init.d/mysqld3、更改配置文件#cp/mysql/su..
分类:
数据库 时间:
2015-07-13 01:05:44
阅读次数:
173
按下面步骤可禁止ipv6模块:#chkconfigip6tablesoff#vim/etc/modprobe.d/dist.conf在最后加入,注意格式
aliasnet-pf-10off
optionsipv6disable=1#vim/etc/hosts#::1localhostlocalhost6localhost6.localdomain6最后重启生效然后看看ipv6是不是没有了#lsmod|grepipv6什么都不显..
分类:
其他好文 时间:
2015-07-13 00:59:57
阅读次数:
131