1.git权限添加
ssh-keygen vim id_rsa.pub
将公钥粘贴到个人中心的框中。
1.查看系统位数:
uname -a
x86 ======> 32位
x86_64 和 x64 以及AMD64 ======> 都是64位
2.清理空间:
du -h --max-depth=1
空间小于50G需要扩容
3. java-jdk安装
下载地址: https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html
安装方法:
4.homebrew安装
https://www.cnblogs.com/xibushijie/p/13335988.html
5.安装wget
brew install wget
检验是否成功:
6.申请并挂载硬盘。
#运行 fdisk -l ,确认云盘未挂载
fdisk -l
#查看硬盘
ls /dev/vd*
#dev/vdb上创建文件系统
mkfs.ext4 /dev/vdb
#挂载
mount -t ext4 /dev/vdb /home/users
#开机自动挂载
vim /etc/fstab ,新增一行:
/dev/vdb /home/users/ auto defaults,nofail,comment=cloudconfig 0 0
7.安装webav
yum install httpd* -y
vim /etc/httpd/conf/httpd.conf
在最后添加
Include conf/webdav.conf #指定webdav的配置文件路径
创建webdav配置文件
vim /etc/httpd/conf/webdav.conf
增加下列内容
<IfModule mod_dav.c>
LimitXMLRequestBody 131072
Alias /webdav "/home/users"
<Directory /home/users>
Dav On
Options +Indexes
IndexOptions FancyIndexing
AddDefaultCharset UTF-8
AuthType Basic
AuthName "WebDAV Server"
AuthUserFile /etc/httpd/webdav.users.pwd
Require valid-user
Order allow,deny
Allow from all
</Directory>
</IfModule>
创建并授权
mkdir -p /home/users
chown apache:apache /home/users
创建用户名和密码
htpasswd -c /etc/httpd/webdav.users.pwd apache
重启服务
/etc/init.d/httpd restart
finder下按commad+k
输入:http://10.138.63.152/webdav
账号:apache
密码:
8.设置mac自动锁屏时间
系统偏好设置-> 安全性与隐私-> 通用-> 取消勾选,设置时间
9.secureCRT 设置防止自动断开链接
Options->Session Options->Terminal->Anti-idle->勾选Send protocol NO-OP
10. 开发机器安装samba
2.2 安装samba
直接在当前目录安装即可:
yum -y install samba samba-client samba-swat
2.3 启动samba
/etc/init.d/smb start
2.4 配置samba的conf文件
vim /etc/samba/smb.conf
在配置文件里面的【global】上面空白处粘贴下面内容
[global]
diplay charset = utf8
unix charset = gbk
dos charset = gbk
workgroup = odp_map
netbios name = odp_map
server string = uc
security = user
[yangyueqiang] #用户名
comment = uc
path=/home/disk2/yangyueqiang #个人的目录
create mask = 0664
directory mask = 0775
writable = yes
valid users = yangyueqiang //用户登录名称,得是系统用户名
browseable = yes
2.5 添加自己的用户名
smbpasswd -a yangyueqiang
需要按要求输入密码,两次
2.6 重启samba服务
/etc/init.d/smb restart
2.7 在mac链接共享服务器
桌面访达 —> 前往 —> 链接服务器 —> 填写开发机的地址—> 输入密码 —> 连接成功
2.9 更改自己目录下的权限
chmod 777 -R yangyueqiang
