用户讨论:Jinzd
来自Ubuntu中文
ifconfig
Usage:
- ifconfig [-a] [-v] [-s] <interface> [[<AF> ] <address>]
- [add <address>[/<prefixlen>]]
- [del <address>[/<prefixlen>]]
- [[-]broadcast [<address>]] [[-]pointopoint [<address>]]
- [netmask <address>] [dstaddr <address>] [tunnel <address>]
Java
Add deb resource path:
sudo add-apt-repository "deb http://archive.canonical.com/ubuntu maverick partner" sudo apt-get update sudo apt install sun-java8-jdk # remove sudo add-apt-repository -r "deb http://archive.canonical.com/ubuntu maverick partner"
PostgreSQL
For newest Ubuntu 16.04 postgresql is ready to install:
jinzd@ubuntu:~S sudo apt install postgresql-9.5
Get postgresql ready to use, set password is the first step:
jinzd@ubuntu:~S sudo -u postgres psql template1 template1=# \password postgres; or jinzd@ubuntu:~S sudo -u postgres psql postgres postgres=# \password postgres;
Create database:
jinzd@ubuntu:~S sudo -u postgres created JUniverse
Create user:
jinzd@ubuntu:~S sudo -u postgres createuser