On Sat, Aug 24, 2019 at 08:58:14AM +0700, 'Tran Huu Trung (TTTV.ICT)' via DSpace Community wrote:
> Check if solr running after change port, please. It's take time to reindex.
> --
>
> [image: ĐẠI HỌC DÂN LẬP HẢI PHÒNG] <
http://www.hpu.edu.vn/>
>
> Tran Huu Trung / Giám đốc trung tâm thông tin thư viện
>
tru...@hpu.edu.vn / 0989150269
>
> ĐẠI HỌC DÂN LẬP HẢI PHÒNG
> Office: 0313738087 / Fax: 0313740476
> 36 Dân Lập, Dư Hàng Kênh, Lê Chân, Hải Phòng
>
www.hpu.edu.vn
>
> [image: Facebook] <
https://htmlsig.com/t/0000001BP2D7A> [image: Google +]
> <
https://htmlsig.com/t/0000001BP4RZJ> [image: LinkedIn]
> <
https://htmlsig.com/t/0000001BNRFVY> [image: Github]
> <
https://htmlsig.com/t/0000001BSVYQQ>
>
>
> Vào Th 7, 24 thg 8, 2019 vào lúc 01:30 Thiago Gonzaga Belmonte Galvão <
>
thiago...@ifmg.edu.br> đã viết:
>
> > Hi Guys,
> >
> > I tried this changes
> > On server.xml
> >
> > <Connector port="8080" protocol="HTTP/1.1"
> > connectionTimeout="20000"
> > redirectPort="8443"
> > URIEncoding="UTF-8"/>
> >
> > to
> >
> >
> >
> >
> > *<Connector port="80" protocol="HTTP/1.1"
> > connectionTimeout="20000" redirectPort="8443"
> > URIEncoding="*UTF-8"/>
> > *dspace.baseUrl =
http://repositorio.gv.ifmg.edu.br
> > <
http://repositorio.gv.ifmg.edu.br>*
> > *solr.server =
http://localhost/solr <
http://localhost/solr>*
> >
> > Stop and Start Tomcat.
> >
> > After this no access to my site
If you are trying this on a Unix-like OS (such as Linux), Tomcat will
not be able to open port 80 unless it is running in a privileged
account. Tomcat is not designed to run as a privileged user, and
should not, for example, routinely run as 'root'.
However, it *is* designed to be *started* privileged and then drop
privileges, as a good daemon should. This requires starting it with
the use of 'jsvc', which handles startup as most daemons do: call the
code (in Tomcat) to initialize the service (which includes opening the
ports), change user to the nonprivileged account, and call the main
body of the service. I've never understood why this is not used by
all Linux distributions. I tried modifying the Gentoo startup script
for Tomcat to do this, but it was too much trouble to maintain across
Tomcat updates and I gave it up. Look for Apache Commons Daemon if
you want to know more about 'jsvc'.
There are distribution-specific hacks that accomplish the same thing.
If you'll tell us what OS you are using, someone may be able to
suggest one.
Another method is to proxy through a general-purpose web server such
as Apache HTTPD or Nginx, which knows how to daemonize properly.
Tomcat then runs as a nonprivileged user on a nonprivileged port.
This works well here, and is what I currently recommend.
--
Mark H. Wood
Lead Technology Analyst
University Library
Indiana University - Purdue University Indianapolis
755 W. Michigan Street
Indianapolis, IN 46202
317-274-0749
www.ulib.iupui.edu