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

网站建设ftp软件苏州网址

网站建设ftp软件,苏州网址,微信app下载安装官方版2021,即时设计怎么做网页随笔记录 目录 1#xff0c; 新建用户 2. 给用户设置密码相关操作 3. 为新用户添加sudo 权限 4. 配置Git 4.1 配置Git 4.2 查看id_ras.pub 5, 登录Git 配置SSH 秘钥 6. Centos7 登录Git 7. clone 指定branch到本地 8. 将新代码复制到指定路径 9. 上传指定代码 …随笔记录 目录 1 新建用户 2. 给用户设置密码相关操作 3. 为新用户添加sudo 权限 4. 配置Git 4.1 配置Git 4.2 查看id_ras.pub  5, 登录Git 配置SSH 秘钥 6. Centos7 登录Git  7. clone 指定branch到本地 8. 将新代码复制到指定路径 9. 上传指定代码 9.1 上传 9.2 添加comments 9.3 提交Git 11. Gti 上检查是否上传成功 12. 下载最新代码  13. 下载指定分支代码 1 新建用户 # 新建用户 rootlocalhost home]# useradd magx#查看是否创建成功去用户的家目录 home 里面去查看[rootlocalhost home]# pwd /home [rootlocalhost home]# ll total 4 drwx------. 13 magx magx 4096 Dec 12 14:32 magx # 用户添加成功 drwxr-xr-x. 5 root root 84 Jun 4 2023 TestEvn drwxr-xr-x. 2 root root 6 Dec 11 14:08 Tools drwxr-xr-x. 2 root root 24 Apr 26 2023 zhangwk [rootlocalhost home]#2. 给用户设置密码相关操作 [rootlocalhost home]# su magx # 切账户[magxlocalhost ~]$ passwd # 修改当前账户密码 Changing password for user magx. Changing password for magx. (current) UNIX password: New password:3. 为新用户添加sudo 权限 [rootlocalhost home]# cat /etc/sudoers ## Sudoers allows particular users to run various commands as ## the root user, without needing the root password. ## ## Examples are provided at the bottom of the file for collections ## of related commands, which can then be delegated out to particular ## users or groups. ## ## This file must be edited with the visudo command.## Host Aliases ## Groups of machines. You may prefer to use hostnames (perhaps using ## wildcards for entire domains) or IP addresses instead. # Host_Alias FILESERVERS fs1, fs2 # Host_Alias MAILSERVERS smtp, smtp2## User Aliases ## These arent often necessary, as you can use regular groups ## (ie, from files, LDAP, NIS, etc) in this file - just use %groupname ## rather than USERALIAS # User_Alias ADMINS jsmith, mikem## Command Aliases ## These are groups of related commands...## Networking # Cmnd_Alias NETWORKING /sbin/route, /sbin/ifconfig, /bin/ping, /sbin/dhclient, /usr/bin/net, /sbin/iptables, /usr/bin/rfcomm, /usr/bin/wvdial, /sbin/iwconfig, /sbin/mii-tool## Installation and management of software # Cmnd_Alias SOFTWARE /bin/rpm, /usr/bin/up2date, /usr/bin/yum## Services # Cmnd_Alias SERVICES /sbin/service, /sbin/chkconfig, /usr/bin/systemctl start, /usr/bin/systemctl stop, /usr/bin/systemctl reload, /usr/bin/systemctl restart, /usr/bin/systemctl status, /usr/bin/systemctl enable, /usr/bin/systemctl disable## Updating the locate database # Cmnd_Alias LOCATE /usr/bin/updatedb## Storage # Cmnd_Alias STORAGE /sbin/fdisk, /sbin/sfdisk, /sbin/parted, /sbin/partprobe, /bin/mount, /bin/umount## Delegating permissions # Cmnd_Alias DELEGATING /usr/sbin/visudo, /bin/chown, /bin/chmod, /bin/chgrp## Processes # Cmnd_Alias PROCESSES /bin/nice, /bin/kill, /usr/bin/kill, /usr/bin/killall## Drivers # Cmnd_Alias DRIVERS /sbin/modprobe# Defaults specification# # Refuse to run if unable to disable echo on the tty. # Defaults !visiblepw# # Preserving HOME has security implications since many programs # use it when searching for configuration files. Note that HOME # is already set when the the env_reset option is enabled, so # this option is only effective for configurations where either # env_reset is disabled or HOME is present in the env_keep list. # Defaults always_set_home Defaults match_group_by_gid# Prior to version 1.8.15, groups listed in sudoers that were not # found in the system group database were passed to the group # plugin, if any. Starting with 1.8.15, only groups of the form # %:group are resolved via the group plugin by default. # We enable always_query_group_plugin to restore old behavior. # Disable this option for new behavior. Defaults always_query_group_pluginDefaults env_reset Defaults env_keep COLORS DISPLAY HOSTNAME HISTSIZE KDEDIR LS_COLORS Defaults env_keep MAIL PS1 PS2 QTDIR USERNAME LANG LC_ADDRESS LC_CTYPE Defaults env_keep LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES Defaults env_keep LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE Defaults env_keep LC_TIME LC_ALL LANGUAGE LINGUAS _XKB_CHARSET XAUTHORITY# # Adding HOME to env_keep may enable a user to run unrestricted # commands via sudo. # # Defaults env_keep HOMEDefaults secure_path /sbin:/bin:/usr/sbin:/usr/bin## Next comes the main part: which users can run what software on ## which machines (the sudoers file can be shared between multiple ## systems). ## Syntax: ## ## user MACHINECOMMANDS ## ## The COMMANDS section may have other options added to it. ## ## Allow root to run any commands anywhere root ALL(ALL) ALL magx ALL(ALL) ALL # 为新用户添加 sudo 权限 ## Allows members of the sys group to run networking, software, ## service management apps and more. # %sys ALL NETWORKING, SOFTWARE, SERVICES, STORAGE, DELEGATING, PROCESSES, LOCATE, DRIVERS## Allows people in group wheel to run all commands %wheel ALL(ALL) ALL## Same thing without a password # %wheel ALL(ALL) NOPASSWD: ALL## Allows members of the users group to mount and unmount the ## cdrom as root # %users ALL/sbin/mount /mnt/cdrom, /sbin/umount /mnt/cdrom## Allows members of the users group to shutdown this system # %users localhost/sbin/shutdown -h now## Read drop-in files from /etc/sudoers.d (the # here does not mean a comment) #includedir /etc/sudoers.d [rootlocalhost home]#4. 配置Git 4.1 配置Git [magxlocalhost ~]$ cd git_test/ [magxlocalhost git_test]$ ls [magxlocalhost git_test]$ ll total 0 [magxlocalhost git_test]$ [magxlocalhost git_test]$ git init Initialized empty Git repository in /home/magx/git_test/.git/ [magxlocalhost git_test]$ [magxlocalhost git_test]$ git config --global user.name magx [magxlocalhost git_test]$ git config --global user.mail maguox14hotmail.com [magxlocalhost git_test]$ git config --global --list user.namemagx user.mailmaguox14hotmail.com [magxlocalhost git_test]$ [magxlocalhost git_test]$ ssh-keygen -t rsa -C maguox14hotmail.com Generating public/private rsa key pair. Enter file in which to save the key (/home/magx/.ssh/id_rsa): /home/magx/.ssh/id_rsa already exists. Overwrite (y/n)? y Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/magx/.ssh/id_rsa. Your public key has been saved in /home/magx/.ssh/id_rsa.pub. The key fingerprint is: SHA256:KtSQ7V6FScA3IJ2FZTPnU0p5GTgcPo7FXjxYOvnq8vY maguox14hotmail.com The keys randomart image is: ---[RSA 2048]---- | .ooBB.o | | ooOo | | o ..o.#o | | * * . | | . o S o . | | . . o . | | . o . | | . ... | | o.E | ----[SHA256]----- [magxlocalhost git_test]$ 4.2 查看id_ras.pub  [magxlocalhost git_test]$ [magxlocalhost git_test]$ [magxlocalhost git_test]$ cat /home/magx/.ssh/id_rsa.pub ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDCELdrSXB29lX0u0kVIKekTAc1c88Ss9vHe9XwOpk2sq8UcWpdNHfL9nLUnN....... ....... UTicjdzzEO8DIGWQNLjHbub5TxRV6k8jWOY5bxqGtc3dAPbAZ3n maguox14hotmail.com [magxlocalhost git_test]$ 5, 登录Git 配置SSH 秘钥 将4.2id_ras.pub 秘钥 贴入 Git 6. Centos7 登录Git  [magxlocalhost git_test]$ ssh -T git192.168.2.114 Enter passphrase for key /home/magx/.ssh/id_rsa: # 输入id_ras Welcome to GitLab, maguoxia! [magxlocalhost git_test]$ [magxlocalhost git_test]$7. clone 指定branch到本地 [magxlocalhost git_test]$ git clone -b V2 git192.168.2.114:zhangwk/riskcop.git Cloning into riskcop... Enter passphrase for key /home/magx/.ssh/id_rsa: remote: Enumerating objects: 561, done. remote: Counting objects: 100% (561/561), done. remote: Compressing objects: 100% (224/224), done. remote: Total 5063 (delta 347), reused 521 (delta 322) Receiving objects: 100% (5063/5063), 638.23 MiB | 24.08 MiB/s, done. Resolving deltas: 100% (3329/3329), done. Checking out files: 100% (1731/1731), done. [magxlocalhost git_test]$ [magxlocalhost git_test]$ 8. 将新代码复制到指定路径 将git 项目分支 V2:riskcop clone 到本地后将要上传代码文件复制到 此路径[rootlocalhost TestEvn]# cp -r Dyn_Init_Scripts/ /home/magx/git_test/riskcop/ [rootlocalhost TestEvn]#9. 上传指定代码 9.1 上传 [rootlocalhost riskcop]# ll total 936212 drwxr-xr-x. 9 root root 4096 Dec 12 15:21 Dyn_Init_Scripts -rw-rw-r--. 1 magx magx 63 Dec 12 15:12 README.md drwxrwxr-x. 4 magx magx 47 Dec 12 15:12 Risk_Init_V2 drwxrwxr-x. 6 magx magx 114 Dec 12 15:12 V2.1 drwxrwxr-x. 3 magx magx 32 Dec 12 15:12 V2.2 drwxrwxr-x. 4 magx magx 4096 Dec 12 15:12 V2.3 -rw-rw-r--. 1 magx magx 859176960 Dec 12 15:12 Version_testing_0706.tar -rw-rw-r--. 1 magx magx 99490044 Dec 12 15:12 Version_testing_0706.tar.gz [rootlocalhost riskcop]# su magx [magxlocalhost riskcop]$ [magxlocalhost riskcop]$ git add /home/magx/git_test/riskcop/Dyn_Init_Scripts9.2 添加comments [magxlocalhost riskcop]$ [magxlocalhost riskcop]$ git commit -m 初始化(V2.2V2.3 业务测试性能测试Djangox 项目) [V2 f9b4cc6] 初始化(V2.2V2.3 业务测试性能测试Djangox项目-备份)Committer: magx magxlocalhost.localdomain Your name and email address were configured automatically based on your username and hostname. Please check that they are accurate. You can suppress this message by setting them explicitly:git config --global user.name Your Namegit config --global user.email youexample.comAfter doing this, you may fix the identity used for this commit with:git commit --amend --reset-author1415 files changed, 10644475 insertions()create mode 100644 Dyn_Init_Scripts/Init_V2.2_Basic.tarcreate mode 100644 Dyn_Init_Scripts/Init_V2.2_Basic/.idea/.gitignorecreate mode 100644 Dyn_Init_Scripts/Init_V2.2_Basic/.idea/Init0411.imlcreate mode 100644 Dyn_Init_Scripts/Init_V2.2_Basic/.idea/encodings.xml....... ....... .......create mode 100644 Dyn_Init_Scripts/supervisorConfig/supervisord.confcreate mode 100644 Dyn_Init_Scripts/\345\210\235\345\247\213\345\214\226\350\204\ 232\346\234\254\344\273\213\347\273\215.txt [magxlocalhost riskcop]$[magxlocalhost riskcop]$ git commit -m 初始化(V2.2V2.3 业务测试性能测试Djangox项目) # On branch V2 # Your branch is ahead of origin/V2 by 1 commit. # (use git push to publish your local commits) # nothing to commit, working directory clean [magxlocalhost riskcop]$ 9.3 提交Git [magxlocalhost riskcop]$ git push origin V2:V2 # 提交Git Enter passphrase for key /home/magx/.ssh/id_rsa: Counting objects: 571, done. Delta compression using up to 80 threads. Compressing objects: 100% (569/569), done. Writing objects: 100% (570/570), 376.25 MiB | 1.24 MiB/s, done. Total 570 (delta 296), reused 12 (delta 1) remote: Resolving deltas: 100% (296/296), completed with 1 local object. remote: remote: To create a merge request for V2, visit: remote: http://192.168.2.114/zhangwk/riskcop/merge_requests/new?merge_request%5Bsource_branch%5DV2 remote: To git192.168.2.114:zhangwk/riskcop.git7e9b8f0..f9b4cc6 V2 - V2 [magxlocalhost riskcop]$ 11. Gti 上检查是否上传成功 12. 下载最新代码  下载最新 # 先进入已下载的项目分支目录后-- 执行 git pull 下载更新的内容 [magxserver-247 riskcop]$ git branch -a * (detached from origin/V2)V2remotes/origin/HEAD - origin/masterremotes/origin/V1.0.1remotes/origin/V2remotes/origin/masterremotes/origin/riskcop_robotframeworkremotes/origin/v1.0.0 [magxserver-247 riskcop]$ git pull origin V2 Enter passphrase for key /home/magx/.ssh/id_rsa: From 192.168.2.114:zhangwk/riskcop* branch V2 - FETCH_HEAD Already up-to-date. [magxserver-247 riskcop]$13. 下载指定分支代码 #下载 V2 分支代码[magxserver-247 git_test]$ git clone -b V2 git192.168.2.114:zhangwk/riskcop.git Cloning into riskcop... Enter passphrase for key /home/magx/.ssh/id_rsa: #私钥短语 yusur666 remote: Enumerating objects: 543, done. remote: Counting objects: 100% (543/543), done. remote: Compressing objects: 100% (182/182), done. remote: Total 4227 (delta 412), reused 482 (delta 355) Receiving objects: 100% (4227/4227), 497.75 MiB | 31.78 MiB/s, done. Resolving deltas: 100% (2718/2718), done. [magxserver-247 git_test]$ [magxserver-247 git_test]$ [magxserver-247 git_test]$ ll total 0 drwxrwxr-x 6 magx magx 138 Jul 14 13:49 riskcop [magxserver-247 git_test]$ [magxserver-247 git_test]$ [magxserver-247 git_test]$ cd riskcop/ [magxserver-247 riskcop]$ ll total 936208 -rw-rw-r-- 1 magx magx 63 Jul 14 13:49 README.md drwxrwxr-x 6 magx magx 114 Jul 14 13:49 V2.1 drwxrwxr-x 3 magx magx 24 Jul 14 13:49 V2.2 drwxrwxr-x 4 magx magx 4096 Jul 14 13:49 V2.3 -rw-rw-r-- 1 magx magx 859176960 Jul 14 13:49 Version_testing_0706.tar -rw-rw-r-- 1 magx magx 99490044 Jul 14 13:49 Version_testing_0706.tar.gz [magxserver-247 riskcop]$
http://www.hkea.cn/news/14325057/

