存档在 2016年12月

怎样清除环境变量

2016年12月30日

因为错误设置环境变量,gcc坏掉了

checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/root/mod_gnutls-0.7.5':
configure: error: C compiler cannot create executables
See `config.log' for more details

参考:http://stackoverflow.com/questions/18872796/configure-error-c-compiler-cannot-create-executables-when-installing-ruby-1-9

In my case, the issue is due to the customized LDFLAGS. I was compiling one of python packages. Because my python is installed in a customized location, I had to temporarily set the LDFLAGS variable env. As soon as I unset this env variable, the problem went away. So FYI.

参考:http://blog.csdn.net/weiyidemaomao/article/details/7742605

因为刚才导致出问题的2个环境变量是 CFLAGS 和 LIBS :

unset CFLAGS && unset LIBS

米农的时间管理

2016年12月29日

Time Management for Domainers

米农的时间管理

http://www.dnforum.com/f578/time-management-domainers-thread-378560

The art of time management is never so critical as it must be for domain name professionals, or “domainers”. When time is critical, a missed domain name deal or lost domain auction can tamp down a month’s victorious site site promotion. Even intermediate domainers can lose a half day lost in Facebooking or catching up on a month’s worth of unchecked hosting popmail.

Domaining sucks time. Domain names wait for the pass and demand the domainer run with the football howver long that may be. Central tenets of domainer desktop and home office efficiency degrade as domainers struggles to sip that last drop of connectivity or bandwidth before lights out. Iphones and PDA’s blurt domain Twitters and these vy with car keys for precious possessions not to be surrendered unless loss of life is imminent.

The sun never really sets on domaining, because people all over the world are logging on checking out their domain traffic, affiliate revenues, and and mobile computing get thrown out the window when the herd turns toward auctionville or there is a crisis spiking between domain partners or web development deal principals. the clock face hands can start spinning wildly once a full agenda of web site building, conference calls, auction timelines, and project deadlines hits. here are some tips for avid domaining without a safety net.

» 阅读更多: 米农的时间管理

各外资银行资费

2016年12月23日

花旗银行

费率:https://www.citibank.com.cn/sim/chinese/static/pdf/debitcardfee_02.pdf

北京花旗银行嘉里中心支行
中国北京市朝阳区光华路一号嘉里中心办公楼首层02单元和北办公楼二层201单元
010-59379000

渣打银行

费率:https://www.sc.com/global/av/cn-cb-tariff-zh.pdf

渣打银行(中国)有限公司北京分行
中国北京市朝阳区东三环中路1号环球金融中心渣打大厦1楼及11、12楼
010-59188828

渣打银行(中国)有限公司北京燕莎中心支行
中国北京市朝阳区亮马桥路50号北京燕莎中心写字楼S102B/S124/S123室
010-59033299

汇丰银行

费率:http://www.hsbc.com.cn/1/PA_ES_Content_Mgmt/content/china/generic/download/documents/dcuserguidecn.pdf

汇丰银行(中国)北京国贸支行
北京市朝阳区建国门外大街1号国贸商城地面层L129室
010-59997500

汇丰银行(中国)北京燕莎中心支行
北京市朝阳区亮马桥路50号凯宾斯基饭店一层3号及4号商铺
010-59997900

参考:https://www.zhihu.com/question/20015638
参考:http://wangdian.51credit.com/beijing_hsbcbank/1?keyWord=

怎样编译安装libc-ares

2016年12月20日

官网:https://c-ares.haxx.se/
下载:https://github.com/c-ares/c-ares/

参考:https://github.com/c-ares/c-ares/blob/master/INSTALL
参考:http://blog.csdn.net/jaylong35/article/details/7041800

最新版本的nghttp2要求安装libc-ares。

yum安装libc-ares

yum安装的不是最新版本,但因为编译时如果内存不足可能卡住。

yum install c-ares-devel

将安装:

c-ares-1.10.0-3.el7.x86_64
c-ares-devel-1.10.0-3.el7.x86_64 

编译nghttp2进行configure时,显示:

checking for LIBCARES... yes

环境参数:

LIBCARES_CFLAGS="-I/usr/include" LIBCARES_LIBS="-L/usr/lib -lcares"

编译安装libc-ares

wget https://c-ares.haxx.se/download/c-ares-1.12.0.tar.gz && tar -zxvf c-ares-1.12.0.tar.gz && cd c-ares-1.12.0
./configure
make
make install

相关文件路径:

...
libtool: install: chmod 644 /usr/local/lib/libcares.a
...
/usr/bin/install -c -m 644 ares.h ares_version.h ares_dns.h ares_build.h ares_rules.h '/usr/local/include'
...
/usr/bin/install -c -m 644 libcares.pc '/usr/local/lib/pkgconfig'
...

环境参数:

LIBCARES_CFLAGS="-I/usr/local/include" LIBCARES_LIBS="-L/usr/local/lib -lcares"

怎样安装WHMCS-EuroDNS

2016年12月15日

域名接口:WHMCS-EuroDNS

介绍:https://www.eurodns.com/reseller-faqs
插件:https://www.eurodns.com/assets/files/WHMCS.zip

安装:

1. Install WHMCS on your server. (Skip this step if you received your WHMCS license in a package from your server provider with a pre-installed version of WHMCS.)
2. Download the WHMCS plugin. Unzip the file and upload/drag and drop the files into the WHMCS folder on your server.
3. Once WHMCS is installed on your server, log in to the admin panel.
Under Setup > Products/Services click on Domain Registrars.
Activate EuroDNS, click on Configure and enter the API login name and password given to you by our sales team.
The EuroDNS module will now show up in the Domain Registrars section.

申请API:

貌似有账号即可。