ITeye博客

friping

friping · 共 87 篇文章

Error response from daemon: Get https://registry-1.docker.io/v2/: unauthorized:

这个错误的原因是没登陆, 执行 docker login 输入docker ID的时候确保不是邮件用户名,而且docker ID 名称 参考 https://github.com/docker/hub-feedback/issues/935#issuecomment-300361781

2019-04-15 14:02 · docker kubernates · 评论(0)

macOS 下 Nodejs 卸载

若用homebrew 安装的 先执行 brew uninstall node 之后执行 sudo rm -rf /usr/local/{bin/{node,npm},lib/node_modules/npm,lib/node,share/man/*/node.*}

2019-03-27 15:10 · mac · 评论(0)

mac homebrew postgresql 服务异常中断

1. 断开连接 launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.postgresql.plist // 9.6 brew services stop postgresql 2. 删除/usr/local/var/postgres中的postmaster.pid rm /usr/local/var/postgres/postmaster.pid 3. 查看是否删除postmaster.pid ls /usr/local/var/postgres launchctl unload ~/Library/LaunchAgents/homeb…

2016-04-07 10:50 · mac · Postgresql · 评论(0)

Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"

OSX: El Captain Xcode: 7.0 环境: 模拟器(iOS simulator)访问本地服务器 出现错误 解决: 把本地ip地址改成127.0.0.1

2015-10-15 11:13 · iOS · 评论(0)

maven jetty 配置 https

pom.xml <plugin> <groupId>org.eclipse.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>9.3.4.RC1</version> <configuration> <jettyXml>${basedir}/jetty-cfg/jetty.xml</jettyXml> </configuration> <!-- Uncomment to enable auto java class reload on java changes <configuration> <scanIn…

2015-10-15 11:10 · jetty · maven · 评论(0)

Postgresql 删除数据库连接

错误:There are 5 other sessions using the database 解决: SELECT pg_terminate_backend( pid ) FROM pg_stat_activity WHERE pid <> pg_backend_pid( ) AND datname = current_database( );

2014-05-22 18:41 · db · Postgresql · 评论(0)

mac 上生成 RSA

1:让openssl随机生成了一份私钥,加密长度是1024位 openssl genrsa -out rsa_private_key.pem 1024 2:根据私钥生成公钥 openssl rsa -in rsa_private_key.pem -out rsa_public_key.pem -pubout 3:私钥还不能直接被使用,需要进行PKCS#8编码 openssl pkcs8 -topk8 -in rsa_private_key.pem -out pkcs8_rsa_private_key.pem -nocrypt

2014-05-18 13:02 · mac · 评论(0)

java 保存到 mysql 乱码

java中正常, 保存到mysql后乱码 先查看: show variables like 'character%'; 结果: 'character_set_client','utf8' 'character_set_connection','utf8' 'character_set_database','utf8' 'character_set_filesystem','binary' 'character_set_results','utf8' 'character_set_server','latin1' 'character_set_system','utf8' 'character…

2014-04-08 23:14 · mysql · 评论(0)

解决CentOS 更新php53时,mysql错误

1、首先把原本的PHP版本删除 # yum remove php* 2、查看一下是否删除 # rpm -q php 删除成功:package php is not installed 3、安装PHP53 # yum -y install php53* 注意: php53-odbc64-5.3.3-2.el5.x86_64 from base has depsolving problems --> php53-odbc64 conflicts with php53-odbc Error: php53-odbc64 conflicts with php53-odbc You could try …

2013-07-08 00:08 · db · linux · php · 评论(0)

Apache VirtualHost 配置二级域名

在httpd.conf 中: 去掉注释#NameVirtualHost *:80 改为 NameVirtualHost *:80 添加 ## add www.test.com <VirtualHost *:80> ServerAdmin test@gmail.com DocumentRoot [应用的绝对路径] ServerName www.test.com ErrorLog logs/www.test.com-error_log CustomLog logs/www.test.com-access_log common </VirtualHost> ##add abc.test.com <…

2013-07-06 15:48 · jetty · apache · 评论(0)

CentOS 安装软件包

yum install [软件包名称] 如 yum install libaio 更新 yum install libaio

2013-07-06 12:24 · linux · 评论(0)

vi 命令大全

进入vi的命令 vi filename :打开或新建文件,并将光标置于第一行首 vi +n filename :打开文件,并将光标置于第n行首 vi + filename :打开文件,并将光标置于最后一行首 vi +/pattern filename:打开文件,并将光标置于第一个与pattern匹配的串处 vi -r filename :在上次正用vi编辑时发生系统崩溃,恢复filename vi filename....filename :打开多个文件,依次进行编辑 移动光标类命令 h :光标左移一个字符 l :光标右移一个字符 space:光标右移一个字符 Backspace:光标左移一…

2013-07-06 12:10 · linux · mac · 评论(0)

Apache 整合 jetty

总体思路是把jetty当做web服务器,apache作为http服务器,并以ajp为协议 1, 让apache支持ajp。 要让apache支持ajp, apache要加载mod_jk.so. mac环境下,默认是没有mod_jk.so的,所有要下载编译: 1)到 官网 下载tar.gz 文件,解压之后进入文件夹,执行: $ cd native $ ./configure CFLAGS='-arch x86_64' APXSLDFLAGS='-arch x86_64' --with-apxs=/usr/sbin/apxs $ make $ sudo make install linux环境下…

2013-07-06 11:36 · linux · mac · jetty · apache · 评论(0)

adb 常用命令

adb在集成开发环境中的工作 adb的工作方式比较特殊采用监听Socket TCP 5554等端口的方式让IDE和Qemu通讯,默认情况下adb会daemon相关的网络端口,所以当我们运行Eclipse时adb进程就会自动运行。 1.通过adb可以轻松的执行Linux Shell命令,如adb shell dir 就是列举目录,在Linux中根目录为/而不是Windows上的C盘、D盘。 2.安装apk程序到模拟器则执行adb install android123.apk,这样名为android123的安装包就会安装到Android模拟器中,前提是android123.apk文件需要放到SD…

2013-06-27 09:32 · android · 评论(0)

error: The following untracked working tree files would be overwritten by checko

git clean -d -fx ""

2013-06-04 17:26 · git · 评论(0)