Scene:When starting Eureka server, the following error occurred:Com.sun.jersey.api.client.ClientHandlerException:java.net.ConnectException:Connection refused: Connectcom.netflix.discovery.shared.transport.TransportException:Cannot execute request on any known serverProblem solving:View Profile application.yml, find the Register-with-eureka property value set to True, change it to false, restart the Eureka service, start successfully, solve the problem
Tools: IntelliJ idea 2017.1.2 x64, maven3.3.9Open IDE File===>new===>projectNextNextSelect the appropriate dependencyNextFinishCheck out the above two dependencies we selected in Pom.xmlStarting a service registry with @enableeurekaserver annotationsBy default, the service registry tries to register itself as a client, so we need to disable its client behavior by simply configuring it in Application.properties:# Specify the port number of the serviceserver.port=1111# Registration Center Instance
The usual way to run a jar file on a Linux server is to: $ Java-jar Test.jar
The feature is that when the SSH window is closed, the program aborts. or the runtime can't cut out to perform other tasks, is there a way to get the jar running in the background:
Method One:
$ nohup Java-jar Test.jar nohup 意思是不挂断运行命令,当账户退出或终端关闭时,程序仍然运行 //当用 nohup 命令执行作业时,缺省情况下该作业的所有输出被重定向到nohup.out的文件中 除非另外指定了输出文件。
Method Two:
$ nohup jav
The current Windows system uses IIS to build a php+mysql environment, due to manual configuration will be a lot of unexpected errors and security issues, here is recommended by the Guardian God · PHP suite, can be very convenient to build a good php+mysql+phpmyadmin
General system installation After the completion of the own IIS, here is not introduced in the remote cloud host download the Guardian God · PHP Suite
ISAPI version : Download fastcgi ve
I do not know if you can remember a few days ago, there is a slightly scattered over the VMM to achieve the highest level of bare metal deployment of the post, in the video recording finished upload to Youku before, think about, there seems to be another thing did not do. That is, the server that needs to be managed has not enabled Remote Desktop Connection, and it is possible to implement remote management with Dell's Idrac through Out-of-band manage
Label:1. Install MySQL#yum-y Install Mysql-server2. Set self-start and start MySQLSet up MySQL service to boot from system startup#chkconfig mysqld onConfirm MySQL self-boot (ok if 2--5 is on)#chkconfig--list mysqldStart the MySQL service#/etc/rc.d/init.d/mysqld start3. Set password (default root user does not set password)Log in to MySQL#mysql-U RootSwitch Database (MySQL)>use MySQLView user Information>select User,host,password from user;Set Password>set password for [email protected]=password
Cloud Server Swap ConfigurationOne, create a file for the swap partition:dd if=/dev/zero of=/opt/swap bs=1M count=8192Two, set the swap partition file:mkswap /opt/swapThird, enable swap partition files nowswapon /opt/swapFour, view swap partitionsswapon -sFive, set the SWAP partition to be self-enabled when booting:Vim/etc/fstab/opt/swap swap swap defaults 0 0Six, modify the swpapiness parameterWhen the val
hierarchy, which defaults to a first-level classification, and sub-classifications can be added, and if the contents of the first-level category can also be categorized into more detailed sections, consider adding sub-classifications
Description – Describe what this classification is primarily about, and some WordPress themes will call this description as a description or a classification of description
Set Default classificationThe main use of the default classification is that if you
|off] Perform validation checks where possible [off]--help=[ on|off]PrintHelp andExit--version=[ on|off]PrintVersion andexitcompiled-inch tests: Fileio-file I/O test cpu-cpu performance test memory-memory functions Speed test threads-threads subsystem p Erformance Test Mutex-mutex performance Test OLTP-OLTP testCommands: Prepare run Cleanup help Versionsee' sysbench--test= forA list ofOptions forEach test.[Email protected] sysbench-0.4.12]# min: 0.01ms a
If you get a picture of someone else's server in the background to upload to their own cloud space, then you need to upload pictures in the background, so you need to use curl to upload.
/** * Image upload * @author dong * @date 2018-04-08 * @param [Type] $url file path * @param [type] $t ype file type */function upload_im_img ($url, $type) {//binary file Upload $file = file_get_contents ($url); $fi
The new Hong Kong cloud server, the system can only be installed on the merchant's console.The system is separate from the hard drive, and the root directory space is only 10G. Need to reset the relevant directory size, such as:/usr,/var,/home and so on.The following is a subtotal of your own workaround.First, the initial partition situation (plus a 300G unpartitioned hard disk):[[email protected] ~]# df-th
Ali so the server's monitoring information for you to show the current cloud server CPU, disk and network card monitoring information.
CPU Monitoring Information
Percentage of CPU Usage (range: 0-100%) show.
Disk Monitoring Information
Read-write rate of disk, reading rate: Yellow Line chart, write rate: Blue Line chart display.
Network Card Monitoring Information
The exit rate of
Baidu Cloud appears ' ' The server is a little busy, wait a moment to try again.
1, generally speaking, this kind of situation occurs in the programming technology sharing situation more.
So first check all of your content, whether or not to include code! If there is code, grab upload! Then delete the code in the content (as shown below). In general, the problem is solved. If it's still not work
First, the premise:1, the Django project file has been placed on the cloud server, the configuration of the operating environment, to operate properly2, the cloud server can be connected properlySecond, relevant knowledge1, Python manage.py runserver: This is a suitable for the development phase of the use of the
Before the Mac command line to connect to the cloud server, has failed, today, the problem suddenly resolved, if you encounter similar problems, in accordance with the method can not be resolved, the following comments, discuss together.First, in the cloud to determine whether the cloud
If there is no FTP, the site upload download files will be very troublesome, so FTP is necessary to build a station tool. We use the virtual host, has default to provide FTP services, and provide FTP account management interface, etc., we only need to create users on it, but the cloud host needs to build their own FTP environment and create FTP users, so that in their own computer with FTP client upload or download files.
Although the CentOS operatin
Spring Cloud server-side registration and client invocationIn the previous article, we have set up the Spring cloud service Registry Eureka, a chapter that explains how to register a service with Eureka and how the client invokes the service.First, registration servicesFirst, the Eureka Client is introduced into the project, and the following configuration is add
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.