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

产品毕业设计作品网站预约网站怎么做

产品毕业设计作品网站,预约网站怎么做,汕头建站网站模板,家在深圳 安居公租在Windows 安装的Ubuntu#xff0c;如何修改主机名。有列了两种方法#xff0c;提供给大家参照。 文章目录 方法一#xff1a;hostname指令修改方法二#xff1a;修改配置文件修改hostnanmewsl.conf 文件配置选项推荐阅读 方法一#xff1a;hostname指令修改 hostname指…在Windows 安装的Ubuntu如何修改主机名。有列了两种方法提供给大家参照。 文章目录 方法一hostname指令修改方法二修改配置文件修改hostnanmewsl.conf 文件配置选项推荐阅读 方法一hostname指令修改 hostname指令修改hostname sudo hostname test修改后需要reboot我们可以通过执行特定指令查看是否有修改 hostname可以看到hostname已经暂时修改但 mirrorY2040001-PC:~$ hostname test方法二修改配置文件修改hostnanme 打开 /etc/wsl.conf wsl.conf这个文件如果这个文件不存在则新建 sudo vi /etc/wsl.confhostname Ubuntu22 generateHosts falsehostname Ubuntu22将更新/etc/hostname中的主机名generateHosts false 将阻止WSL自动生成/etc/hosts文件。否则在重新启动Ubuntu时hosts文件更改将被覆盖会出现报错sudo: unable to resolve host test: Name or service not known sudo vi /etc/hosts红框处修改为新的hostname # This file was automatically generated by WSL. To stop automatic generation of this file, add the following entry to /etc/wsl.conf: # [network] # generateHosts false 127.0.0.1 localhost 127.0.1.1 Ubuntu22.localdomain Ubuntu22 127.0.0.1 localhost修改完成后保存并退出。关闭子系统或者重新运行子系统 修改不会立即生效关闭子系统后必须等待~8秒。必须等待8秒的原因官方解释如下 If you launch a distribution (ie. Ubuntu), modify the wsl.conf file, close the distribution, and then re-launch it. You might assume that your changes to the wsl.conf file have immediately gone into effect. This is not currently the case as the subsystem could still be running. You must wait ~8 seconds for the subsystem to stop before relaunching in order to give enough time for your changes to be picked up. 可以在power shell中执行wsl --list --running查看子系统是否仍然还在运行。 PS C:\Users\Administrator wsl --list --running如果想要立即停止可以执行如下 wsl -t Ubuntu或者 wsl --shutdown重新开机子系统验证hostname修改成功。 mirrorUbuntu22:~$ hostname Ubuntu22 mirrorUbuntu22:~$wsl.conf 文件配置选项 wsl.conf 文件有一些配置选项大家可以根据自己需要参考 # Automatically mount Windows drive when the distribution is launched [automount]# Set to true will automount fixed drives (C:/ or D:/) with DrvFs under the root directory set above. Set to false means drives wont be mounted automatically, but need to be mounted manually or with fstab. enabled true# Sets the directory where fixed drives will be automatically mounted. This example changes the mount location, so your C-drive would be /c, rather than the default /mnt/c. root /# DrvFs-specific options can be specified. options metadata,uid1003,gid1003,umask077,fmask11,caseoff# Sets the /etc/fstab file to be processed when a WSL distribution is launched. mountFsTab true# Network host settings that enable the DNS server used by WSL 2. This example changes the hostname, sets generateHosts to false, preventing WSL from the default behavior of auto-generating /etc/hosts, and sets generateResolvConf to false, preventing WSL from auto-generating /etc/resolv.conf, so that you can create your own (ie. nameserver 1.1.1.1). [network] hostname DemoHost generateHosts false generateResolvConf false# Set whether WSL supports interop processes like launching Windows apps and adding path variables. Setting these to false will block the launch of Windows processes and block adding $PATH environment variables. [interop] enabled false appendWindowsPath false# Set the user when launching a distribution with WSL. [user] default DemoUser# Set a command to run when a new WSL instance launches. This example starts the Docker container service. [boot] command service docker start推荐阅读 Ubuntu挂载NFS(Network File System) 怎么解决权限不一致的问题 Ubuntu镜像源cn.arichinve.ubuntu.com不可用原因分析和解决 Windows 11安装Ubuntu 实战教程 PowerShell无人参与安装最新版本SQL Server Management Studio (SSMS) VRRP虚拟路由器冗余协议标准协议工作机制与优势介绍
http://www.hkea.cn/news/14344937/

相关文章:

  • mysql 网站 数据库陕西新闻最新消息今天
  • 黑色背景的网站开发工具创建网站的基本流程
  • 专门做环保设备的网站做网站公司的介绍
  • 网站后台视频教程陕西交通建设集团西镇分公司网站
  • 优秀行业网站沈阳seo团队
  • 各大网站的软文怎么做网站建设没有业务怎么办
  • 怎么建设免费小说网站专门做qq小工具的网站
  • 宿舍网站建设目的长沙 网站建设
  • 搜索引擎的网站推广方式建一个网站需要购买域名 虚拟主机
  • 企业网站代建设网站建设行业赚钱么
  • 广州做创客教室的厂家网站贵州网站建设工作室
  • 网站专题框架怎么做网页设计行业市场分析
  • 平安做计划书的网站民宿行业网站建设方案
  • 网站建设 自动生成哪些网站做的不好用
  • 如何写网站代码是什么原因江门百度seo
  • 给网站做seo的必要性网站返回500错误页面
  • 番禺网站建设培训学校做网站一月能赚50万吗
  • 滕州市中远建设工程公司网站首页推广什么
  • 前端做用vue做后台多还是做网站多常州云之家网站建设公司怎么样
  • 临汾建设局网站用手机做网站好学吗
  • 阿里云网站建设步骤台州千寻网站建设公司
  • 网站建设方案格式网站怎么建设后台
  • 做网站要服务器和什么怎么找精准客户资源
  • 医疗网站建设好么wordpress 取消置顶
  • 建设厅企业锁在哪个网站登录工程建设信息网站资质公告
  • 特价网站建设价格低安徽六安什么时候解封
  • 深圳网站建设比较精品网站欣赏
  • 漂亮产品网站本地网站搭建
  • 为网站做一则广告语做网站需要什么营业执照
  • 做网站怎样用链接赚钱iis6添加网站