Initialize a Linux server for project management and testing

Source: Internet
Author: User
Tags configuration php

After graduation many have not done such technical things, but this year to start.

Goal:

Practiced hand installs Nginx, and configures different servers, the backend has Tomcat (JIRA), PHP (always), and Tornado and node.

The final result is a different subdomain (not a different port or path) that is placed behind a nginx. Then the record begins.

[Optional] lazy people with Ubuntu Server

CentOS is useless because it is not familiar with the Ubnutu 14.04. Install XFCE4+VNC. Then vncserver:1-geometry 1280x960 and go in apt-get install synaptic from your ip:5901.

BTW1: Choose Xfce is found Apt-get install--no-install-recommends ubuntu-desktop installed unity or gnome under VNC How not to come out, search looks like a lot of people have this problem

BTW2: Later found that actually installed these, is not as convenient as winscp+putty. Silently vncserver-kill:1

1. Installing Nginx

First Apt-get install Nginx, then/etc/init.d/nginx start. nginx.conf files in/etc/nginx/, the main configuration Editor/etc/nginx/sites-available/default or in the same directory add files again in sites-enabled inside Ln.

See the official documentation for more configuration, and here and there. Regular Expressions (Nginx configuration with "~" in the beginning) reference Regexr do a good job.

2. Installation and Configuration Php+mysql

Apt-get Install php5-cli php5-cgi mysql-server php5-mysql

sudo apt-get install spawn-fcgi, and then spawn-fcgi-a 127.0.0.1-p 9000-c 5-u www-data-f/usr/bin/php-cgi (it is best to write this into the boot, see the principle Inside and there)

Then configure one of the Nginx servers, see here. I am so worthy of myself.

server {    a;    server_name test.php.vizyou.com;     /usr/share/nginx/test_php;    Index index.php;         ~ \.php$ {        /etc/nginx/fastcgi_params;         127.0. 0.1:9000;        Fastcgi_index index.php;         /usr/share/nginx/test_php$fastcgi_script_name;         =404;    }}
Test PHP

And then get phpmyadmin not to repeat. Most things can be nginx-s reload effective.

4, Installation Jira

Originally wanted to own a Tom cat, the results found that there is a direct Linux installer. The Jira will occupy two ports (HTTP 8080,control 8005). Then go to setup in HTTP.

Database originally wanted to use Postgres, but phppgadmin currently not even PG 9.3 Support, use up may encounter trouble, on MySQL.

Create the user and give permissions first, and copy the MySQL JDBC driver to Jira (the default installation is/opt/atlassian/jira/lib), and then restart Jira.

Jira Permissions configuration: Administrator,developer,user three kinds of role. Some of the user does not necessarily need to see all the items, just remove him from jira-users (the default user) and build a xxx-users. And do two points:

1) in the project roles inside add xxx-users this role to users;2) Global permissions inside give and jira-user the same normal user rights.

5, Configuration Suporvisor+tornado

TBD

Initialize a Linux server for project management and testing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.