lib

在centos上安装mysql

痞子三分冷 提交于 2019-12-03 12:16:57
本文依然是用的xftp上传gz文件,然后在xShell上操作的,如果没有安装使用这两个文件的请查阅之前的博客。 1.将下载好的文件用xftp上传到对应的位置。 2. 解压文件: tar -zvxf mysql-5.7.28-linux-glibc2.12-x86_64.tar.gz 3. 在 /usr/local 文件夹下建立 mysql 的文件夹 mkdir /usr/local/mysql 4. 将解压后的 mysql 文移动到 /usr/local/mysql 下: mv mysql-5.7.28-linux-glibc2.12-x86_64/* /usr/local/mysql 5. 为 centos 添加 mysql 用户组和 mysql 用户 (-s /bin/false 参数指定 mysql 用户仅拥有所有权,而没有登录权限 ) ,两端代码分别执行。 可以通过 ll(小写字母L) 查看 mysql 的权限 groupadd mysql useradd -r -g mysql -s /bin/false mysql 6.进入 到 /usr/local/mysql 的文件夹下: cd /usr/local/mysql 7. 查看 MySQL 对于配置文件的查找路径,越左优先查找: ./bin/mysql --help | grep 'Default options' -A

Storm On Yarn 安装部署

纵然是瞬间 提交于 2019-12-03 11:27:56
1. 安装 JDK7 和 Maven 2. 部署Hadoop2集群,并启动yarn http://my.oschina.net/zc741520/blog/362824 3. 下载 Storm on Yarn [grid@hadoop4 ~]$ wget https://github.com/yahoo/storm-yarn/archive/master.zip 4. 编译 [grid@hadoop4 ~]$ unzip master.zip [grid@hadoop4 ~]$ cd storm-yarn-master ## 修改 pom.xml,将Hadoop的版本号改成对应的版本号 [grid@hadoop4 storm-yarn-master]$ vim pom.xml <properties> <storm.version>0.9.0-wip21</storm.version> <hadoop.version>2.5.2</hadoop.version> <!--hadoop.version>2.1.0.2.0.5.0-67</hadoop.version--> </properties> ## 编译 [grid@hadoop4 storm-yarn-master]$ mvn package -DskipTests 5. storm-yarn-master/lib

linux gcc4.8安装(多个gcc环境)

余生长醉 提交于 2019-12-03 11:14:46
1.环境:Linux xxx 2.6.18-371.3.1.el5xen #1 SMP Mon Nov 11 03:28:23 EST 2013 x86_64 x86_64 x86_64 GNU/Linux 2.下载 gcc4.8包 gmp包、mpfr包、mpc包(都要安装) (../configure --prefix=/home/mawanli/work/gcc482 --mandir=/home/mawanli/work/gcc482/man --infodir=/home/mawanli/work/gcc482/info --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-libgcj-multifile --enable-languages=c,c++,objc,obj-c++ --enable-java-awt=gtk --disable-dssi --disable-plugin --with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic -

Uploading Python third party libraries

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Google App engine documentation states that it is possible to upload and use third party libraries provided they written in pure Python. What are the steps I need to take to do this? 回答1: What I did is created a file called fix_path.py in my root directory that looks like this: import os import sys import jinja2 # path to lib direcotory sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'lib')) Then I created a lib directory, and drop the module in there. For example, I use WTForms. My file structure looks like this. lib wtforms fix

oracle sqlldr -&gt; undefined symbol: sldext

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: installed oracle_client oracle-instantclient11.2-basic-11.2.0.4.0-1.x86_64.rpm oracle-instantclient11.2-devel-11.2.0.4.0-1.x86_64.rpm oracle-instantclient11.2-sqlplus-11.2.0.4.0-1.x86_64.rpm copy sqlldr file to /usr/lib/oracle/11.2/client64/bin copy rdbms , nls folder to /usr/lib/oracle/11.2/client64/ settings .bash_profile export LANG=en_US.UTF-8 export ORACLE_HOME=/usr/lib/oracle/11.2/client64 export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$ORACLE_HOME/lib export NLS_LANG=KOREAN_KOREA.KO16KSC5601 export TNS_ADMIN=$ORACLE_HOME/network/admin export

Cmake error undefined symbols for x86_64

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am trying to compile the conv-net library in my mac osx yosemite with xcode. I even set the flags to libstdc++ still it is not linking properly. i still get undefined symbols for architecture x86_64. any help much appreciated. sh-3.2# ./compile.sh Building conv-net library -- The C compiler identification is AppleClang 6.0.0.6000056 -- The CXX compiler identification is AppleClang 6.0.0.6000056 -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C

How can write or find a PHP extension for Apache Thrift

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: Apache Thrift now only support PHP source files (copy [thrift-source]/lib/php/lib to own project to use). But, Can i find a .dll PHP extension file instead that? Where can i find it? Otherwise, i have to write it. Could you tell me how to do that (i usually use Apache server)? Is that right if I install C++ Lib of Apache Thrift and write PHP extension base on it? Or, can i generate from thrift-source (i have looked cpp files [thrift-source]/lib/php/src/ext , but maybe protocol only)? 文章来源: How can write or find a PHP extension for Apache

setting gitlab with docker registry error 500

匿名 (未验证) 提交于 2019-12-03 10:24:21
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have running docker with docker registry on example.domain.com docker run -d -p 5000:5000 --restart=always --name registry \ -v /etc/ssl/certs/:/certs \ -e REGISTRY_STORAGE_FILESYSTEM_ROOTDIRECTORY=/var/lib/registry \ -v /git/docker_registry:/var/lib/registry \ -e REGISTRY_HTTP_TLS_CERTIFICATE=/certs/server.crt \ -e REGISTRY_HTTP_TLS_KEY=/certs/server.key \ registry:2 I can push and pull to this docker registry but when i try to connect it with gitlab which is running on the same machine example.domain.com using gitlab.yml config: registry

Python Hello World in PyObjC on iPhone?

匿名 (未验证) 提交于 2019-12-03 10:10:24
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I installed the iphone-python package from Cydia, but the HelloPython app closes immediately when I run it from Springboard. This may be a red herring, but I found the .py file in Terminal and tried to run it with python and got a python error: $ python /private/var/stash/Applications.pwn/HelloPython.app/HelloPython.py Traceback (most recent call last): File "/private/var/stash/Applications.pwn/HelloPython.app/HelloPython.py", line 9, in <module> import objc File "/usr/lib/python2.5/objc/__init__.py", line 17, in <module> _update() File "

sendGrid mail function not working in yii-framework

匿名 (未验证) 提交于 2019-12-03 10:10:24
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I used below code for sendGrid codes for sending mails from my project. require_once(YII_BASE_PATH . "/lib/sendgrid-php/SendGrid.php"); require_once(YII_BASE_PATH . "/lib/sendgrid-php/SendGrid_loader.php"); $sendgrid = new SendGrid('uname', 'pwd'); $mail = new SendGrid\Mail(); $mail->addTo('xxxxxxxxxx@gmail.com')-> setFrom('xxxyyyy5@yahoo.co.in')-> setSubject('Subject goes here')-> setText('Hello World!')-> setHtml('<strong>Hello World!</strong>'); $sendgrid->smtp->send($mail); I already downloaded the sendGrid package and put it into lib