相关文章:

  • 网站建设 图标德阳公司做网站
  • 拼多多网店怎么开asp网站做seo
  • 做机械设计的要知道哪些网站沈阳模板建站
  • 深圳网站建设公司地址网站制作软件有哪些
  • 网站开发代理商wordpress前台注册登陆
  • 做家常菜的网站哪个好珠海网站建设网络有限公司
  • 建行网站网址wordpress禁止主题更新
  • 什么网站容易做流量大航母网站建设在哪里
  • 以美食为主的网站栏目怎么做建设工程人员押证在哪个网站查
  • 公司网站首页如何做福建外贸网站
  • 大名网站建设费用石家庄seo全网营销
  • ps案例教程网站公司网站百度搜不到
  • 一等一网站成都做网络推广的公司有哪些
  • 企业网站建设费属于办公费吗新人做网站不懂设计版面怎么办
  • 精品建设课程网站龙华做网站联系电话
  • 公司响应式网站个人博客页面设计图
  • iis网站压缩什么叫做电商
  • h5做网站用什么框架网站建设代理商电话
  • 提供网站建设优势四川手机网站开发
  • 苏州地产网站建设网站后台管理增加功能
  • 中国南昌企业网站制作wordpress调用上传
  • 口碑好的唐山网站建设网站建设工具品牌有哪些
  • 餐饮美食网站模板源码上海天华建筑设计有限公司官网
  • 企业网站建设的报价工作室注册条件
  • 江西最近发生的新闻手机百度seo快速排名
  • 十大免费ppt网站在线做商城网站哪个好
  • 山西常见网站建设推荐优化接单网站设计 只做设计图报价
  • 三角网站建设外贸网站cms系统
  • 厦门唯一官方网站HTML和PHP怎么做网站
  • 上海找做网站公司线上推广宣传方式有哪些