随笔分类 -  MAC

摘要:打开终端重启apache:sudo /usr/sbin/apachectl restart关闭apache:sudo /usr/sbin/apachectl stop开启apache:sudo /usr/sbin/apachectl start 阅读全文
posted @ 2015-06-16 11:39 GreyWolf 阅读(123) 评论(0) 推荐(0) 编辑
摘要:取消:sudo launchctl unload -w /System/Library/LaunchDaemons/org.apache.httpd.plist添加:sudo launchctl load -w /System/Library/LaunchDaemons/org.apache.htt... 阅读全文
posted @ 2015-06-15 08:23 GreyWolf 阅读(276) 评论(0) 推荐(0) 编辑
摘要:export [-k keychain] [-t type] [-f format] [-w] [-p format] [-P passphrase] [-o outfile] Export one or more items from a keychain to one of a number of external representations. If keychain isn't provided, items will be exported from the user's default keychain. import input... 阅读全文
posted @ 2013-12-12 02:27 GreyWolf 阅读(717) 评论(0) 推荐(0) 编辑
摘要:一. Keychain APIKeyChain中item的结构为:1.增加keychain ItemOSStatus SecItemAdd (CFDictionaryRef attributes,CFTypeRef *result);attributes字典中包括增加items的类型键值对和对应类型的属性键值对。item类型键常量为kSecClass,可能的取值为通用密码(kSecClassGenericPassword),网络密码(kSecClassInternetPassword),证书(kSecClassCertificate),密匙(kSecClassKey),ID(带有密匙的证书kS 阅读全文
posted @ 2013-12-06 15:03 GreyWolf 阅读(1029) 评论(0) 推荐(0) 编辑
摘要:iOS证书、密钥及信任服务——翻译自Apple Reference《Certificate,Key,and Trust Services Programming Guide》本章描述并演示了如何使用证书、密钥和信任服务去导入一个indentity,评估证书是否可信,判断证书失效的原因,以及失效证书的恢复。本章按如下顺序分别演示了:导入一个identity.从导入的数据中获得证书.获得用于证书评估的策略.校验证书,根据指定策略评估证书是否可信.测试证书中的可恢复错误.判断证书是否过期.改变评估条件,忽略过期证书.重新评估证书.“第2章,Certificate,Key,and Trust Serv 阅读全文
posted @ 2013-12-06 15:00 GreyWolf 阅读(1012) 评论(0) 推荐(0) 编辑
摘要:IOS应用程序升级流程介绍:IOS手机端应用程序需要升级时,打开服务器端html文件(本文为ucab.html文件)-》点击在线安装-》打开plist文件(本文中为ucab.plist文件)-》plist文件中存储有应用程序升级包的地址。(本文为:http://192.168.1.126:8088/netcrm/ucab.ipa),这个地址是在打包时填写的Application URL值。通过升级包地址访问升级包,提示安装升级。分步介绍:一、准备工作1、打包用的企业级证书mobileprovision文件,证书制作在这里就不罗嗦了。2、应用升级所需要的服务器端html文件。 应用升级所需要的服 阅读全文
posted @ 2013-12-06 14:59 GreyWolf 阅读(543) 评论(0) 推荐(0) 编辑
摘要:https://developer.apple.com/library/mac/documentation/DeveloperTools/Reference/XcodeBuildSettingRef/1-Build_Setting_Reference/build_setting_ref.html#//apple_ref/doc/uid/TP40003931-CH3-DontLinkElementID_10Product Information Build SettingsThese build settings specify properties of the product the tar 阅读全文
posted @ 2013-12-06 01:57 GreyWolf 阅读(1690) 评论(0) 推荐(0) 编辑
摘要:https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcodebuild.1.htmlThis manual page is part of Xcode Tools version 5.0To obtain these tools:Install the Xcode Tools fromdeveloper.apple.com.If you are running a version of Xcode Tools other than 5.0, view the document 阅读全文
posted @ 2013-12-06 01:26 GreyWolf 阅读(432) 评论(0) 推荐(0) 编辑
摘要:以前的时候只知道做安卓开发的兄弟挺辛苦的,不但开发的时候要适配一堆的机型,好不容易开发完了还要打一堆不同的包给不同的市场。没想到现在这些市场都开辟iOS市场,于是需要打一堆的包给不同的市场,面对暂时给的十二个渠道,批量打包迫在眉睫。于是也便有了这篇小结。通过一翻搜索和学习,打包这事儿就是让xcrun来干,而xcodebuild只是xrun的一个软链接,但是这一链却有了不同的分工:xcodebuild负责将工程源文件编译成xxx.appxcrun负责给xxx.app(签名并)打包成xxx.ipa先说我是咋干的。第一步清理:/usr/bin/xcodebuild -target targetNam 阅读全文
posted @ 2013-12-06 00:31 GreyWolf 阅读(1396) 评论(0) 推荐(0) 编辑
摘要:Plist文件是以.plist为结尾的文件的总称. 众所周知, Plist在Mac OSX系统中起着举足轻重的作用,就如同Windows里面的Registry一样,系统和程序使用Plist文件来存储自己的安装/配置/属性等信息。正如可以使用命令行命令来处理大多数系统管理一样,操作Plist文件也是系统提供的。 所幸有PlistBuddy工具,这个工具通过它的简单语法就可以操作嵌套的键值。如果你的系统没有PlistBudy可以安装苹果的开发工具。基本的使用可以查看man文档或者是在线帮助:$ plistbuddy -hCommand Format: Help - Prints this i... 阅读全文
posted @ 2013-12-05 22:48 GreyWolf 阅读(1388) 评论(0) 推荐(0) 编辑
摘要:1.创建一个android项目参数说明:-k /--package 为命名空间(包名)-a /--name 工程名-p /--path 项目 -t 为目标平台的版本编号命令:./android create project -k com.android.yunju -a yunju -t 5 -p ~/Download/yunju列出不同平台的版本编号命令:android list targets2、已有项目更新以创建的项目更新ant对已经存在的android工程,可以update下(修改平台的版本),这样会自动添加build.xml 等ant 的配置文件命令:./android update 阅读全文
posted @ 2013-12-05 15:29 GreyWolf 阅读(333) 评论(0) 推荐(0) 编辑
摘要:准备工作:已经设置好,xcode中的证书,证书必须是企业级证书,才能通过 itms-services 协议安装Step 1: 把以下代码保存到一个web目录中,命名为 “auto.plist”,注意文件中的ipa路径和 “bundle-identifier” items assets kind software-package url http://127.0.0.1/auto.ipa metadata bu... 阅读全文
posted @ 2013-12-05 14:15 GreyWolf 阅读(1142) 评论(0) 推荐(0) 编辑
摘要:点我下载解压后得到apache2文件夹和readme.txt文本按照readme.txt修改apache2文件夹。 阅读全文
posted @ 2013-11-29 22:01 GreyWolf 阅读(108) 评论(0) 推荐(0) 编辑
摘要:1.下载:http://dominia.org/djao/limit/mod_limitipconn-0.24.tar.bz2解压到一个目录:我的是~/Download/mod_limitipconn-0.24/终端进入该目录。2.安装命令:sudo LTFLAGS=--tag=cc apxs -c -i -a mod_limitipconn.c如遇到问题参考安装mod_bw模块的安装过程。《mac下Apache添加限速模块mod_bw》3.配置: 三、以下配置httpd.conf文件1、确定是否有以下两句,如果有,如上面的安装是成功的,如果没有请手动添加试试(不一定完成相同)LoadMod. 阅读全文
posted @ 2013-11-29 21:42 GreyWolf 阅读(457) 评论(0) 推荐(0) 编辑
摘要:单位有一台DELL的服务器,4核双CPU,4G内存,1TB的存储空间,闲来无事,申请了域名http://www.zxzy123.cn,做了个网站,本以为用这样的配置做个下载站是绰绰有余了,没想到上线没几天,忽然发现有时打不开网页或很慢,惨了,受攻击了,心里想,查看记录,没发现什么问题,带宽也没用尽,ftp很快,关闭了下载链接,发现apache又很快了,问题应该就在这里,可能是用户开太多线程下载大软件了(我的好多软件都是GB级的),如何解决这个问题呢?总不能不让用户下载吧,说干就干,上网找了些资料,发现了两个很好的apache模块: mod_bw 和 mod_limitipconn ;分别是限速 阅读全文
posted @ 2013-11-29 21:11 GreyWolf 阅读(522) 评论(0) 推荐(0) 编辑
摘要:参考文章:http://www.pcmag.com.cn/solution/net/story/200704/51003104.shtml限线程:http://dominia.org/djao/limitipconn2.html限速:http://www.ivn.cl/#vhostlimit#tar jxvf mod_limitipconn-0.23.tar.bz2# cd mod_limitipconn-0.23# /usr/local/apache/bin/apxs -c -i -a mod_limitipconn.cLibraries have been installed in: /u 阅读全文
posted @ 2013-11-29 20:47 GreyWolf 阅读(564) 评论(0) 推荐(0) 编辑
摘要:第一次装完:alias mysql=/usr/local/mysql/bin/mysqlalias mysqladmin=/usr/local/mysql/bin/mysqladmin/usr/local/mysql/bin/mysqladmin -u root password 123456除了在控制面板中开启和关闭mysql,还可以使用终端命令行来控制启动,停止和重启:sudo /Library/StartupItems/MySQLCOM/MySQLCOM [start|stop|restart] 错误代码1045Accessdeniedforuser'root'@' 阅读全文
posted @ 2013-11-29 15:12 GreyWolf 阅读(207) 评论(0) 推荐(0) 编辑
摘要:Windows 7 电脑:C:\Users\使用者名称\AppData\Roaming\Apple Computer\MobileSync\BackupXP 电脑:C:\Documents and Settings\使用者名称\Application Data\Apple Computer\MobileSync\BackupWindowsVista 电脑:C:\Users\使用者名称\AppData\Roaming\AppleComputer\MobileSync\BackupMac 电脑:/Users/使用者名称/Library/Application Support/MobileSync/ 阅读全文
posted @ 2013-11-29 00:18 GreyWolf 阅读(359) 评论(0) 推荐(0) 编辑
摘要:官方文档:Apache2 - Mod_bw v0.7Author : Ivan Barrera A. (Bruce)HomePage : Http://Ivn.cl/apache & http://bwmod.sf.netRelease Date : 01-09-2005Status : Functional. Tested under medium and heavy load.License : Licensed under the Apache Software License v2.0 It must be incl... 阅读全文
posted @ 2013-11-28 19:50 GreyWolf 阅读(868) 评论(0) 推荐(0) 编辑
摘要:~/Library/Preferences/com.apple.finder AppleShowAllFiles -bool true(true改成false就可以不再显示隐藏文件)需要重启,然后在finder中就可以看到隐藏文件了。ALT(Option)+ 长按Finder图标就会出重新开启Finder功能。 阅读全文
posted @ 2013-11-28 18:00 GreyWolf 阅读(219) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示