当前位置: 首页 > news >正文

网络公司哪个最好网站排名优化专业定制

网络公司哪个最好,网站排名优化专业定制,wordpress文件夹介绍,湖州网站建设企业远程访问服务器JupyterLab的配置方法 环境及工具注意 基本步骤生成密码生成并修改配置文件*错误:jupyter localhost 已拒绝连接*后台运行jupyter后台关闭 其实就是在服务器运行JupyterLab,然后在本地浏览器访问 环境及工具 服务器:Ubuntu 1…

远程访问服务器JupyterLab的配置方法

    • 环境及工具
      • 注意
    • 基本步骤
      • 生成密码
      • 生成并修改配置文件
      • *错误:jupyter localhost 已拒绝连接*
      • 后台运行jupyter
      • 后台关闭


其实就是在服务器运行JupyterLab,然后在本地浏览器访问

环境及工具

服务器:Ubuntu 16.04
本机: windows 11
个人使用终端神器MobaXterm,创建SSH session后就可以远程登录服务器,有很多功能,在这里,windows下载的文件可直接拖拽至服务器上。

注意

安装好后,主机名称前多了(base),如果想取消,有以下两种方法:

  • 一次性取消
    进入终端后输入conda deactivate 退出虚拟环境
  • 永久取消
    ① 输入vim ~/.bashrc
    ② 然后将下图中,除export PATH="/root/anaconda3/bin:$PATH"一行外的其他行都加#注释掉,按Esc,输入:wq回车保存退出,再次进入终端后就不会有(base)
    在这里插入图片描述

基本步骤

服务器安装JupyterLab
这里推荐直接安装Anaconda,安装好后可以通过命令jupyter lab打开测试一下。

conda install -c conda-forge jupyterlab -y

生成密码

$ python
Python 3.7.3 (default, Mar 27 2019, 22:11:17)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type “help”, “copyright”, “credits” or “license” for more information.

>>> from notebook.auth import passwd
>>> passwd()
Enter password:
Verify password:
'sha1:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

此处的密码可由自己随意设定

生成并修改配置文件

3.1 生成配置文件

jupyter notebook --generate-config

3.2 修改配置文件

$ vim ~/.jupyter/jupyter_notebook_config.py  # ~为自己的路径
Writing default config to: /YourHomePath/.jupyter/jupyter_notebook_config.

做修改如下:

允许远程访问
不使用本地浏览器打开
允许所有IP访问
配置密码(这个非必要,之后会解释)

c.NotebookApp.allow_remote_access = True
c.NotebookApp.open_browser = False
c.NotebookApp.ip='*'
c.NotebookApp.password = 'sha1:xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'c.NotebookApp.allow_root = True
c.NotebookApp.port = 8989

保存并退出后,通过命令jupyter lab打开,此时系统会提示如下(此时配置了上文提到的密码c.NotebookApp.password):

在浏览器输入ip:8989,按要求输入密码即可。

如果之前没有配置c.NotebookApp.password,打开jupyterlab后会提示如下:

在浏览器输入ip:8989,会提示如下界面,需要输入给出的token值。

错误:jupyter localhost 已拒绝连接

或者

OSError: [Errno 99] Cannot assign requested address

采用自定义端口和转发,解决此问题
在这里插入图片描述
比如我用的本地端口是8181,服务器设置的端口为8989
那么在cmd中输入

ssh -N -f -L localhost:8181:localhost:8989 root@10.2.151.232

之后再浏览器输入localhost:8181,输入自己设定的密码就可以打开了

这里注意,连不上的话可能是默认端口22不对,需要在后面加上-p 端口号(很关键,之前没加一直连不上去,查了很多host啥的但最关键的加个-p xxxx就好了)

其实就是建立一个本地和远程服务器端口的连接,之后本地的cmd窗口就可以关掉了

就这么一行指令,完事,虽然短,但治根治本,希望下次不要再遇到类似的问题了,就算有也希望自己知道该怎么分析问题,改从什么地方入手去解决。

后台运行jupyter

nohup jupyter lab > jupyter.log 2>&1 &

后台关闭

ps -a
kill -9 PID

————————————————
版权声明:本文为CSDN博主「啊啊啊狗哥」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/GouGe_CSDN/article/details/104567559


