夜微冰萌 发布的文章

Nginx 常用配置
截图

nginx中文文档
nginx简易认证
常用命令原网址

nginx -s reopen     #重启Nginx
nginx -s reload     #重新加载Nginx配置文件,然后以优雅的方式重启Nginx
nginx -s stop       #强制停止Nginx服务
nginx -s quit       #优雅地停止Nginx服务(即处理完所有请求后再停止服务)
nginx -t            #检测配置文件是否有语法错误,然后退出
nginx -?,-h         #打开帮助信息
nginx -v            #显示版本信息并退出
nginx -V            #显示版本和配置选项信息,然后退出
nginx -t            #检测配置文件是否有语法错误,然后退出
nginx -T            #检测配置文件是否有语法错误,转储并退出
nginx -q            #在检测配置文件期间屏蔽非错误信息
nginx -p prefix     #设置前缀路径(默认是:/usr/share/nginx/)
nginx -c filename   #设置配置文件(默认是:/etc/nginx/nginx.conf)
nginx -g directives #设置配置文件外的全局指令
killall nginx       #杀死所有nginx进程

https://www.rultr.com/tutorials/proxy/2268.html

apt-get install unzip //Debian、Ubuntu系统

yum install unzip //RHEL/CentOS系统

bash <(curl -L -s https://install.direct/go.sh)

/usr/bin/v2ray/v2ray:V2Ray 程序;
/usr/bin/v2ray/v2ctl:V2Ray 工具;
/etc/v2ray/config.json:配置文件;
/usr/bin/v2ray/geoip.dat:IP 数据文件
/usr/bin/v2ray/geosite.dat:域名数据文件

service v2ray status

同时,V2Ray也支持Shadowsocks协议,把V2Ray软件当做Shadowsocks服务器来使用。完成此功能,需要在配置文件中增加”inboundDetour”配置块,使其支持另一种入流量:
"inboundDetour": [
{

 "protocol": "shadowsocks",
 "port": 10087,
 "settings": {
  "method": "aes-256-cfb",
  "password": "www.rultr.com",
  "udp": false
 }
}

],
“inboundDetour” 的字面意思就很有意思,就是指入流量的另一条道路。配置文件中”protocol”指入流量使用的协议,直接写 “shadowsocks”就是了;”port”是指使用”shadowsocks”协议侦听的端口,注意要和”vmess”协议端口有区别;”settings”部分是使用”shadowsocks”协议时的主要配置项,不做设置的话,”shadowsocks”协议将不能正常工作。一般只需要设置其中的”password”部分,由用户自行设定,用于客户端的连接。

这样设置完成后,V2Ray就可以同时作为V2Ray和Shadowsocks的服务器,响应不同客户端的连接,是不是很方便呢。如果不确信的话,可以用 netstat -tnlp 命令查看一下10086端口和10087端口是不是都显示为侦听状态。

以下是V2Ray作为服务器端的全部配置内容,这里提供给大家参考:

{
"log" : {

"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning"

},
"inbound": {

"port": 10086,
"protocol": "vmess",
"settings": {
  "clients": [
    {
      "id": "b831381d-6324-4d53-ad4f-8cda48b30811",
      "level": 1,
      "alterId": 64
    }
  ]
}

},
"inboundDetour": [
{

 "protocol": "shadowsocks",
 "port": 10087,
 "settings": {
  "method": "aes-256-cfb",
  "password": "www.rultr.com",
  "udp": false
 }
}

],
"outbound": {

"protocol": "freedom",
"settings": {}

},
"outboundDetour": [

{
  "protocol": "blackhole",
  "settings": {},
  "tag": "blocked"
}

],
"routing": {

"strategy": "rules",
"settings": {
  "rules": [
    {
      "type": "field",
      "ip": [
        "0.0.0.0/8",
        "10.0.0.0/8",
        "100.64.0.0/10",
        "127.0.0.0/8",
        "169.254.0.0/16",
        "172.16.0.0/12",
        "192.0.0.0/24",
        "192.0.2.0/24",
        "192.168.0.0/16",
        "198.18.0.0/15",
        "198.51.100.0/24",
        "203.0.113.0/24",
        "::1/128",
        "fc00::/7",
        "fe80::/10"
      ],
      "outboundTag": "blocked"
    }
  ]
}

}
}

原文https://www.cnblogs.com/biao-wu/p/13275486.html
亲测可用√

vim /usr/share/rpcd/acl.d/luci-base.json

{
"unauthenticated": {
    "description": "Allow system feature probing",
    "read": {
        "ubus": {
            "luci": [ "getFeatures" ]
        }
    }
},

"luci-base": {
    "description": "Grant access to basic LuCI procedures",
    "read": {
        "file": {
            "/": [ "list" ],
            "/*": [ "list" ]
        },
        "ubus": {
            "file": [ "list" ],
            "uci": [ "changes", "get" ]
        }
    },
    "write": {
        "cgi-io": [ "upload" ],
        "file": {
            "/etc/luci-uploads/*": [ "write" ]
        },
        "ubus": {
            "file": [ "remove" ],
            "uci": [ "add", "apply", "confirm", "delete", "order", "rename", "set" ]
        }
    }
},

加上下面这段

"uci-access": {
    "description": "Grant uci write access to all configurations",
    "read": {
        "uci": [ "*" ]
    },
    "write": {
        "uci": [ "*" ]
    }
},

结束

"luci-base-network-status": {
    "description": "Grant access to network status information",
    "read": {
        "ubus": {
            "luci-rpc": [ "getBoardJSON", "getHostHints", "getNetworkDevices", "getWirelessDevices" ],
            "network": [ "get_proto_handlers" ],
            "network.interface": [ "dump" ]
        },
        "uci": [ "luci", "network", "wireless" ]
    }
}

}

然后重启

[img相关]
img转qcow2命令
qemu-img convert -f raw -O qcow2 xxx(源img) xxx.qcow2
-O前面是源格式 后面是目标格式

check命令
qemu-img check xxx.qcow2

lede转换格式后会缩很多,这是正常现象

导入磁盘命令
qm importdisk 100(虚拟机编号) xxx.qcow2 local-lvm
虚拟机编号就是web后台左边树状图对应虚机前面的数字
local-lvm就是储存空间 我16g的盘给自动分了5个g

--
5#
local是pve自身用的,可以上传各系统ISO
lvm是虚拟机用的,包括创建的磁盘镜像,快照和备份
记得安装时用option可以选择lvm的大小,包括swap

https://koolshare.cn/thread-155427-1-1.html

[虚拟交换机相关]
创建虚拟交换机建议一次性添加好,要不然反复重启确实麻烦,不绑端口的虚拟交换机建议多加几个,防止不够用的尴尬事,反正放着也不碍事

在“网络”里创建一个“Linux bridge"
不填写“桥接端口”就是内部交换机
桥接端口填物理网卡名称
多个网口绑一个虚拟交换机就在添加“桥接端口”的时候加个空格

http://www.viprom.cn/course/157.html
三星Odin通用刷机图解教程!一体包/五件套刷机图

https://tieba.baidu.com/p/6230692676
三星E7000線刷官方五件套包救磚教程

http://bbs.gfan.com/android-9153783-1-3.html
N9008VZMUDPA2五件套

http://bbs.zol.com.cn/sjbbs/d98_83737.html
N9008v 从小白到刷机详细教程,成功刷入朝花夕拾(na2基带)并root(本人亲刷与在用)

https://twrp.me/
twrp官网