Upsource在linux服务器上怎么安装
kevin.Zhu 发布于:2017-3-20 10:13 分类:Linux 有 23 人浏览,获得评论 0 条
作者:阿柒
链接:https://www.zhihu.com/question/54178233/answer/138297908
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
链接:https://www.zhihu.com/question/54178233/answer/138297908
来源:知乎
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
Installing Upsource on Linux
To help you install Upsource quickly and easily, let's take a common Ubuntu installation as an example and go through the entire process.
First of all we need to install Java
- Unless you already have one, download JRE 1.8 installation package from the Oracle web-site.
-
Launch the terminal and create a folder where java binaries will be stored:
sudo mkdir -p /usr/local/java
-
Go to the folder with the downloaded jre archive (the default location is shown here):
cd /home/user_name/downloads
-
Copy the archive to your java folder:
sudo cp -r jre-7u25-linux-x64.tar.gz /usr/local/java
-
Go to the java folder:
cd /usr/local/java
-
Unpack the archive:
sudo tar xvzf jre.tar.gz
Now we are going to set system variables.
-
Edit /etc/profile:
sudo gedit /etc/profile
and add the following lines to the bottom of the file:
JRE_HOME=/usr/local/java/jre1.8.0_25 PATH=$PATH:$JRE_HOME/bin export JRE_HOME export PATH
Save the file and close it. -
Tell your system where JRE is located:
sudo update-alternatives -install â/usr/bin/javaâ âjavaâ â/usr/local/java/jre1.8.0_25â 1
-
Make the JRE the default one:
sudo update-alternatives -set java /usr/local/java/jre1.8.0_25/bin/java
-
Check if java was installed correctly:
java -version
Next step is to adjust your system resource limits
-
Add the following lines to the /etc/security/limits.conf file:
* - memlock unlimited * - nofile 100000 * - nproc 32768 * - as unlimited
Find a home for your Upsource dist
- Download a new Upsource build from our website
-
Create a folder for it. We’ll refer to this folder as Upsource home directory:
Sudo mkdir -p /opt/Upsource
-
Go to the folder with the downloaded Upsource archive (the default location is shown here):
cd /home/user_name/downloads
-
Copy the archive to your Upsource folder:
cp Upsource.zip /opt
-
Set permissions:
sudo chmod a+x Upsource.zip
-
Unpack the archive:
sudo unzip Upsource.zip
-
Make the Upsource folder writable:
sudo chmod -R a+rwX /opt/Upsource
Now we can start and configure Upsource.
-
Launch the terminal and go to the bin folder in the Upsource home directory:
cd /opt/Upsource/bin
-
Run Upsource:
upsource.sh start
When you run Upsource for the first time, it will open Configuration Wizard in your default browser, where you can specify initial settings.
That's it. As soon as you're finished, you'll be taken to Upsource welcome page from where you can proceed to creating your first project.
谷歌 upsource linux install