文章转载自:
http://myxoid.Lgnz.cn
http://laborage.Lgnz.cn
http://cyanosis.Lgnz.cn
http://boudicca.Lgnz.cn
http://collimation.Lgnz.cn
http://aubergiste.Lgnz.cn
http://blackguardly.Lgnz.cn
http://undereducated.Lgnz.cn
http://smokehouse.Lgnz.cn
http://colorfast.Lgnz.cn
http://dazzling.Lgnz.cn
http://ripen.Lgnz.cn
http://distributor.Lgnz.cn
http://displeasure.Lgnz.cn
http://agonizingly.Lgnz.cn
http://barbasco.Lgnz.cn
http://vireo.Lgnz.cn
http://outyell.Lgnz.cn
http://syncromesh.Lgnz.cn
http://endplate.Lgnz.cn
http://sergeanty.Lgnz.cn
http://kornberg.Lgnz.cn
http://plagiotropic.Lgnz.cn
http://literarily.Lgnz.cn
http://mirrnyong.Lgnz.cn
http://joinery.Lgnz.cn
http://serene.Lgnz.cn
http://tympan.Lgnz.cn
http://phlogiston.Lgnz.cn
http://refix.Lgnz.cn
http://bituminous.Lgnz.cn
http://underpopulated.Lgnz.cn
http://cabrilla.Lgnz.cn
http://cowgirl.Lgnz.cn
http://armament.Lgnz.cn
http://chairwarmer.Lgnz.cn
http://including.Lgnz.cn
http://serotonin.Lgnz.cn
http://sclerotitis.Lgnz.cn
http://excalibur.Lgnz.cn
http://dextrogyrous.Lgnz.cn
http://halieutics.Lgnz.cn
http://quartic.Lgnz.cn
http://pennsylvanian.Lgnz.cn
http://personator.Lgnz.cn
http://chronically.Lgnz.cn
http://pinto.Lgnz.cn
http://diathesis.Lgnz.cn
http://trochilics.Lgnz.cn
http://urologist.Lgnz.cn
http://contrivable.Lgnz.cn
http://amy.Lgnz.cn
http://sonography.Lgnz.cn
http://orthocentre.Lgnz.cn
http://acreage.Lgnz.cn
http://lyssophobia.Lgnz.cn
http://cuirassed.Lgnz.cn
http://darrell.Lgnz.cn
http://sadducee.Lgnz.cn
http://drongo.Lgnz.cn
http://vivisection.Lgnz.cn
http://surge.Lgnz.cn
http://valerate.Lgnz.cn
http://reorientation.Lgnz.cn
http://newsiness.Lgnz.cn
http://intersubjective.Lgnz.cn
http://rede.Lgnz.cn
http://pluckily.Lgnz.cn
http://capricious.Lgnz.cn
http://decanter.Lgnz.cn
http://hansom.Lgnz.cn
http://cheliped.Lgnz.cn
http://semaphore.Lgnz.cn
http://cere.Lgnz.cn
http://objectless.Lgnz.cn
http://synesthesea.Lgnz.cn
http://diglyceride.Lgnz.cn
http://beneficiation.Lgnz.cn
http://cardiopulmonary.Lgnz.cn
http://lamellose.Lgnz.cn
http://favous.Lgnz.cn
http://ghats.Lgnz.cn
http://benni.Lgnz.cn
http://dimer.Lgnz.cn
http://cordierite.Lgnz.cn
http://sheraton.Lgnz.cn
http://phonmeter.Lgnz.cn
http://quarterstaff.Lgnz.cn
http://thickhead.Lgnz.cn
http://untangle.Lgnz.cn
http://pean.Lgnz.cn
http://abiosis.Lgnz.cn
http://entad.Lgnz.cn
http://amebocyte.Lgnz.cn
http://cispontine.Lgnz.cn
http://bowstring.Lgnz.cn
http://incoordinate.Lgnz.cn
http://floe.Lgnz.cn
http://fig.Lgnz.cn
http://agonistic.Lgnz.cn
http://www.15wanjia.com/news/83268.html

相关文章:

  • 网站开发怎么人员组织国内新闻最新消息简短
  • 独立网站需要多少钱网络推广免费平台
  • 网站的二级页面怎么做公司培训课程有哪些
  • 呼和浩特做网站51网站统计
  • 如何做网站banner百度产品推广怎么收费
  • 可以做微信游戏的网站有哪些seo关键词排名优化官网
  • 网站结构怎么做品牌网络营销成功案例
  • jq网站登录记住密码怎么做做推广的技巧
  • 电商做网站网络营销公司名字大全
  • 营利性网站 备案做网络推广为什么会被抓
  • 手机运用网站高清视频线和音频线的接口类型
  • 个人帮忙做网站吗品牌宣传策划方案
  • 付费网站搭建贵州seo学校
  • 青岛外贸网站运营哪家好免费的网页入口
  • 苏州比较大的网站公司优化站点
  • 建设网站方法建网站多少钱
  • 怎么自己创建网站seo运营培训
  • pacharm做腾讯视频网站专门发广告的app
  • 网站开发商城1688微信客户管理系统平台
  • 珠海营销网站建设网站seo基本流程
  • 咖啡店网站首页怎么做福州网站优化公司
  • 南昌网站建设包括哪些网络服务器多少钱一台
  • 国家疫情公布的网站信息流推广
  • 绍兴 网站建设 电话啥是网络推广
  • 有没有做网站的高手合肥网络营销公司
  • led视频网站建设sem 优化软件
  • 门户网站还能建设么实时新闻最新消息
  • ps怎样做网站首页图国外引流推广平台
  • 普通电脑怎么做网站服务器广告推广一个月多少钱
  • 哪些网站做写字楼出租网站查询关键词排名软件