Install Redmine on Centos 6.5-64 bit

Source: Internet
Author: User
Tags anonymous centos redmine firewall
Update the System

Copy and execute the following command to update the critical components of the system:

Yum Update

After the update completed, we need to restart the system using the following command:

Reboot
Install the Dependencies packages

These is the basic software packages for environment settings and utility tools to compile other packages in the next sec tion.

Copy The Block command and execute in the Putty Windows:

A long command line, copy all and implementation.

Yum-y Install nano zip unzip libyaml-devel zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel MySQL -devel
Install Apache and MySQL

Apache is a server application for communicating over the HTTP protocol. Apache runs on operating systems such as Unix, Linux, Microsoft Windows, and other operating systems.

Apache play an important role in the development of the Internet and the World Wide Web.

MySQL is the database management free open source very popular on the world, MySQL have high speed, stability and ease of u SE, portability, operating on multiple operating systems offer a large system is very powerful utility functions.

With the speed and high security, MySQL was well suited for applications that Access databases on the Internet.

Use the following command to install:

Yum-y install httpd MySQL mysql-server

Allow Start services when OS boot:

Chkconfig httpd on
chkconfig mysqld on
service httpd start
service mysqld start

Set the password for MySQL

/usr/bin/mysql_secure_installation

Because We are not having a password for the root account so you press Enter to skip.

Enter current password to root (enter for none):

Select Yes to set the password for the MySQL root account.

Set root Password? [y/n] Y

Enter and confirm your password, remove the anonymous user, select Yes

Remove anonymous users? [y/n] Y

Allow remote login to MySQL as root account, select No.

Disallow Root login remotely? [y/n] n

Delete The test database, select Yes

Remove test database and access to it? [y/n] Y

Reload privilege tables, select Yes

Reload privilege tables now? [y/n] Y
Turn off SELinux

SELinux is a security feature advanced for Linux operating system when installing the system you need to turn off this FE Ature to get the process do smoothly, after successful you can turn on back if you want.

Nano/etc/selinux/config

Change the file content:

Selinux=disabled

Press CTRL + O to save the file and press CTRL + X to exit. Set up the Hostname

By default when installing a new OS Centos no set the hostname, so we need to setting with the command:

Nano/etc/hosts
127.0.0.1 localhost
:: 1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.168.226.151 Iz23lttzrggz

ADD your domain name or host name both the command line, save the file and exit, the server name would be C hanged when restarting. Configuring the Firewall

We do not want to turn off the firewall because it's quite important, so you need to add rules to allow port of HTTP a nd port 443 for HTTPS.

In the Centos OS, you can be configuration firewall by editing files Iptables and ip6tables.

Related Article

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.