5. 아파치 서버 재시작
sudo /etc/init.d/apache2 restart
6. 작동 상태 확인 (Check to see if it works)
sudo netstat -tap | grep mysql
올바르게 작동된다면 "LISTEN" 이라는 문구가 뜹니다
그렇지 않다면, mysql을 재시작해주세요.
sudo /etc/init.d/mysql restart
7. 아파치 및 MySQL 디폴트 디렉토리
Apache configuration: /etc/apache2/apache2.conf
Apache root location: /etc/apache2/sites-available/default
MySQL configuration: /etc/mysql/my.cnf
Default Web root: /var/www
git clone ssh://git@54.65.0.195:/home/git/server/service.git
mvn clean install -U
mvn package tomcat:run deploy
tomcat
<role rolename="admin-gui"/>
<role rolename="admin-script"/>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="tomcat"></role>
<user username="admin" password="power7" roles="tomcat,admin-gui,admin-script,manager-gui,manager-script"/>
maven
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>tomcat-maven-plugin</artifactId>
<version>1.1</version>
<configuration>
<url>http://54.92.83.186:8080/manager/text</url>
<update>true</update>
<path>/spensieve</path>
<username>admin</username>
<password>power7</password>
</configuration>
</plugin>