localhost

Docker私有仓库Registry的搭建

£可爱£侵袭症+ 提交于 2019-12-21 01:17:26
系统环境: CentOS 7.2 192.168.11.138:docker仓库 192.168.11.211:客户端 搭建私有仓库 138上下载registry镜像: docker pull registry 下载完之后我们通过该镜像启动一个容器 1 docker run -d -p 5000:5000 --privileged=true -v /opt/registry:/tmp/registry --name=registry registry -d 在后台执行 -p 端口映射, 开放容器的5000端口 -v /opt/registry:/tmp/registry :默认情况下,会将仓库存放于容器内的/tmp/registry目录下,指定本地目录挂载到容器 –privileged=true :CentOS7中的安全模块selinux把权限禁掉了,参数给容器加特权,不加上传镜像会报权限错误(OSError: [Errno 13] Permission denied: ‘/tmp/registry/repositories/liibrary’)或者(Received unexpected HTTP status: 500 Internal Server Error)错误 本机上传镜像 1 docker tag ubuntu:latest localhost:5000

Errors while running hadoop

社会主义新天地 提交于 2019-12-20 23:58:06
问题 haduser@user-laptop:/usr/local/hadoop$ bin/hadoop dfs -copyFromLocal /tmp/input /user/haduser/input 11/12/14 14:21:00 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Already tried 0 time(s). 11/12/14 14:21:01 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Already tried 1 time(s). 11/12/14 14:21:02 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Already tried 2 time(s). 11/12/14 14:21:03 INFO ipc.Client: Retrying connect

MAMP local host not working

假如想象 提交于 2019-12-20 20:36:12
问题 My MacBook Pro 13 inch is running on OS X 10.8.2 and I have downloaded MAMP 2.1.4. I want to run the MAMP program. After I connect to the servers successfully I then try to press the 'open start page'. It takes me to the Google Chrome browser with a page that says the page can't be found. I've installed MAMP and am running the Apache server and MySQL servers fine through either port 80 and 3306 or 8888 and 8889 - using either combination makes the status lights go green. The local host can't

Hadoop单机伪分布式

匆匆过客 提交于 2019-12-20 20:28:23
环境配置:Ubuntu11.10,Hadoop1.0.0 安装ssh 1 apt-get install ssh 安装rsy 1 apt-get install rsync 配置ssh免密码登录 1 ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa 2 cat ~/.ssh/id_dsa.pub >>~/.ssh/authorized_keys 验证是否成功 1 ssh localhost 下载Hadoop1.0.0,JDK 新建 linux 终端,建立app目录,Java和Hadoop都将安装在此目录中。 1 mkdir /home/app 接下来,安装Java和Hadoop,Hadoop解压即可。 1 cd /home/app 2 chmod +x jdk-6u30-linux-i586.bin 3 ./jdk-6u30-linux-i586.bin 4 5 tar zxf hadoop-1.0.0-bin.tar.gz 配置JDK环境变量 1 vi /etc/profile 增加下面语句到最后 1 export JAVA_HOME=/home/app/jdk1.6.0_30 2 export PATH=$JAVA_HOME/bin:$PATH 3 export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA

vmware上虚拟机:Network error: Connection refused 排查

僤鯓⒐⒋嵵緔 提交于 2019-12-20 19:56:25
问题分析 vmware配置的fedora虚拟机, 主机能ping通虚拟机, 虚拟机也能ping通主机。但是用PUTTY连接虚拟机的时候出现 Network error: Connection refused。 排查方法 1、查看SSH服务有没有安装 #rpm -qa | grep ssh [root@localhost ~]# rpm -qa|grep ssh openssh-clients-6.1p1-4.fc18.i686 openssh-6.1p1-4.fc18.i686 libssh2-1.4.2-2.fc18.i686 openssh-server-6.1p1-4.fc18.i686 2、查看SSH服务有没有开启 #/bin/systemctl status sshd.service sshd.service - OpenSSH server daemon Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled) Active: active (running) since Wed, 2018-12-19 07:45:03 EST; 2h 1min ago Process: 687 ExecStartPre=/usr/sbin/sshd-keygen (code=exited, status=0

关于MySQL的安装使用心得

风流意气都作罢 提交于 2019-12-20 18:58:10
MySQL浅浅地学习了几天,当然还是转到正轨Java上来了,昨天打了一串代码,测试注解来着,结果MySQL挂了~~~ 如何干净卸载MySQL帖子有很多,不再赘述,注册表是个好东西~~ 卸载了Mysql57,去官网下了个新版的8.0.18安装,结果卡死在starting service。。。。。。 这里反复卸载安装了3次,其中一次尝试装回57版,同样卡在启动服务那里 很多帖子说到没有卸载干净上一次安装的mysql,还有说安装时不勾选日志什么的,在win10环境下安装时没有用,这种情况不绝对,之所以没解决是药不对症,终于还是发现了问题所在,解决如下:(安装手法不同的人仅供参考,有时候你离解决问题就只有一步,懂行人一眼看穿,不懂的人就要多琢磨,多折腾下就熟了) 安装卡在启动服务就cancel,然后win+r,输入services.msc 登陆身份改成:本地系统账户(安装时可能默认的是“此账户”)就可以啦! 接下来就是配置环境变量,启动mysql服务即可! 解决问题就是松一口气!! 安装完成之后当然是连接数据库了,连接的过程并不是一帆风顺的! 虽然mysql57只在我的电脑上存在了不到一个星期,但习惯了mysql57的密码设置风格,在设置mysql80时就出问题了,默认账户root密码不能简单设置了,比如设置成“root”,查了资料说事加密方式改了: mysql57使用的是 mysql

48)Address already in use: AH00072: make_sock: could not bind to address [::]:80

孤人 提交于 2019-12-20 12:35:43
问题 I get a apache error when I try access to anything folder or file, it returns Http Not found or Forbidden I am trying restart and start apache sudo apachectl restart output: (48)Address already in use: AH00072: make_sock: could not bind to address [::]:80 (48)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down AH00015: Unable to open logs I am trying stop it sudo apachectl stop output httpd (no pid file) not running I

Path To Files Inside Content Folder (ASP.NET MVC)

寵の児 提交于 2019-12-20 10:37:08
问题 There something I still do not understand about how the Content folder works in ASP.NET MVC. To make things clearer I have a few questions: Is the Content folder the root folder? I mean does http://localhost/ point to Content or is it something else? I have a file named dummyIcon.png inside Content/images/temp folder. How do I locate it from my domain layer (which is a Code Library project)? What is the best practice of displaying images in ASP.NET MVC? Should I store a path to the image in

Server http:/localhost:8080 requires a user name and a password. The server says: XDB

拈花ヽ惹草 提交于 2019-12-20 09:55:53
问题 I am trying to access localhost:8080 but it is showing me I need to enter user name and pass word. I remember messing up with the server some 4 months ago while I was trying to develop a web application and hosting my domain name on my pc, Unfortunately I become unsuccessful. While working with servlets I was tring some security features and till some time i did not see and of these pop up windows asking for authentication. I tried to enter the password that I was playing with but non of

WAMP Server doesn't load localhost

大兔子大兔子 提交于 2019-12-20 09:20:04
问题 I have a "small" problem with my WAMP Server. Everything worked fine (WAMP is on port 8081 - free port no matter what program I have open) yesterday but today, I can't reach localhost:8081. It's just keep loading and loading and loading... I have tried everything - open the port in my router and in my firewall, check that the port is currently open and reachable (which it is) and so on. I installed the latest Windows updates to Windows 7 Ultimate 64-bit earlier this day, restarted my computer