个人博客日记
您现在的位置是:博客主页 > 个人博客日记

sublime text 3 linux 建站 sftp链接宝塔站点

By Dianthink on 个人博客日记 Time 2018-04-08 from:互联网 1203人已围观
简介:    sublime链接宝塔ftp,宝塔环境Linux,Apache+Mysql+php

1、sublime text 3的安装就不啰嗦,百度一下安装教程一堆,不过本站发布过快捷键文章:sublime text 3

2、对于使用宝塔面板的朋友想要用sublime链接宝塔的ftp,那就直接看下面,配置下就OK。

{

    // The tab key will cycle through the settings when first created
    // Visit http://wbond.net/sublime_packages/sftp/settings for help
    
    // sftp, ftp or ftps
    "type": "ftp",

    "save_before_upload": true,
    "upload_on_save": true,
    "sync_down_on_open": false,
    "sync_skip_deletes": false,
    "sync_same_age": true,
    "confirm_downloads": false,
    "confirm_sync": true,
    "confirm_overwrite_newer": false,
    
    "host": "ip或者域名",
    "user": "FTP用户名",
    "password": "FTP密码",
    "port": "端口号",
    
    "remote_path": "/域名或者二级域名/",
    "ignore_regexes": [
        "\\.sublime-(project|workspace)", "sftp-config(-alt\\d?)?\\.json",
        "sftp-settings\\.json", "/venv/", "\\.svn/", "\\.hg/", "\\.git/",
        "\\.bzr", "_darcs", "CVS", "\\.DS_Store", "Thumbs\\.db", "desktop\\.ini"
    ],
    "file_permissions": "664",
    "dir_permissions": "755",
    
    //"extra_list_connections": 0,

    "connect_timeout": 30,
    //"keepalive": 120,
    "ftp_passive_mode": false,
    //"ftp_obey_passive_host": false,
    //"ssh_key_file": "~/.ssh/id_rsa",
    //"sftp_flags": ["-F", "/path/to/ssh_config"],
    
    //"preserve_modification_times": false,
    //"remote_time_offset_in_hours": 0,
    //"remote_encoding": "utf-8",
    //"remote_locale": "C",
    //"allow_config_upload": false,
}

相关文章
文章评论

( 0 )