Windows 10 | edge change the default search engine

Windows 10 | edge change the default search engine

Test Environment
Test OS : Windows 10


1. ์„ค์ •

part1

tip. Copy and paste "edge://settings/search" (without the quotes) into your address bar.

2. ๊ฐœ์ธ ์ •๋ณด ๋ฐ ์„œ๋น„์Šค

part2

3. ์ฃผ์†Œ ํ‘œ์‹œ์ค„ > ์›ํ•˜๋Š” ๊ฒ€์ƒ‰ ์—”์ง„ ๋ณ€๊ฒฝ

part3

CMD | ํŠน์ • ํ™•์žฅ์ž ๊ถŒํ•œ ์ผ๊ด„ ๋ณ€๊ฒฝ

ํŠน์ • ํ™•์žฅ์ž ๊ถŒํ•œ ์ผ๊ด„ ๋ณ€๊ฒฝ

์‚ฌ์šฉ ํ™˜๊ฒฝ์—์„œ ํ•„์š”ํ•œ ๋‚ด์šฉ๋งŒ ์ •๋ฆฌ.

์‹œ์Šคํ…œ ํ™˜๊ฒฝ

OS : CentOS 7 3.10.0-957.el7.x86_64

์‚ฌ์šฉ ๋ฐฉ๋ฒ•

๋ณด์•ˆ ์ทจ์•ฝ์  ๋””๋ ‰ํ† ๋ฆฌ ๋ฐ ํŒŒ์ผ ๊ถŒํ•œ ๋ณ€๊ฒฝ ์กฐ์น˜์— ๋”ฐ๋ฅธ ์˜ˆ์‹œ

  • Permission Change (์ฃผ๋กœ ์‚ฌ์šฉ ํ•˜๋Š” ๋ฐฉ๋ฒ•) :
