Author - 오길호

Go Language Install - Windows

1. Download and install from https://golang.org/dl/ 2. Creating a work folder (e.g. d: \ source \ go) 3. Create BIN, PKG, SRC folder at the bottom 4. Windows Control Panel-> System-> Advanced System Settings-> Environment Variables 5. Input to GOPATH in a user variable group 6. Enter GOPATH in the variable name 7. Input Task Folder in Variable values ​​(e.g. d: \ source \ go) 8....

Find an IP access from AWS (PHP)

When you use the Amazon server, if you get a server IP, the private IP is output. So I made it to save the official IP. <? if (in_array (Substr ($ _ Server ['Server_addr']], 0, 3), array('172'))) if(strrpos(gethostname(), '.compute.internal')!==false) $_SERVER['SERVER_ADDR'] = file_get_contents('http://169.254.169.254/latest/meta-data/public-ipv4'); echo $_SERVER['SERVER_ADDR']; ?>

php.ini file settings

Confirm after installing the server Short_open_tag = ON "<? PHP" and "<?" Make it available. Display_errors = On When executing a PHP script, the message is output when the error occurs. (In case of OFF, HTTP 500 internal server error output) Date.TIMEZONE = Asia/SEOUL Set the time zone. error_reporting = e_all & ~ e_notice & ~ e_deprecated NOTICE error is ignored. (* php.ini path: PHP --ini | grep php.ini)

SSH port change (Centos)

SSHD settings VI/ETC/SSH/SSHD_CONFIG Port {port number} Service SSHD RESTART Firewall setting VI/ETC/Sysconfig/iptables -A input -M State -state New -M TCP -P TCP -DPORT {Port} -j Accept Service iptables Restart * After changing the SSH port, the firewall setting allows you to use that port.