将本程序解压到任意目录, 并进入该目录,运行:
sudo python setup.py
配置文件:
HOST = "oss-internal.aliyuncs.com" ACCESS_ID = "2222" SECRET_ACCESS_KEY = "222222" oss_mappers = [{'bucket': tocoolaj', 'local_folders': ['/data/coolaj']}]
即为同步coolaj文件夹到tocoolaj的bucket
将本程序解压到任意目录, 并进入该目录,运行:
sudo python setup.py
配置文件:
HOST = "oss-internal.aliyuncs.com" ACCESS_ID = "2222" SECRET_ACCESS_KEY = "222222" oss_mappers = [{'bucket': tocoolaj', 'local_folders': ['/data/coolaj']}]
即为同步coolaj文件夹到tocoolaj的bucket
比如查找当前目录下所有包含123的php文件
命令如下:
grep "123" -rn */*.php
如果www.coolaj.cn coolaj.cn都解析到www.coolaj.cn
打开 nginx.conf文件找到你的server配置段:
server { listen 80; server_name www.coolaj.cn coolaj.cn; if ($host != 'www.coolaj.cn' ) { rewrite ^/(.*)$ http://www.coolaj.cn/$1 permanent; }