常用工具包安装

leetcode刷题知识点:https://github.com/h2pl/leetcode

https://github.com/wolverinn/Waking-Up

KOA 阿里框架:https://eggjs.org/zh-cn/intro/quickstart.html

Flutter 跨平台应用框架 https://flutterchina.club/get-started/install/

npm install 换源 npm install electron@8.2.0 --registry=https://registry.npm.taobao.org

1.python 包环境管理器Conda:
centos 安装python包管理器:conda
包下载地址https://docs.conda.io/en/latest/miniconda.html
通过 wget https://repo.anaconda.com/miniconda/Miniconda2-latest-Linux-x86_64.sh
chmod 777 Miniconda2-latest-Linux-x86_64.sh
运行 bash Miniconda2-latest-Linux-x86_64.sh
cd /root/miniconda2/bin
. ./activate 启动conda
1. conda create --name project_name python=python版本号(2.7)
2. activate project_name 进入环境
3. deactivate env_name 退出环境
3. conda info --env  查看已安装的环境

 

2.node 版本管理器 NVM
git clone git://github.com/creationix/nvm.git ~/nvm
设置nvm自动运行
echo "source ~/nvm/nvm.sh" >> ~/.bashrc
source ~/.bashrc
查询Node.js版本
nvm list-remote
nvm install v7.6.0
nvm use v7.6.0
nvm alias default <version> 设置默认版本


3.centos 按照 supervisor
yum install epel-release
yum install supervisor
启动 supervisord -c /etc/supervisord.conf
进入 supervisorctl status
配置文件 /etc/supervisord.d/default.ini
[program:image_process_server]
command=/root/nvm/versions/node/v8.11.3/bin/node bin/run
environment= PATH=/root/nvm/versions/node/v8.11.3/bin, PORT=%(process_num)d, NODE_ENV=online_nfs_kvm
process_name=%(program_name)s-%(process_num)d
numprocs=4
numprocs_start=3301
directory=/opt/sites/image_process_node
stopsignal=INT
user=root
redirect_stderr=true
stdout_logfile_maxbytes=100MB
stdout_logfile_backups=20
stdout_logfile=/data/log/image_process_server/super.log

 


4.centos 安装 Nginx
yum install nginx
方法一
vi /lib/systemd/system/nginx.service
systemctl start nginx.service        #启动nginx服务
systemctl stop nginx.service         #停止nginx服务
systemctl enable nginx.service       #设置开机自启动
systemctl disable nginx.service        #停止开机自启动
systemctl status nginx.service         #查看服务当前状态
systemctl restart nginx.service      #重新启动服务
systemctl list-units --type=service   #查看所有已启动的服务
方法二:

启动nginx: systemctl start nginx
nginx -c /etc/nginx/nginx.conf
nginx -s reload
nginx -s stop
默认配置文件路径:/etc/nginx/
配置文件路径:/etc/nginx/conf.d
upstream upstream_image_process_server {
    least_conn;

    server 127.0.0.1:3301 max_fails=1 fail_timeout=10;
    server 127.0.0.1:3302 max_fails=1 fail_timeout=10;
    server 127.0.0.1:3303 max_fails=1 fail_timeout=10;
    server 127.0.0.1:3304 max_fails=1 fail_timeout=10;
}

server {
    listen 3300 default_server;
    server_name _;

    access_log /data/log/nginx/image_process_server.access.log main;
    error_log  /data/log/nginx/image_process_server.log info;

    proxy_pass_header Server;
    proxy_set_header Host $http_host;
    proxy_redirect off;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Scheme $scheme;
    location / {
        proxy_pass http://upstream_image_process_server;
    }
}

 配置https ssl nginx 证书,放在 which nginx  安装路径 nginx/conf下

server {
    listen 80;
        server_name  www.unionline.top;
        location /html/ {
            proxy_pass http://182.254.210.154:9100/;
        }
        location /mobile/ {
            proxy_pass http://182.254.210.154:9101/;
        }

    }
    # HTTPS server
    server {
        listen       443 ssl;
        server_name  www.unionline.top;
     
        ssl_certificate      1_www.unionline.top_bundle.crt;
        ssl_certificate_key  2_www.unionline.top.key;
     
        ssl_session_cache    shared:SSL:1m;
        ssl_session_timeout  5m;
     
        ssl_ciphers  HIGH:!aNULL:!MD5;
        ssl_prefer_server_ciphers  on;
     
        location /html/ {
            proxy_pass https://182.254.210.154:9100/;
        }
        location /mobile/ {
            proxy_pass https://182.254.210.154:9101/;
        }
     }

 

5. 安装Node版本的swagger
git clone https://github.com/swagger-api/swagger-ui.git
cd swagger-editor
npm install
npm run build
启动方式1: npm start
启动方式2: http-server (npm install -g http-server) http://localhost:8080/dist/index.html

 

6. Window服务器 nssm工具服务进程管理


Sqlite3 查看器 DB Browser for Sqlite
MySQL 查看器 HeiDiSQL
ICON 合成器 SIB ICON Studio
Git SourceTree






posted @ 2020-05-09 18:45  一样菜  阅读(606)  评论(0编辑  收藏  举报