OpenVZ:修订间差异
来自Ubuntu中文
跳到导航跳到搜索
小无编辑摘要 |
小无编辑摘要 |
||
第25行: | 第25行: | ||
tar xzvf wildfly-8.2.0.Final.tar.gz | tar xzvf wildfly-8.2.0.Final.tar.gz | ||
mv wildfly-8.2.0.Final wildfly | mv wildfly-8.2.0.Final wildfly | ||
echo 'JAVA_OPTS="$JAVA_OPTS -Djboss.bind.address=0.0.0.0"' >> /home/ubuntu/wildfly/bin/standalone.conf | |||
echo 'JAVA_OPTS="$JAVA_OPTS -Djboss.bind.address.management=0.0.0.0"' >> /home/ubuntu/wildfly/bin/standalone.conf |
2015年2月10日 (二) 10:48的版本
OpevnVZ 一些自用初始化脚本
sed -i "s/archive.ubuntu.com/mirrors.163.com/" /etc/apt/sources.list apt-get update apt-get dist-upgrade locale-gen --lang zh_CN.UTF-8 dpkg-reconfigure locales cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime apt-get install openjdk-7-jdk apt-get install sudo screen adduser ubuntu adduser ubuntu sudo apt-get install postgresql sed -i "s/#\(include_if_exists.*\)/\1/" /etc/postgresql/9.3/main/postgresql.conf echo "listen_addresses = '*'" >> /etc/postgresql/9.3/main/exists.conf /etc/init.d/postgresql restart ---------------- sudo -u postgres psql postgres postgres=# \password postgres postgres=# \quit ---------------- su ubuntu cd wget http://download.jboss.org/wildfly/8.2.0.Final/wildfly-8.2.0.Final.tar.gz tar xzvf wildfly-8.2.0.Final.tar.gz mv wildfly-8.2.0.Final wildfly echo 'JAVA_OPTS="$JAVA_OPTS -Djboss.bind.address=0.0.0.0"' >> /home/ubuntu/wildfly/bin/standalone.conf echo 'JAVA_OPTS="$JAVA_OPTS -Djboss.bind.address.management=0.0.0.0"' >> /home/ubuntu/wildfly/bin/standalone.conf