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

网站开发与应用 答案微信朋友圈推广软文

网站开发与应用 答案,微信朋友圈推广软文,桂林漓江游船攻略,佛山营销型网站Windows 共享目录 首先 Windows 下共享目录 我这里偷懒直接直接 Everyone ,也可以指定用户啥的 Ubuntu 挂接 挂接命令,类似如下: sudo mount -o usernamefananchong,passwordxxxx,uid1000,gid1000,file_mode0644,dir_mode0755,dynperm //…

Windows 共享目录

首先 Windows 下共享目录

我这里偷懒直接直接 Everyone ,也可以指定用户啥的

在这里插入图片描述

Ubuntu 挂接

挂接命令,类似如下:

sudo mount -o 'username=fananchong,password=xxxx,uid=1000,gid=1000,file_mode=0644,dir_mode=0755,dynperm' //xx.xx.xx.xx/dep2 /home/fananchong/xxxx/gameserver/dep

对上面命令做下说明:

内容说明
usernameWindows 系统的登录账号
passwordWindows 系统的登录密码
uidUbuntu 系统账号的 uid 。执行 id -u 可以获得
gidUbuntu 系统账号的 gid 。执行 id -g 可以获得
file_mode创建文件时,设置文件权限是什么
dir_mode创建目录时,设置目录权限是什么
dynpermUbuntu 下可以更改文件、目录权限
//xx.xx.xx.xx/dep2Windows 要共享的目录
/home/fananchong/xxxx/gameserver/depUbuntu 下挂接到哪个目录

这里重点说下dynperm
如果没有这个参数,Ubuntu 下会无法更改文件目录的权限,导致 chmod 命令执行无效
这对于 git 库下的文件会导致都有 diff 差异

设置开机启动

这里使用在/etc/rc.local里配置挂接命令
Ubuntu 默认没开启 /etc/rc.local 的功能

步骤1:查看服务是否开启

>systemctl status rc-local.service                                                                                             
● rc-local.service - /etc/rc.local CompatibilityLoaded: loaded (/lib/systemd/system/rc-local.service; enabled; vendor preset: enabled)Drop-In: /usr/lib/systemd/system/rc-local.service.d└─debian.confActive: active (exited) since Sat 2024-01-06 02:32:46 UTC; 5h 2min agoDocs: man:systemd-rc-local-generator(8)Process: 739 ExecStart=/etc/rc.local start (code=exited, status=0/SUCCESS)CPU: 11ms

这里打印的是已开启的

步骤2:开启服务

如果没有开启,修改/lib/systemd/system/rc-local.service

在该文件内添加Install的内容。修改后,完整文件内容如下:

cat /lib/systemd/system/rc-local.service                                                                          ✔  took 1m 12s  with fananchong@myubuntu  at 07:36:33 
#  SPDX-License-Identifier: LGPL-2.1-or-later
#
#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.# This unit gets pulled automatically into multi-user.target by
# systemd-rc-local-generator if /etc/rc.local is executable.
[Unit]
Description=/etc/rc.local Compatibility
Documentation=man:systemd-rc-local-generator(8)
ConditionFileIsExecutable=/etc/rc.local
After=network.target[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
RemainAfterExit=yes
GuessMainPID=no[Install]
WantedBy=multi-user.target  
Alias=rc-local.service

然后设置开机启动:

sudo systemctl enable rc-local.service

步骤3:创建/etc/rc.local

sudo touch /etc/rc.local
sudo chmod +x /etc/rc.local

步骤4:设置开机启动内容

然后把刚才的 mount 命令写到/etc/rc.local

步骤5:启动服务

sudo systemctl start rc-local.service
http://www.mnyf.cn/news/48429.html

相关文章:

  • 武汉营销型网站建设找关键词的方法与技巧
  • 简述网站推广方式seo推广方案怎么做
  • 兰州网站建设怎么选最近一周的重大热点新闻
  • 2015年做那个网站能致富图们网络推广
  • 中国十大知名网站建设电商网站开发
  • 房地产定制开发天津优化公司
  • 手机网页制作网站建设福州百度快速优化
  • 免费网站加速器国内十大4a广告公司
  • 重庆制作网站公司简介分析影响网站排名的因素
  • 教育类网站怎么做优化seo搜索引擎优化实训总结
  • 上海企业网站建设报价软文代写兼职
  • 易点设计郑州seo方案
  • 两个网站做的h5如何合在一起怎么seo网站关键词优化
  • 如果做网站需要多少钱衡阳网站建设公司
  • 十大免费建站程序wordpress免费代理浏览网页
  • 自建网站注册域名很有必要最新新闻事件今天疫情
  • 山东临朐门户网站官网百度建站平台官网
  • 所有网站名称大全今日国际新闻热点
  • 子网站数量品牌传播策略
  • 班级网站建设毕业论文简述搜索引擎的工作原理
  • 山东网站建设公司网站网络优化外包
  • 做网站费用搜索引擎营销优化诊断训练
  • 梅林 建站 wordpress免费制作自己的网页
  • 可以做全景的网站抖音关键词挖掘工具
  • 做网站设计的公司柳州制作网站需要什么软件
  • 图展网站源码推广公司好做吗
  • 长宁移动网站建设福州百度快照优化
  • 58网站怎么做才有客户问百度推广多少钱
  • 沈阳营销型网站制作软文网站推广
  • 秦皇岛网站seo石家庄疫情防控最新政策