docker部署oracle11g
1. 安装docker笔记
2. 部署oracle镜像1docker run -d -p 1521:1521 --name oracle_11g registry.aliyuncs.com/helowin/oracle_11g
3. 连接进入镜像进行配置12345678910111213141516171819docker exec -it oracle_11g bash#以下为docker中执行su root#密码helowinvi /etc/profile export ORACLE_HOME=/home/oracle/app/oracle/product/11.2.0/dbhome_2 export ORACLE_SID=helowin export PATH=$ORACLE_HOME/bin:$PATH ln -s $ORACLE_HOME/bin/sqlplus /usr/binsu - oraclesqlplus /nologconn /as sysdbaSQL> alter user system identified by oracle; SQL> ...
centos 7 安装nginx1.12.1
1、所需模块
模块名称:ngx_http_limit_conn_module
模块名称:ngx_http_limit_req_module
模块名称:ngx_http_geo_module
模块名称:ngx_http_map_module
模块名称:ngx_http_geoip_module
模块名称:naxsi
[https://github.com/nbs-system/naxsi][https://github.com/nbs-system/naxsi]
模块名称:nginx-limit-upstream
[https://github.com/cfsego/nginx-limit-upstream/][https://github.com/cfsego/nginx-limit-upstream/]
模块名称:nginx-upstream-jvm-route
[https://github.com/nulab/nginx-upstream-jvm-route][https://github.com/nulab/nginx-upstream-jvm-route]
...
系统内核优化记录
1234567891011121314151617181920212223242526272829303132333435[root@localhost ~]# cat /etc/sysctl.conf fs.file-max = 65535net.ipv4.ip_forward = 1net.ipv4.conf.default.rp_filter = 1net.ipv4.conf.default.accept_source_route = 0kernel.sysrq = 0kernel.core_uses_pid = 1net.ipv4.tcp_syncookies = 1kernel.msgmnb = 65536kernel.msgmax = 65536kernel.shmmax = 68719476736kernel.shmall = 4294967296net.ipv4.tcp_max_tw_buckets = 20000net.ipv4.tcp_sack = 1net.ipv4.tcp_window_scaling = 1net.ipv4.tcp_rmem = 4096 ...
tr 命令权限列表
tr 命令
tr命令可以对来自标准输入的字符进行替换、压缩和删除。它可以将一组字符变成另一组字符,经常用来编写优美的单行命令,作用很强大。
1234-c或——complerment:取代所有不属于第一字符集的字符;-d或——delete:删除所有属于第一字符集的字符;-s或--squeeze-repeats:把连续重复的字符以单独一个字符表示;-t或--truncate-set1:先删除第一字符集较第二字符集多出的字符。
12echo "HELLO WORLD" | tr 'A-Z' 'a-z'hello world
12echo "hello 123 world 456" | tr -d '0-9'hello world
1cat text | tr '\t' ' '
12echo aa.,a 1 b#$bb 2 c*/cc 3 ddd 4 | tr -d -c '0-9 \n' 1 2 3 4
12e ...
for and while
for and whilefor1234567891011L = ['Bart', 'Lisa', 'Adam']for l in L: print(l)L = ['Bart', 'Lisa', 'Adam']l = 0while l <= 2: print(L[l]) l = l+1