查看“用户讨论:Jinzd”的源代码
来自Ubuntu中文
←
用户讨论:Jinzd
跳到导航
跳到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
[[Kubuntu 技巧]] [[Shell编程基础]] [[man sudo_root]] export JAVA_HOME=/usr/local/jdk1.8.0_91/ export PATH=$JAVA_HOME/bin:$PATH export classPath=/usr/local/jdk1.8.0_91/ [http://askubuntu.com/questions/26632/how-to-install-eclipse eclipse] =Ubuntu= <pre> ----------------------Ubuntu update sudo apt-get update sudo apt-get dist-upgrade / sudo apt-get upgrade ----------------------Postgresql installation sudo apt-get install postgresql-9.5 sudo apt-get install pgadmin3 sudo -u postgres psql postgres \password postgres ----------------------Postgresql configuration cd /etc/postgresql/9.5/main sudo nano postgresql.conf # add following line to the file listen_addresses = '*' # ctrl-o and ctrl-x to finish the operation. sudo nano pg_hba.conf # add following line to the file hostnossl all all 192.168.128.45 255.255.255.0 md5 # ctrl-o and ctrl-x to finish the operation. ----------------------Apache2 Web Server sudo apt-get install apache2 ----------------------PHP for apache2 sudo apt install php libapache2-mod-php sudo apt install php-cli sudo apt install php-cgi sudo apt install php-pgsql ----------------------Netbeans sudo sh ./netbeansXXXXX.sh ----------------------Java env for all users sudo nano /etc/profile # add following lines to the end of the file export JAVA_HOME=/usr/local/jdk1.8.0_91 export PATH=$JAVA_HOME/bin:$PATH export CLASSPATH=.:$JAVA_HOME/lib/dt.jar: $JAVA_HOME/lib/tools.jar ----------------------OpenSSH sudo apt-get install openssh-server ssh [user]@[server ip] # windows client is putty, can be downloaded from internet. ----------------------jdk # go to Downloads directory tar -zxvf jdk-8u92-linux-x64.tar.gz # move jdk to /usr/local sudo mv ./jdk1.8.0_92 /usr/local # set java env for ubuntu ----------------------PDT Installation # download eclipse from https://eclipse.org/pdt/#download $ cd {directory where your browser downloaded the package to} $ tar -zxvf eclipse-SDK-3.4.1-linux-gtk.tar.gz && mv eclipse ~/opt </pre> =Apache2= <pre> # create a new site cd /etc/apache2/sites-available sudo cp 000-default.conf juniverse.conf </pre> =ifconfig= [[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: <pre style="margin: 5px"> 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" </pre> =PostgreSQL= For newest Ubuntu 16.04 postgresql is ready to install: <pre style="margin: 5px"> jinzd@ubuntu:~S sudo apt install postgresql-9.5 </pre> Get postgresql ready to use, set password is the first step: <pre style="margin: 5px"> jinzd@ubuntu:~S sudo -u postgres psql template1 template1=# \password postgres; or jinzd@ubuntu:~S sudo -u postgres psql postgres postgres=# \password postgres; </pre> Create database: <pre style="margin: 5px"> jinzd@ubuntu:~S sudo -u postgres createdb JUniverse sudo -u postgres psql --host=localhost --username=postgres --password </pre> Create user: <pre style="margin: 5px"> jinzd@ubuntu:~S sudo -u postgres createuser </pre>
返回
用户讨论:Jinzd
。
导航菜单
页面操作
用户页
讨论
阅读
查看源代码
历史
页面操作
用户页
讨论
更多
工具
个人工具
登录
导航
首页
最近更改
随机页面
页面分类
帮助
搜索
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
用户贡献
日志
查看用户组
特殊页面
页面信息