명령을 사용하여 설치를 시도했습니다 Ubuntu studio 16.10.
. tomcat8도 시도했는데 다음과 같은 상황이 발생했습니다.tomcat 7
sudo apt-get install tomcat7
sudo apt-get install tomcat7
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libtomcat8-java sysstat tomcat8-common
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
libtomcat7-java tomcat7-common
Suggested packages:
tomcat7-docs tomcat7-admin tomcat7-examples tomcat7-user libtcnative-1
The following NEW packages will be installed:
libtomcat7-java tomcat7 tomcat7-common
0 upgraded, 3 newly installed, 0 to remove and 348 not upgraded.
Need to get 4,034 kB of archives.
After this operation, 4,956 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://old-releases.ubuntu.com/ubuntu yakkety/universe amd64 libtomcat7-java all 7.0.72-1 [3,730 kB]
Get:2 http://old-releases.ubuntu.com/ubuntu yakkety/universe amd64 tomcat7-common all 7.0.72-1 [267 kB]
Get:3 http://old-releases.ubuntu.com/ubuntu yakkety/universe amd64 tomcat7 all 7.0.72-1 [36.8 kB]
Fetched 4,034 kB in 4s (895 kB/s)
Preconfiguring packages ...
Selecting previously unselected package libtomcat7-java.
(Reading database ... 364399 files and directories currently installed.)
Preparing to unpack .../0-libtomcat7-java_7.0.72-1_all.deb ...
Unpacking libtomcat7-java (7.0.72-1) ...
Selecting previously unselected package tomcat7-common.
Preparing to unpack .../1-tomcat7-common_7.0.72-1_all.deb ...
Unpacking tomcat7-common (7.0.72-1) ...
Selecting previously unselected package tomcat7.
Preparing to unpack .../2-tomcat7_7.0.72-1_all.deb ...
Unpacking tomcat7 (7.0.72-1) ...
Processing triggers for ureadahead (0.100.0-19) ...
ureadahead will be reprofiled on next reboot
Setting up libtomcat7-java (7.0.72-1) ...
Processing triggers for systemd (231-9ubuntu2) ...
Setting up tomcat7-common (7.0.72-1) ...
Setting up tomcat7 (7.0.72-1) ...
Creating config file /etc/default/tomcat7 with new version
Adding system user `tomcat7' (UID 126) ...
Adding new user `tomcat7' (UID 126) with group `tomcat7' ...
Not creating home directory `/usr/share/tomcat7'.
Creating config file /etc/logrotate.d/tomcat7 with new version
Processing triggers for systemd (231-9ubuntu2) ...
Processing triggers for ureadahead (0.100.0-19) ...
user@user:~$ tomcat --version
bash: tomcat: command not found
user@user:~$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin:/usr/local/hadoop/bin:/usr/local/hadoop/sbin:/home/prasad/testfolder/
Tomcat이 아직 설치되지 않은 것 같습니다. 이제 어떻게 해야 하나요? 또한 Tomcat을 제거하려고 시도했는데 "예/아니요"를 묻는 메시지가 표시되었고 모든 것이 잘 진행되었습니다.
답변1
예, 설치되어 실행 중입니다. - 열려 있습니다.http://localhost:8080기본 Tomcat 시작 페이지가 표시됩니다. (적어도 패키지를 제거하지 않으면 그렇습니다.)
웹 응용 프로그램을 복사하여 설치할 수 있습니다 /var/lib/tomcat7/webapps
.
명령을 찾을 수 없으며 tomcat
서비스로 설치됩니다. systemctl
관리 하는데 사용했습니다 .