http://www.jointux.com/install-and-configure-gitlab-on-centos-7rhel-7/
Deploy a Spring Boot application under Tomcat Web Server Container
Higthligths:
@SpringBootApplication
public class Application extends SpringBootServletInitializer {
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
return application.sources(Application.class);
}
public static void main(String[] args) throws Exception {
SpringApplication.run(Application.class, args);
}
}
pom.xml
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</dependency>
</dependencies>
Spring boot provides option to deploy the application as a traditional war file in servlet 3.x
(without web.xml)supporting tomcat server.Please see spring boot documentation for this. I will brief what you need to do here.
step 1 : modify pom.xml
to change the packaging to war:(that you already did)
<packaging>war</packaging>
step 2 : change your dependency
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
</dependency>
to
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-tomcat</artifactId>
<scope>provided</scope>
</dependency>
step 3 :modify your war name (if you need to avoid the version details appended with the war name) in pom.xml
under <build>
tag.
<build>
<finalName>web-service</finalName>
.....
step 4 : run maven build to create war : clean install
step 5 : deploy the generated war file web-service.war
in tomcat and request url in browser http://<tomcat ip>:<tomcat port>/web-service/hello
here the project : http://gitlab.saic.it/root/spring-boot-war-tomcat
ISPConfig 3 + RoundCube Mail 1.0 + Password Management
Most of the articles on the web are referring to older versions. Below are the steps to get it working.
Assumptions: This works on a Ubuntu Server 12.04 LTS updated with the latest patches, setup by following “Perfect Server” tutorial, then installed with RoundCube 1.0 as the Webmail. (SqurrielMail installation was skipped).
1. Enable the password plugin of RoundCube – The 1.0 version comes with the plugin in the package, but not activated.
Under config/config.inc.php
// ———————————-
// PLUGINS
// ———————————-
// List of active plugins (in plugins/ directory)
$config[‘plugins’] = array(‘password’);
This tells you will activate the ‘password’ plugin which sits inside the plugins/ directory.
2. Then edit the plugins/password/config.inc.php
$config[‘password_db_dsn’] = ‘mysql://ispconfig:password@localhost/dbispconfig’;
“password” is stored in /usr/local/ispconfig/interface/lib/config.inc.php.
3. Edit $config[‘password_query’] in plugins/password/config.inc.php
$config[‘password_query’] = ‘UPDATE mail_user SET password=%c WHERE email=%u LIMIT 1’;
or
$config[‘password_query‘] = ‘UPDATE mail_user SET password=%c WHERE email=%u and password=%o LIMIT 1‘;
Linux Command to check space disk and folder
To check Linux disk space use :
df -ha
To check Linux folder space use :
du -sh *
will not traverse any mount points it encounters. But if it is told to start at a mount point then it will do as requested.
du -shx *
for also hidden folder
du -sh .[^.]*
for hidden and not hidden
du -hs $(ls -A)
with threshold
du -h –threshold=10M .
du -h –threshold=10M –max-depth=0 * o du -h –threshold=10M –maxdepth=1 .
add | sort -n for sorting
Linux Command to check DNS
Show all domain records
dig saic.it any
Find Out the Domain Mail Server
host -t mx saic.it
Find Out the Domain TXT Recored
host -t txt saic.it
Find Out the Domain SOA Record
host -t soa saic.it
Display All Information About Domain Records and Zone
host -a saic.it
oppure
dig +noall +answer saic.it
https://stopemailfraud.proofpoint.com/dmarc/
Display DKIM record
dig +short mail._domainkey.saic.it txt