码迷,mamicode.com
首页 > 其他好文 > 详细

nginx配置

时间:2020-03-22 15:36:10      阅读:55      评论:0      收藏:0      [点我收藏+]

标签:locate   ati   locale   password   host   getopts   pytho   dsp   apt   

nginx 配置:

目录:/usr/local/nginx

文件:conf/nginx.conf

Xshell 5 (Build 0964)
Copyright (c) 2002-2016 NetSarang Computer, Inc. All rights reserved.

Type `help‘ to learn how to use Xshell prompt.
[\\Mac\Home\Documents\NetSarang\Xshell\Sessions]$ 

Connecting to 10.74.68.14:22...
Connection established.
To escape to local shell, press ‘Ctrl+Alt+]‘.

Last login: Sat Mar 21 12:21:23 2020 from 10.74.30.4
[root@lml7uattest1 ~]# cd /usr/bin
[root@lml7uattest1 bin]# ls
[                               getopts                mixartloader              sg
a2p                             gettext                mkdir                     sh
aclocal                         gettextize             mkfifo                    sha1sum
aclocal-1.13                    gettext.sh             mkinitrd                  sha224sum
addr2line                       gio                    mknod                     sha256sum
alias                           gio-querymodules-64    mktemp                    sha384sum
appletviewer                    git                    modutil                   sha512sum
apropos                         git-receive-pack       more                      showconsolefont
ar                              git-shell              mount                     showkey
arch                            git-upload-archive     mountpoint                shred
as                              git-upload-pack        msgattrib                 shuf
aserver                         glib-compile-schemas   msgcat                    signver
audit2allow                     gmake                  msgcmp                    sim_client
audit2why                       gneqn                  msgcomm                   size
aulast                          gnroff                 msgconv                   skill
aulastlog                       gpasswd                msgen                     slabtop
ausyscall                       gpg                    msgexec                   sleep
autoconf                        gpg2                   msgfilter                 slogin
autoheader                      gpg-agent              msgfmt                    snice
autom4te                        gpgconf                msggrep                   soelim
automake                        gpg-connect-agent      msghack                   sort
automake-1.13                   gpg-error              msginit                   sotruss
autopoint                       gpgparsemail           msgmerge                  splain
autoreconf                      gpgsplit               msgunfmt                  split
autoscan                        gpgv                   msguniq                   sprof
autoupdate                      gpgv2                  mv                        sqlite3
auvirt                          gpg-zip                namei                     ssh
awk                             gpic                   native2ascii              ssh-add
base64                          gprof                  ndptool                   ssh-agent
basename                        grep                   neqn                      ssh-copy-id
bash                            groff                  nettle-hash               ssh-keygen
bashbug                         grops                  nettle-lfib-stream        ssh-keyscan
bashbug-64                      grotty                 newaliases                ssltap
bg                              groups                 newaliases.postfix        stat
bond2team                       grub2-editenv          newgrp                    stdbuf
bootctl                         grub2-file             ngettext                  strings
busctl                          grub2-fstest           nice                      strip
c++                             grub2-glue-efi         nisdomainname             stty
c2ph                            grub2-kbdcomp          nl                        su
c89                             grub2-menulst2cfg      nm                        sudo
c99                             grub2-mkfont           nmcli                     sudoedit
cal                             grub2-mkimage          nm-online                 sudoreplay
captoinfo                       grub2-mklayout         nmtui                     sum
cat                             grub2-mknetdir         nmtui-connect             sync
catchsegv                       grub2-mkpasswd-pbkdf2  nmtui-edit                systemctl
catman                          grub2-mkrelpath        nmtui-hostname            systemd-analyze
cc                              grub2-mkrescue         nohup                     systemd-ask-password
cd                              grub2-mkstandalone     nproc                     systemd-cat
centrino-decode                 grub2-render-label     nroff                     systemd-cgls
certutil                        grub2-script-check     nsenter                   systemd-cgtop
c++filt                         grub2-syslinux2cfg     nss-policy-check          systemd-coredumpctl
chacl                           gsettings              numfmt                    systemd-delta
chage                           gsoelim                objcopy                   systemd-detect-virt
chattr                          gss-client             objdump                   systemd-escape
chcat                           gtar                   od                        systemd-firstboot
chcon                           gtbl                   oldfind                   systemd-hwdb
checkmodule                     gtroff                 open                      systemd-inhibit
checkpolicy                     gunzip                 openssl                   systemd-loginctl
chfn                            gzexe                  openvt                    systemd-machine-id-setup
chgrp                           gzip                   orbd                      systemd-notify
chmod                           h2ph                   os-prober                 systemd-nspawn
chown                           h2xs                   p11-kit                   systemd-path
chrt                            hdsploader             pack200                   systemd-run
chsh                            head                   passwd                    systemd-stdio-bridge
chvt                            hexdump                paste                     systemd-sysv-convert
cksum                           hostid                 pathchk                   systemd-tmpfiles
clear                           hostname               pcre-config               systemd-tty-ask-password-agent
cmp                             hostnamectl            perl                      tabs
cmsutil                         i386                   perl5.16.3                tac
col                             iconv                  perlbug                   tail
colcrt                          id                     perldoc                   tailf
colrm                           idlj                   perlivp                   tar
column                          idn                    perlthanks                taskset
comm                            ifnames                pgawk                     tbl
command                         igawk                  pgrep                     teamd
compile_et                      info                   pic                       teamdctl
container-storage-setup         infocmp                piconv                    teamnl
ControlPanel                    infokey                pinentry                  tee
coredumpctl                     infotocap              pinentry-curses           test
cp                              install                ping                      testgdbm
cpio                            instmodsh              ping6                     tic
cpp                             ionice                 pinky                     timedatectl
cpupower                        ipcalc                 pk12util                  timeout
crlutil                         ipcmk                  pkaction                  tload
crontab                         ipcrm                  pkcheck                   tnameserv
csplit                          ipcs                   pkcs1-conv                toe
csslint-0.6                     iptables-xml           pkexec                    top
curl                            isosize                pkg-config                touch
curl-config                     jar                    pkill                     tput
cut                             jarsigner              pkla-admin-identities     tr
date                            java                   pkla-check-authorization  tracepath
db_archive                      javac                  pkttyagent                tracepath6
db_checkpoint                   javadoc                pl2pm                     troff
db_deadlock                     javafxpackager         pldd                      true
db_dump                         javah                  plymouth                  truncate
db_dump185                      javap                  pmap                      tset
db_hotbackup                    javapackager           pod2html                  tsort
db_load                         java-rmi.cgi           pod2man                   tty
db_log_verify                   javaws                 pod2text                  turbostat
db_printlog                     jcmd                   pod2usage                 tzselect
db_recover                      jconsole               policytool                udevadm
db_replicate                    jcontrol               post-grohtml              ul
db_stat                         jdb                    powernow-k8-decode        umask
db_tuner                        jdeps                  pr                        umount
db_upgrade                      jhat                   preconv                   unalias
dbus-binding-tool               jinfo                  pre-grohtml               uname
dbus-cleanup-sockets            jjs                    printenv                  unexpand
dbus-daemon                     jmap                   printf                    unicode_start
dbus-monitor                    jmc                    prlimit                   unicode_stop
dbus-send                       jmc.ini                prove                     uniq
dbus-uuidgen                    jobs                   ps                        unlink
db_verify                       join                   psed                      unlz4
dd                              journalctl             psfaddtable               unpack200
deallocvt                       jps                    psfgettable               unshare
df                              jrunscript             psfstriptable             unxz
dgawk                           jsadebugd              psfxtable                 update-ca-trust
diff                            json_reformat          pstruct                   update-mime-database
diff3                           json_verify            ptx                       uptime
dir                             jstack                 pwd                       urlgrabber
dircolors                       jstat                  pwdx                      users
dirname                         jstatd                 pwmake                    usleep
dmesg                           jvisualvm              pwscore                   usx2yloader
dnsdomainname                   kbdinfo                pydoc                     utmpdump
docker                          kbd_mode               python                    uuclient
docker-containerd               kbdrate                python2                   uuidgen
docker-containerd-current       kdumpctl               python2.7                 vdir
docker-containerd-shim          kernel-install         ranlib                    vi
docker-containerd-shim-current  keytool                raw                       view
docker-ctr-current              kill                   read                      vlock
docker-current                  kmod                   readelf                   vmstat
dockerd                         krb5-config            readlink                  vxloader
dockerd-current                 last                   realpath                  w
docker-storage-setup            lastb                  recode-sr-latin           wait
domainname                      lastlog                rename                    wall
dracut                          lchfn                  renice                    watch
dtrace                          lchsh                  reset                     watchgnupg
du                              ld                     resizecons                wc
dumpkeys                        ld.bfd                 rev                       wdctl
dwp                             ldd                    rm                        wget
easy_install                    ld.gold                rmail                     whatis
easy_install-2.7                less                   rmail.postfix             whereis
echo                            lessecho               rmdir                     which
egrep                           lesskey                rmic                      whiptail
eject                           lesspipe.sh            rmid                      who
elfedit                         lexgrog                rmiregistry               whoami
env                             libnetcfg              rpcgen                    write
envsubst                        libtool                rpm                       wsgen
eqn                             libtoolize             rpm2cpio                  wsimport
ex                              link                   rpmdb                     x86_64
expand                          linux32                rpmkeys                   x86_64-redhat-linux-c++
expr                            linux64                rpmquery                  x86_64-redhat-linux-g++
extcheck                        linux-boot-prober      rpmverify                 x86_64-redhat-linux-gcc
factor                          ln                     rsync                     x86_energy_perf_policy
fallocate                       loadkeys               rsyslog-recover-qi.pl     xargs
false                           loadunimap             runcon                    xgettext
fc                              locale                 run-parts                 xjc
fg                              localectl              rvi                       xmlcatalog
fgconsole                       localedef              rview                     xmllint
fgrep                           logger                 s2p                       xmlwf
file                            login                  sandbox                   xsubpp
find                            loginctl               schemagen                 xz
find2perl                       logname                scp                       xzcat
findmnt                         look                   script                    xzcmp
fipscheck                       ls                     scriptreplay              xzdec
fipshmac                        lsattr                 sdiff                     xzdiff
firewall-cmd                    lsblk                  secon                     xzegrep
firewall-offline-cmd            lscpu                  sed                       xzfgrep
flock                           lsinitrd               sedismod                  xzgrep
fmt                             lslocks                sedispol                  xzless
fold                            lua                    semodule_package          xzmore
free                            luac                   seq                       yes
g++                             lz4                    serialver                 ypdomainname
gapplication                    lz4c                   servertool                yum
gawk                            lz4cat                 setarch                   zcat
gcc                             m4                     setfacl                   zcmp
gcc-ar                          machinectl             setfont                   zdiff
gcc-nm                          mailq                  setkeycodes               zegrep
gcc-ranlib                      mailq.postfix          setleds                   zfgrep
gcov                            make                   setmetamode               zforce
gdbus                           makedb                 setpriv                   zgrep
gencat                          man                    setsid                    zless
geqn                            mandb                  setterm                   zmore
getconf                         manpath                setup-nsssysinit          znew
getent                          mapscrn                setup-nsssysinit.sh       zsoelim
getfacl                         mcookie                setvtrgb
getkeycodes                     md5sum                 sexp-conv
getopt                          mesg                   sftp
[root@lml7uattest1 bin]# cd ../
[root@lml7uattest1 usr]# ls
bin  etc  games  include  java  lib  lib64  libexec  local  sbin  share  src  tmp
[root@lml7uattest1 usr]# cd ../
[root@lml7uattest1 /]# cd /usr/local/nginx/
[root@lml7uattest1 nginx]# ls
client_body_temp  conf  fastcgi_temp  html  logs  proxy_temp  sbin  scgi_temp  uwsgi_temp
[root@lml7uattest1 nginx]# cd conf/
[root@lml7uattest1 conf]# ls
fastcgi.conf          fastcgi_params.default  mime.types          nginx.conf.default   uwsgi_params
fastcgi.conf.default  koi-utf                 mime.types.default  scgi_params          uwsgi_params.default
fastcgi_params        koi-win                 nginx.conf          scgi_params.default  win-utf
[root@lml7uattest1 conf]# vi nginx.conf


#user  nobody;
worker_processes  1;

#error_log  logs/error.log;
#error_log  logs/error.log  notice;
#error_log  logs/error.log  info;

#pid        logs/nginx.pid;


events {
    worker_connections  1024;
}


http {
    include       mime.types;
    default_type  application/octet-stream;

    #log_format  main  ‘$remote_addr - $remote_user [$time_local] "$request" ‘
    #                  ‘$status $body_bytes_sent "$http_referer" ‘
    #                  ‘"$http_user_agent" "$http_x_forwarded_for"‘;

    #access_log  logs/access.log  main;

    sendfile        on;
    #tcp_nopush     on;

    #keepalive_timeout  0;
    keepalive_timeout  65;

    #gzip  on;
    #20200225添加
    upstream testTomcat{
        #设置分权,权重越高优先访问
        server 10.74.68.17:9000 weight=1;
        server 10.74.68.13:9000 weight=1;
        server 10.74.68.14:9000 weight=1;
}
    server {
        listen       80;
        server_name  10.74.68.14;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

  

nginx配置

标签:locate   ati   locale   password   host   getopts   pytho   dsp   apt   

原文地址:https://www.cnblogs.com/hoge66/p/12546216.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!