VPS侦探论坛

 找回密码
 注册
查看: 6564|回复: 1

原创,用ln创建快捷方式在sftp下方便的连接几个目录

[复制链接]
发表于 2011-5-7 14:12:02 | 显示全部楼层 |阅读模式

在  /home/wwwroot   /root  /usr/local/apache/conf/vhost   /usr/local/nginx/conf/vhost
这四个目录里做了相互的快捷方式 便于以后的sftp管理
  1. ln -s /root /home/wwwroot/~root
  2. ln -s /usr/local/nginx/conf/vhost /home/wwwroot/~nginxvhost
  3. ln -s /usr/local/apache/conf/vhost  /home/wwwroot/~apachevhost

  4. ln -s /home/wwwroot /root/~home
  5. ln -s /usr/local/nginx/conf/vhost /root/~nginxvhost
  6. ln -s /usr/local/apache/conf/vhost  /root/~apachevhost

  7. ln -s /home/wwwroot /usr/local/nginx/conf/vhost/~home
  8. ln -s /root /usr/local/nginx/conf/vhost/~root
  9. ln -s /usr/local/apache/conf/vhost  /usr/local/nginx/conf/vhost/~apachevhost

  10. ln -s /root /usr/local/apache/conf/vhost/~root
  11. ln -s /home/wwwroot /usr/local/apache/conf/vhost/~home
  12. ln -s /usr/local/nginx/conf/vhost /usr/local/apache/conf/vhost/~nginxvhost
复制代码

[ 本帖最后由 wxforex 于 2011-5-7 14:23 编辑 ]
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2011-5-8 00:26:57 | 显示全部楼层


收藏了!!!!!!!!!!!!!!!!!
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-12-24 21:43 , Processed in 0.025751 second(s), 17 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表