chown -R wasadm:wasadm ./*
chmod -R 750 ./*

find . -name *.xml -exec chmod 640 {} \;
find . -name *.log -exec chmod 640 {} \;
find . -name *.properties -exec chmod 640 {} \;

WAS | How to disable server name header

WebSphere - How to disable server name header

Test Version

  • Test OS : CentOS 7.2
  • Test WAS : WebSphere v8.5

X-Powered-By disable setting

  • ๋ณด์•ˆ ์ทจ์•ฝ์  ์‚ฌํ•ญ

  • IBM HTTPServer (apache)
    This can be mitigated by adding (httpd.conf):

AddServerHeader Off
ServerTokens Prod
ServerSignature Off
  • WebSphere
    v8.5.0.2 ์ดํ•˜ ๋ฒ„์ „์—์„œ๋Š” ๋‘๊ฐ€์ง€ ์˜ต์…˜์œผ๋กœ server version ๋…ธ์ถœ์„ ๋ฐฉ์ง€.

  • ServerHeaderValue :
    Use the ServerHeaderValue property to replace the default value of the Server header that is added to all outgoing HTTP responses by server if a Server header does not already exist. The default value for the Server header is WebSphere Application Server v/x.x, where x.x is the version of WebSphere Application Server that is running on your system.

  • RemoveServerHeader :
    Use the RemoveServerHeader property to force the removal of any server header from HTTP responses that the application server sends, thereby hiding the identity of the server program.

setting link : https://www.ibm.com/support/knowledgecenter/SSEQTP_8.5.5/com.ibm.websphere.base.doc/ae/rrun_chain_httpcustom.html

Starting with Version 8.5.0.2, a Server header is no longer automatically added to all outgoing HTTP responses if a Server header does not already exist. If you add this property with a value, that value is included in the Server header that appears in the response. If you specify the value DefaultServerValue, WebSphere Application Server v/x.x is used as the Server header value.

WebSphere - How to disable X-Powered-By header

WebSphere - How to disable X-Powered-By header

Test Version

  • Test OS : CentOS 7.2
  • Test WAS : WebSphere v.8.5

X-Powered-By disable setting

  • ๋ณด์•ˆ ์ทจ์•ฝ์  ์‚ฌํ•ญ

You can set the property 'com.ibm.ws.webcontainer.disablexPoweredBy' to true as described in the section

setting link : https://www.ibm.com/support/knowledgecenter/ko/SSAW57_8.5.5/com.ibm.websphere.nd.multiplatform.doc/ae/rweb_custom_props.html#com.ibm.ws.webcontainer.DisableXPoweredByHeader

์„ค์ • ์ดํ›„ ์„œ๋ฒ„ ์žฌ ๊ธฐ๋™ ํ•„์š”.

CMD - ๊ฐœํ–‰ ๋ฌธ์ž ์ผ๊ด„ ์ œ๊ฑฐ ๋ฐฉ๋ฒ•

ํŒŒ์ผ ์—…๋กœ๋“œํ›„ ๊ฐœํ–‰ ๋ฌธ์ž ์ œ๊ฑฐ ๋ฐฉ๋ฒ•


Test environment

OS : AIX

Issue

windows ์—์„œ ์ž‘์—…ํ›„ ํŒŒ์ผ ์—…๋กœ๋“œํ•˜๊ณ  vi๋กœ ์—ด๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด ๊ฐœํ–‰ ๋ฌธ์ž๊ฐ€ ๋ณด์ž„.

vi๋กœ ์—ด๋ฉด ์•„๋ž˜์™€ ๊ฐ™์ด ๊ฐœํ–‰ ๋ฌธ์ž๊ฐ€ ๋ณด์ž„

#!/bin/sh^M
#./startServer.sh server_name^M
#./stopServer.sh server_name -username username -password password^M
  • Perl ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ๊ฐœํ–‰ ๋ฌธ์ž ์ œ๊ฑฐ

    perl -pi -e 's/^M//g' {file_name}
test1 root [/was8/bin]#perl -pi -e 's/^M//g' stopWasAll.sh
perl -pi -e 's/\015//g' startWeb.sh
perl -pi -e 's/\015//g' stopWeb.sh

vi๋กœ ์—ด์–ด ๋ณด๋ฉด ์ด์ œ ๊ฐœํ–‰ ๋ฌธ์ž๊ฐ€ ์‚ฌ๋ผ์ง„ ๋ชจ์Šต์„ ํ™•์ธ ํ•  ์ˆ˜ ์žˆ๋‹ค.

test1 root [/was8/bin]#vi stopW*.sh
#!/bin/sh
#./startServer.sh server_name
#./stopServer.sh server_name -username username -password password
#PropFilePasswordEncoder.sh
#export LANG=en_us.utf8

WEB - apache ์„ค์น˜ ๊ฐ€์ด๋“œ

apache ์„ค์น˜ ๊ฐ€์ด๋“œ

์‹ค ์‚ฌ์šฉ ํ™˜๊ฒฝ์—์„œ ํ•„์š”ํ•œ ๋‚ด์šฉ๋งŒ ์ •๋ฆฌ


Test environment

OS : CentOS 7 3.10.0-957.el7.x86_64

์‚ฌ์ „ ์ž‘์—…

Install APR (Apache Protable Runtime)

์ปดํŒŒ์ผ๋ฐฉ์‹์œผ๋กœ ์„ค์น˜ ํ•˜๊ธฐ ๋•Œ๋ฌธ์— ์‚ฌ์ „์— APR์„ ๋‹ค์šด๋กœ๋“œ

์ตœ์‹  Apache HTTP Server ์‚ฌ์šฉํ•˜๊ธฐ ์œ„ํ•ด์„œ๋Š” ๋ฒ„์ „์— ๋งž๋Š” APR ์„ค์น˜๊ฐ€ ํ•„์š”.

  • ํŒจํ‚ค์ง€ ์‚ฌ์ „ ์„ค์น˜ ํ™•์ธ

    yum -y install gcc make gcc-c++ pcre-devel

apr

Download link : https://apr.apache.org/download.cgi

[root@was11 apr]$ ./configure --prefix=/SW/web/tools/apr
[root@was11 apr]$ make && make install

apr-util

#์••์ถ• ํ•ด์ œ
[root@was11 apr-util]$ ./configure --prefix=/SW/web/tools/apr-util --with-apr=/SW/web/tools/apr
[root@was11 apr-util]$ make && make install

PCRE

https://www.pcre.org/

[root@was11 pcre]# ./configure --prefix=/SW/web/tools/pcre
[root@was11 pcre]# make && make install

openssl

Download link : https://www.openssl.org/source/


[root@was11 openssl]# ./config --openssldir=/SW/web/tools/openssl

make

make uninstall

์ฃผ์š” ๋‚ด์šฉ

[root@was11 httpd24]$ tar -zxvf httpd-2.4.41.tar.gz
[root@was11 openssl]# make && make install

configure command

[root@was11 httpd24]# ./configure -prefix=/SW/web/httpd24 -enable-so -enable-rewrite --enable-proxy -enable-ssl -enable-mods-shared=all -enable-modules=shared -enable-mpms-shared=all --with-mpm=worker --with-apr=/SW/web/tools/apr --with-apr-util=/SW/web/tools/apr-util --with-pcre=/SW/web/tools/pcre --with-ssl=/SW/web/tools/openssl --enable-ssl -enable-unique-id

[root@was11 httpd24]# make && make install

start

/SW/web/httpd24/bin/apachectl start

indexpage

CMD - ์ž์ฃผ ์‚ฌ์šฉํ•˜๋Š” find ๋ช…๋ น์–ด

find ๋ช…๋ น์–ด ๊ฐ„๋‹จ ์‚ฌ์šฉ๋ฒ•

์‹ค ์‚ฌ์šฉ ํ™˜๊ฒฝ์—์„œ ํ•„์š”ํ•œ ๋‚ด์šฉ๋งŒ ์ •๋ฆฌ.


Test environment

OS : CentOS 7 3.10.0-957.el7.x86_64

์ฃผ์š” ๋‚ด์šฉ

๊ธฐ๋ณธ ๋ช…๋ น์–ด

find ~ -name readme.txt
find [-H] [-L] [-P] [path...] [expression]

  • ์ด๋ฆ„์œผ๋กœ ํŒŒ์ผ ์ฐพ๊ธฐ
[root@localhost /]# find /sw -name "Mem.sh"
/sw/Mem.sh
  • ์ด๋ฆ„์œผ๋กœ ํ˜„์žฌ ๋””๋ ‰ํ† ๋ฆฌ์˜ ํŒŒ์ผ ์ฐพ๊ธฐ (.)
[root@localhost /]# find . -name "Mem.sh"
find: ‘./run/user/1000/gvfs’: Permission denied
./sw/Mem.sh
  • ๋Œ€์†Œ๋ฌธ์ž ๊ตฌ๋ถ„ ์—†์ด ํŒŒ์ผ ์ฐพ๊ธฐ (iname)
[root@localhost sw]# find /sw -iname "Mem.sh"
/sw/Mem.sh
/sw/MEM.sh
  • n์ผ ์ด๋‚ด์˜ ๋ณ€๊ฒฝ๋œ ํŒŒ์ผ ์ฐพ๊ธฐ
[root@localhost /]# find /sw -name "*.sh" -mtime -1
/sw/Mem.sh
/sw/Mem1.sh
/sw/MEM.sh
  • ๊ฒ€์ƒ‰๋œ ํŒŒ์ผ์˜ ๋ฌธ์ž์—ด ์ฐพ๊ธฐ
[root@localhost /]# find /sw -name "*.sh" -mtime -1 | xargs grep "Mem"
/sw/Mem.sh:MEMINFO=`cat /proc/meminfo | grep 'MemTotal\|MemFree\|Buffers\|Cached'`
/sw/Mem1.sh: TOTAL=`free | grep ^Mem: | awk '{print $2}'`
/sw/Mem1.sh: USED=`free | grep ^Mem: | awk '{print $3}'`
/sw/Mem1.sh: FREE=`free | grep ^Mem: | awk '{print $4}'`
/sw/Mem1.sh: BUFFER=`free | grep ^Mem: | awk '{print $6}'`

CDM - chwon ๋ช…๋ น์–ด ์‚ฌ์šฉ๋ฒ•

ํŒŒ์ผ ์†Œ์œ ์ž ๋ฐ ๊ทธ๋ฃน ๋ณ€๊ฒฝ

์‹ค ์‚ฌ์šฉ ํ™˜๊ฒฝ์—์„œ ํ•„์š”ํ•œ ๋‚ด์šฉ๋งŒ ์ •๋ฆฌ.


Test environment

OS : CentOS 7 3.10.0-957.el7.x86_64

์ฃผ์š” ๋‚ด์šฉ

A file's owner can be changed using the chown command.

chown [OPTION]... [OWNER][:[GROUP]] FILE...

  • chown ์„ ์ด์šฉํ•ด์„œ ํŒŒ์ผ ๋ฐ ๋””๋ ‰ํ† ๋ฆฌ ์‚ฌ์šฉ์ž, ๊ทธ๋ฃน ๋ณ€๊ฒฝ
[root@localhost sw]# chown -R root:root *
[root@localhost sw]# ls -alrt
total 8
dr-xr-xr-x. 18 root root 234 Feb  5 01:49 ..
drwxrwxrwx.  2 root root   6 Feb  5 01:49 img
drwx------.  2 root root   6 Feb  5 01:49 was
drwx------.  2 root root   6 Feb  5 01:49 web
drwxr-xr-x.  2 root root   6 Feb  5 01:49 app
drwxr-xr-x.  2 root root   6 Feb  5 01:49 java
drwxr-xr-x.  2 root root   6 Feb  5 01:49 bin
drwxr-xr-x.  2 root root   6 Feb  7 21:26 logs
-rwxr-xr-x.  1 root root 428 Feb  8 01:16 Mem.sh
-rwxr-xr-x.  1 root root 446 Feb  8 06:01 Mem1.sh
drwxr-xr-x.  9 root root 114 Feb  8 06:01 .
[root@localhost sw]# chown wasadm:wasadm img
[root@localhost sw]# chown wasadm:wasadm was
[root@localhost sw]# chown wasadm:wasadm Mem.sh
[root@localhost sw]# ls -alrt
total 8
dr-xr-xr-x. 18 root   root   234 Feb  5 01:49 ..
drwxrwxrwx.  2 wasadm wasadm   6 Feb  5 01:49 img
drwx------.  2 wasadm wasadm   6 Feb  5 01:49 was
drwx------.  2 root   root     6 Feb  5 01:49 web
drwxr-xr-x.  2 root   root     6 Feb  5 01:49 app
drwxr-xr-x.  2 root   root     6 Feb  5 01:49 java
drwxr-xr-x.  2 root   root     6 Feb  5 01:49 bin
drwxr-xr-x.  2 root   root     6 Feb  7 21:26 logs
-rwxr-xr-x.  1 wasadm wasadm 428 Feb  8 01:16 Mem.sh
-rwxr-xr-x.  1 root   root   446 Feb  8 06:01 Mem1.sh
drwxr-xr-x.  9 root   root   114 Feb  8 06:01 .

CMD - free ๋ช…๋ น์–ด๋ฅผ ์ด์šฉํ•œ ๋ฉ”๋ชจ๋ฆฌ ์‚ฌ์šฉ๋ฅ  ํ™•์ธ ๋ฐฉ๋ฒ•

๋ฉ”๋ชจ๋ฆฌ ์‚ฌ์šฉ๋ฅ  ํ™•์ธ

์‚ฌ์šฉ ํ™˜๊ฒฝ์—์„œ ํ•„์š”ํ•œ ๋‚ด์šฉ๋งŒ ์ •๋ฆฌ.

์‹œ์Šคํ…œ ํ™˜๊ฒฝ

OS : CentOS 7 3.10.0-957.el7.x86_64

์‹คํ–‰ ๋ช…๋ น์–ด

centos 6.x ๋ฒ„์ „ ๋ฐ‘ ๋ฒ„์ „์—์„œ ๋ฉ”๋ชจ๋ฆฌ ์ฝ๋Š” ๋ฐฉ์‹์ด 7์—์„œ ๋ถ€ํ„ฐ๋Š” ๋ณ€๊ฒฝ์ด ๋˜์—ˆ๋‹ค.
(-/+ buffers/cache ๋ถ€๋ถ„์ด ์‚ฌ๋ผ์กŒ๋‹ค.)

๋ฉ”๋ชจ๋ฆฌ ์‚ฌ์šฉ๋Ÿ‰ (%) = ๋ฉ”๋ชจ๋ฆฌused/(๋ฉ”๋ชจ๋ฆฌused+๋ฉ”๋ชจ๋ฆฌfree)*100

  • ์‚ฌ์šฉ ์˜ˆ์‹œ
[root@localhost sw]# free -m
              total        used        free      shared  buff/cache   available
Mem:           7803         892        4686         263        2224        6277
Swap:          8064           0        8064

๋ฉ”๋ชจ๋ฆฌ ์‚ฌ์šฉ๋ฅ  ๊ณ„์‚ฐ
$$Memusage=\frac{used}{total}*100
$$

sar -r 1 ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด์„œ๋„ ์‚ฌ์šฉ๋ฅ  ํ™•์ธ ๊ฐ€๋Šฅ (%memused) ํ™•์ธ

  • ์ดˆ ๋‹จ์œ„๋กœ ๋ฒ„ํผ ์บ์‰ฌ ์˜์—ญ ๋ถ„๋ฆฌ ํ•ด์„œ ๋ฉ”๋ชจ๋ฆฌ ํ™•์ธ
[root@localhost sw]# free -mw -s 1
              total        used        free      shared     buffers       cache   available
Mem:           7803         900        4627         308           2        2273        6224
Swap:          8064           0        8064

              total        used        free      shared     buffers       cache   available
Mem:           7803         900        4627         308           2        2273        6224
Swap:          8064           0        8064

Parameters

Parameters
total ์ด ๋ฉ”๋ชจ๋ฆฌ ํฌ๊ธฐ
used ์‚ฌ์šฉ์ค‘์ธ ๋ฉ”๋ชจ๋ฆฌ (free-buff/cache)
free ์—ฌ์œ  ๋ฉ”๋ชจ๋ฆฌ (used-buff/cache)
shared tmpfs, ramfs๋“ฑ์— ์‚ฌ์šฉ๋˜๋Š” ๊ณต์œ  ๋ฉ”๋ชจ๋ฆฌ
buffer/cache ์ปค๋„ ๋ฒ„ํผ / ํŽ˜์ด์ง€ ์บ์‹œ slab ๋ฉ”๋ชจ๋ฆฌ
available swapping ์—†์ด new ps์— ํ• ๋‹น ๊ฐ€๋Šฅํ•œ ๋ฉ”๋ชจ๋ฆฌ ์˜ˆ์ƒ ํฌ๊ธฐ

CMD - which, readlink ๋ช…๋ น์–ด๋ฅผ ํ™œ์šฉ๋ฒ•

๋ฆฌ๋ˆ…์Šค์— ์„ค์น˜ ๋œ JAVA ๊ฒฝ๋กœ ํ™•์ธ ๋ฐฉ๋ฒ•

์‚ฌ์šฉ ํ™˜๊ฒฝ์—์„œ ํ•„์š”ํ•œ ๋‚ด์šฉ๋งŒ ์ •๋ฆฌ.

์‹œ์Šคํ…œ ํ™˜๊ฒฝ

OS : CentOS 7 3.10.0-957.el7.x86_64

์‹คํ–‰ ๋ช…๋ น์–ด

์‚ฌ์šฉ ๋ช…๋ น์–ด which, readlink

  • which : ๋ช…๋ น์–ด์˜ ๊ฒฝ๋กœ๋ฅผ ํ™•์ธํ•˜๋Š” ๋ช…๋ น์–ด
  • readlink : ์‹ฌ๋ณผ๋ฆญ ๋งํฌ์˜ ์›๋ณธ ์œ„์น˜๋ฅผ ์ฐพ๋Š” ๋ช…๋ น์–ด (-f : ์ตœ์ข… ํŒŒ์ผ์˜ ์ ˆ๋Œ€๊ฒฝ๋กœ)

ll ๋ช…๋ น์–ด๋ฅผ ํ†ตํ•ด ์ฐพ์•„๋„ ๋˜์ง€๋งŒ, ์‹ฌ๋ณผ๋ฆญ ๋งํฌ๊ฐ€ ์—ฌ๋Ÿฌ๋ฒˆ ์‚ฌ์šฉ๋˜์–ด ์žˆ๋Š” ๊ฒฝ์šฐ readlink ๋ช…๋ น์–ด๋กœ ์ฐพ๋Š”๊ฒŒ ํŽธํ•จ.

#which 
[wasadm@localhost sw]$ which java
/usr/bin/java

#readlink
[wasadm@localhost sw]$ readlink -f /usr/bin/java
/usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-7.b13.el7.x86_64/jre/bin/java

#ll
[wasadm@localhost sw]$ ll /usr/bin/java
lrwxrwxrwx. 1 root root 22 Feb  5 01:36 /usr/bin/java -> /etc/alternatives/java
[wasadm@localhost sw]$ ll /etc/alternatives/java
lrwxrwxrwx. 1 root root 71 Feb  5 01:36 /etc/alternatives/java -> /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.181-7.b13.el7.x86_64/jre/bin/java